php2wsdl icon indicating copy to clipboard operation
php2wsdl copied to clipboard

Will it support SOAP 1.2 ?

Open icaroscherma opened this issue 9 years ago • 2 comments

Since the changes are not that big, would it be nice to add this support...

SOAP 1.1 uses namespace http://schemas.xmlsoap.org/wsdl/soap/
SOAP 1.2 uses namespace http://schemas.xmlsoap.org/wsdl/soap12/

In SOAP 1.2:

<binding name="EmployeeServiceImplPortBinding" type="tns:EmployeeServiceImpl">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="findEmployeeById">
    <soap12:operation soapAction=""/>
    <input><soap12:body use="literal"/></input>
    <output><soap12:body use="literal"/></output>
</operation><operation name="create">
    <soap12:operation soapAction=""/>
    <input><soap12:body use="literal"/></input>
    <output><soap12:body use="literal"/></output>
</operation>
</binding>

in SOAP 1.1:

<binding name="EmployeeServiceImplPortBinding" type="tns:EmployeeServiceImpl">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="findEmployeeById">
    <soap:operation soapAction=""/>
    <input><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></input>
    <output><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></output>
</operation><operation name="create">
    <soap:operation soapAction=""/>
    <input><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></input>
    <output><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></output>
</operation>
</binding>

Basically the URL changed and the tag from soap to soap12.

icaroscherma avatar Dec 12 '16 18:12 icaroscherma

This should be configurable. Can you make a pull request ?

dragosprotung avatar Dec 13 '16 10:12 dragosprotung

I'm testing more options / stuff required in some SOAP integration processes and then I should create a PR with this add-ons =)

icaroscherma avatar Dec 21 '16 14:12 icaroscherma