Hoping someone here is a SOAP genius....I'm not.
Using the following script:
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); $client = new SoapClient("https://blahblahblah.com/soap/20110301/wsdl/ApiRetailerSearch.wsdl", array('trace' => 1)); $objAuth = new stdClass(); $objAuth->username = 'xxxxxxxxx'; $objAuth->password = 'xxxxxxxxxx'; $objRequest = new stdClass(); $objRequest->authentication = $objAuth; $objRequest->retailer_id = 'xxxxxxxx'; $objRequest->products = array(xxxxxxx); $objRequest->items = array(); $objRequest->watchlists = array(); $response = $client->getProductDetail($objRequest); if(false == is_soap_fault($response)){ foreach($response as $product) { foreach ($product->items as $item) { print "price: " . $item->price . "\n\n"; } } print_r($response); }else{ echo "error code: " . $response->faultstring . "<br>"; echo "error message: " . $response->detail . "<br>"; } ?>
Get the following error:
Fatal error: Uncaught SoapFault exception: [2011] Permission denied. in /home/aonewebs/public_html/doba.php:16 Stack trace: #0 /home/aonewebs/public_html/doba.php(16): SoapClient->__call('getProductDetai...', Array) #1 /home/aonewebs/public_html/doba.php(16): SoapClient->getProductDetail(Object(stdClass)) #2 {main} thrown in /home/aonewebs/public_html/doba.php on line 16
Any ideas?
Ron