Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8"?>
- <!-- edited with XMLSpy v2008 sp1 (http://www.altova.com) by me -->
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://***/directory/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://***/directory/" targetNamespace="http://***/directory/">
- <types>
- <s:schema targetNamespace="http://***/directory/" elementFormDefault="qualified">
- <s:element name="getSearchParts">
- <s:complexType/>
- </s:element>
- <s:element name="getSearchPartsResponse">
- <s:complexType>
- <s:sequence>
- <s:element ref="ns:SparePart" minOccurs="0" maxOccurs="unbounded"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="string" type="s:string" nillable="true"/>
- <s:element name="errorResponse">
- <s:complexType>
- <s:sequence>
- <s:element name="errorText" type="s:string" minOccurs="0"/>
- <s:element name="errorItem" type="s:string" minOccurs="0"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="SparePart">
- <s:complexType>
- <s:attribute name="sparePartId" use="required">
- <s:simpleType>
- <s:restriction base="s:string">
- <s:length value="11"/>
- <s:whiteSpace value="collapse"/>
- </s:restriction>
- </s:simpleType>
- </s:attribute>
- <s:attribute name="sparePartDescription">
- <s:simpleType>
- <s:restriction base="s:string">
- <s:length value="255"/>
- <s:whiteSpace value="preserve"/>
- </s:restriction>
- </s:simpleType>
- </s:attribute>
- <s:attribute name="amountAvailable">
- <s:simpleType>
- <s:restriction base="s:integer">
- <s:fractionDigits value="0"/>
- </s:restriction>
- </s:simpleType>
- </s:attribute>
- <s:attribute name="unitPriceExclVAT" type="s:double"/>
- <s:attribute name="unitPriceInclVAT" type="s:double"/>
- <s:attribute name="discountCode" type="s:byte"/>
- </s:complexType>
- </s:element>
- <s:element name="integer" type="s:integer"/>
- <s:element name="SparePartSearchRequest">
- <s:complexType>
- <s:attribute name="partId" type="s:integer"/>
- <s:attribute name="listLimit" type="s:integer"/>
- <s:attribute name="pagingFirstPosId" type="s:integer"/>
- <s:attribute name="pagingOffset" type="s:integer"/>
- </s:complexType>
- </s:element>
- </s:schema>
- </types>
- <message name="getSearchPartsSoapIn">
- <part name="partID" element="s0:SparePartSearchRequest"/>
- </message>
- <message name="getSearchPartsSoapOut">
- <part name="sparePartsList" element="s0:getSearchPartsResponse"/>
- </message>
- <message name="errorSoapOut">
- <part name="Error" type="s:string"/>
- </message>
- <portType name="SparePartsServiceSoap">
- <operation name="getSearchParts">
- <input message="s0:getSearchPartsSoapIn"/>
- <output message="s0:getSearchPartsSoapOut"/>
- </operation>
- </portType>
- <binding name="SparePartsSoap" type="ns:SparePartsServiceSoap">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="getSearchParts">
- <soap:operation soapAction="urn:#getSearchParts"/>
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
- </binding>
- <service name="SparePartsService">
- <documentation>Spare Parts Procesing</documentation>
- <port name="SparePartsServiceSoap" binding="ns:SparePartsSoap">
- <soap:address location="http://***/directory/wsdl.asmx"/>
- </port>
- </service>
- </definitions>
Expand|Select|Wrap|Line Numbers
- $client = new SoapClient("http://HereIsAddress.asmx?WSDL");
- $parametr = array(
- 'partId' => '11537544788',
- 'listLimit' => 200,
- 'pagingFirstPosId' => 1,
- 'tpagingOffset' => 1
- );
- $result = $client->__soapCall("getSearchParts", $parametr);
- echo 'Results: ';?><BR><?
- var_dump($result);?><BR><BR><BR><?
- ?>
Someone can help me with this?