logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: parameter passing with the function call -> how?: msg#00134

Subject: Re: parameter passing with the function call -> how?
This is probably a document/literal service method.  If it is, to call it, you 
probably need to wrap your structure as a single parameter named 'parameters':

$params = array("username" => SOAP_USERNAME, "password" =>SOAP_PASSWORD);
$user = $soapclient->call("getUserByEncryptedUserid", array('parameters' => 
$params));

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Tobias Defranceschi" <td@xxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 29, 2004 11:58 AM
Subject: [Nusoap-general] parameter passing with the function call -> how?


> Hi there!
> 
> I want to access to a secure webservice. The connection itself works 
> fine but i don't know how to pass the parameters of the remote funktion.
> 
> This the important code:
> -------------------
> $params = array("username" => SOAP_USERNAME, "password" =>SOAP_PASSWORD);
> $user = 
> $soapclient->call("getUserByEncryptedUserid",$params,SERVER,SOAP_CONTACT);
> ------------------
> 
> If I connect like that the function is called without any parameter. But 
> if I use a proxy afterwards like following:
> ------------------
> $proxy = $soapclient->getProxy();
> $user = $proxy->getUserByEncryptedUserid($crypted_id);
> ------------------
> 
> I get the reply I need. But how does it work without the proxy??
> I need username and password for autentication and how do I add my param 
> $crypted_id??
> 
> Thanks for your help!
> Tobias
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click


<Prev in Thread] Current Thread [Next in Thread>