Hello Everyone, I’m trying to reach the new AllPosters Web Services using NuSoap v1.74, but I’m running into roadblocks and none of my searching gives me any clues as to what I’m missing.
Here’s the code I’m using.
<?php
require_once('nusoap.php');
$parameters = array(
'APC_Search_Query' => array(
'WebSiteID'=>"94454",
'CategoryID'=>"999999",
'PageNumber'=>"1",
'ProductsPerPage'=>"15",
'SearchText'=>"Matrix",
)
);
$soapclient = new soapclient('http://webservice.allposters.com/ProductInformationService.asmx');
$soapclient->debug_flag = 1;
$namespace = "http://Webservice.Allposters.com/APCF.AffiliateWebService/ProductInformationService/";
$soapAction = "http://Webservice.Allposters.com/APCF.AffiliateWebService/ProductInformationService/GetProductInformation";
$response = $soapclient->call('GetProductInformation',$parameters, $namespace, $soapAction, $headers, '', '', 'literal');
if(!$err = $soapclient->getError()) {
echo 'Result: ' . $response;
} else {
echo 'Error: ' . $err;
}
echo '<h2>Request:</h2> <pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES).'</pre>.';
echo '<h2>Response:</h2> <pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES).'</pre>';
echo '<h2>Debug log:</h2> <pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES).'</pre>';
?>
None of the documentation or examples I have found suggest using the $soapAction variable, but I was getting errors stating the server did not understand soapAction:. Using $soapAction resolved that error, and now I do get a response from AllPosters, but I can’t seem to figure out what I’m missing. I’ve even tried hacking nusoap.php so it will generate the XML that is identical to the samples from AllPosters.com, but no luck.
I’ve uploaded the debug info to my server. I didn’t want to post it here because it was too dang long, lol.
Debug: http://www.oneclickdesigns.com/debug.txt
Any help would be greatly appreciated.