Alez007
19-11-07, 19:17
Hi ... I've been trying to use the api using this code but I'm not sure what's wrong with it ... in this example GetCategory returns no result .... two functions work, getMerchant and getCategoryList but ignoring all the parameters I give them (a merchant id for example) ... I just get a full list [RIGHT]of merchants and categories ... my guess is that I'm not appending the parameters right but since I couldn't make it work 100% maybe you have some ideas ?
This is the code :
$ini = ini_set("soap.wsdl_cache_enabled","0");
$client = new SoapClient(dirname(__FILE__).'/productservice.wsdl',array('trace'=>true));
$h1 = new soapval('api:UserAuthentication', false, array('iId'=>CLIENT_ID, 'sPassword'=>CLIENT_PASS, 'sType'=>'affiliate'));
$client->setHeaders(array($h1));
$proxy = $client->getProxy();
$results = $proxy->getCategory(
$aCategoryIds = array())
);
This is the code :
$ini = ini_set("soap.wsdl_cache_enabled","0");
$client = new SoapClient(dirname(__FILE__).'/productservice.wsdl',array('trace'=>true));
$h1 = new soapval('api:UserAuthentication', false, array('iId'=>CLIENT_ID, 'sPassword'=>CLIENT_PASS, 'sType'=>'affiliate'));
$client->setHeaders(array($h1));
$proxy = $client->getProxy();
$results = $proxy->getCategory(
$aCategoryIds = array())
);