magento soap api - where are the bubbles?

crampz

New Member
I am trying to use the Magento SOAP API to get orders from Magento...\[code\]$host = "myhost/magento/index.php"; //our online shop url$client = new SoapClient("http://".$host."/api/soap/?wsdl"); //soap handle$apiuser= "api_admin"; //webservice user login$apikey = "api_passw"; //webservice user pass$action = "sales_order.list"; //an action to call later (loading Sales Order List)try { $sess_id= $client->login($apiuser, $apikey); //we do login print_r($client->call($sess_id, $action));}catch (Exception $e) { //while an error has occured ...}\[/code\]To me the results looks like a php array. What do i have to do to get back an XML or SOAP string?
 
Back
Top