您好,我是 SOAP 的新手,但是 php 和 curl 方面的专家。
我想调用 SOAP URL API 方法。我有一个像这样放置 xml 的 url。如果你有这方面的经验,请帮助我。
<definitions name="Vendors" targetNamespace="urn:Vendors">
<types>
<schema targetNamespace="urn:Vendors">
<complexType name="userPassword">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="userID">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/>
</restriction>
</complexContent>
-----------
-------------
--------------
<message name="createNewUserRequest">
<part name="userPassword" type="xsd:string"/>
</message>
<message name="createNewUserResponse">
<part name="userID" type="xsd:int"/>
</message>
-----------
-------------
--------------
<binding name="VendorsBinding" type="tns:VendorsPort">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="createNewUser">
<soap:operation soapAction="http://schemas.xmlsoap.org/soap/envelope/#VendorsController#createNewUser"/>
<input>
<soap:body use="encoded" namespace="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
-----------
-------------
--------------
-----------
-------------