NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
difference between basic, wsdl and proxy client


Joined: 11 Aug 2003
Posts: 11
Reply with quote
Hi!
Somebody could tell me the difference between a basic client, wsdl client and proxy client??

The code for each one is the next:

Code:

BASIC CLIENT USAGE EXAMPLE

<?php

require_once('nusoap.php');
$parameters = array('name'=>'dietrich');
$soapclient = new soapclient('http://someSOAPServer.com/hello.php');
echo $soapclient->call('hello',$parameters);

?>

WSDL CLIENT USAGE EXAMPLE

<?php

require_once('nusoap.php');
$parameters = array('dietrich');
$soapclient = new soapclient('http://someSOAPServer.com/hello.wsdl','wsdl');
echo $soapclient->call('hello',$parameters);

?>

PROXY CLIENT USAGE EXAMPLE (only works w/ wsdl)

<?php

require_once('nusoap.php');
$soapclient = new soapclient('http://someSOAPServer.com/hello.wsdl','wsdl');
$soap_proxy = $soapclient->getProxy();
echo $soap_proxy->hello('dietrich');

?>


Alvaro
View user's profileFind all posts by inforalvSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7897
Reply with quote
BASIC sample is a kind of bypassing WSDL and you'd avoid it.

NON-PROXY sample makes WSDL calls each time.

PROXY sample makes WSDL call just one time - at the time when you create proxy object.

So latter is the fastest way if you need to run multiple calls with the same URI/WSDL.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
difference between basic, wsdl and proxy client
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