Nusoap

This is a discussion on Nusoap within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Using a PHP 4 and Nusoap I get the following errors when attempting to call a web service I need ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-21-2006
Equinex
 
Posts: n/a
Default Nusoap

Using a PHP 4 and Nusoap I get the following errors when attempting to
call a web service

I need to login to the main web service and get a session token to be
able to access the second web service - this part works ok

When I try and call the second web service, I get the following error.

Result
Array ( [faultcode] => env:Client [faultstring] => Rejected (from
client) )

Request

Response

VR array(2) { ["faultcode"]=> string(10) "env:Client" ["faultstring"]=>
string(22) "Rejected (from client)" }

Below is my code:

$VendorWsdl =
"https://api.betfair.com/betex-api-public-ws/v1/VendorService.wsdl";
$VendorSoap = new soapclient($VendorWsdl,"wsdl");
$VendorProxy = $VendorSoap->getProxy();

$AddUserParams =
array(request=>array('header'=>$BetfairRequestHead er,'username'=>$tok[3],'vendorSoftwareId'=>342,'expiryDate'=>$expiry));
$VendorAddResult = $VendorProxy->addVendorSubscription($AddUserParams);

$VendorSessionToken =
$VendorAddResult['Result']['header']['sessionToken'];
print("VST "); print($VendorSessionToken); print("<br>\n");
if ($VendorSoap->fault)
{
print_r($VendorAddResult);
echo "";
}
else
{
$VendorError = $VendorSoap->getError();
if ($VendorError)
{
echo "<h2>Error</h2>" . $VendorError . "";
}
else
{
echo "<h2>Result</h2>";
print_r($VendorAddResult);
echo "";
}
}
echo "<h2>Request</h2>";
print_r($VendorSoap->request); print("<br>\n");
echo "" . htmlspecialchars($VendorSoap->request, ENT_QUOTES) . "";
echo "<h2>Response</h2>";
echo($VendorSoap->response); print("<br>\n");
echo "" . htmlspecialchars($VendorSoap->response, ENT_QUOTES) . "";

print("VR "); var_dump($VendorAddResult);

Thanks,


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0