SOAP to XML conversion in PHP

riverawolf

New Member
I need to generate the following XML with SOAP:\[code\] ... <InternationalShippingServiceOption> <ShippingService>StandardInternational</ShippingService> <ShippingServiceCost currencyID="USD">39.99</ShippingServiceCost> <ShippingServicePriority>1</ShippingServicePriority> <ShipToLocation>CA</ShipToLocation> </InternationalShippingServiceOption> ...\[/code\]So I have the following SOAP array in PHP to do this:\[code\]$params = array( 'InternationalShippingServiceOption' => array( 'ShippingService'=>'StandardInternational', 'ShippingServiceCost'=>39.99, 'ShippingServicePriority'=>1, 'ShipToLocation'=>'CA', ) )$client = new eBaySOAP($session); //eBaySOAP extends SoapClient$results = $client->AddItem($params);\[/code\]Everything works great, except I am not generating the currencyID="USD" attribute in the ShippingServiceCost tag in the XML. How do I do this?
 
Back
Top