Jump to content

SOAP Issues


Recommended Posts

Hoping someone here is a SOAP genius....I'm not. :confused:


Using the following script:


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"; 
 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?



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.