NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
use of proxy


Joined: 21 Aug 2007
Posts: 11
Reply with quote
Hi all.

I have been having problems calling an webservice so I have used nuSphere's nusoap wizard to make the code to make the call to the server (im only building the client).

I notice that the code generated differs quite abit from mine. But the most important thing to notice is that the script uses the SOAP proxy object

EG:

// get the SOAP proxy object, which allows you to call the methods directly
$proxy = $soap->getProxy();


// get the result, a native PHP type, such as an array or string
$result = $proxy->SubscriptionStatus($parameters);

But in my previous code I would do:

$result = $client->call('SubscriptionStatus', $parameters);

Now what is the difference between the 2 methods and will one work and the other not in certain circumstances?

Also how do you view what has been requested and what is returned with the proxy object?

echo '<pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';

Please if anyone can help that would be great and much appreciated.

Thanks
View user's profileFind all posts by zlogicSend private message
use of proxy
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic