I’ve sent xml to a server before using curl… How do I do that with SOAP? I need to send xml similar to the example seen below. Can anyone point me in the direction of some PHP code to do this?
[code]
<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap:Body>
<order xmlns=”CompanyXyzOrder”>
<partnerid>string</partnerid>
<orderdate>string</orderdate>
<orderid>string</orderid>
<giftnote>string</giftnote>
<shippinginfo>
<specialinstructions>string</specialinstructions>
<firstname>string</firstname>
<lastname>string</lastname>
<address1>string</address1>
<address2>string</address2>
<city>string</city>
<state>string</state>
<zip>string</zip>
<country>string</country>
<phone>string</phone>
<email>string</email>
<shippingmethod>string</shippingmethod>
</shippinginfo>
<orderitems>
<Item productid=”string”>
<images>
<Image xsi:nil=”true” />
<Image xsi:nil=”true” />
</images>
<quantity>int</quantity>
<name>string</name>
</Item>
</orderitems>
</order>
</soap:Body>
</soap:Envelope>