logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Nusoap-general] Re: difficulty parsing input from some clients but no: msg#00014

Subject: Re: [Nusoap-general] Re: difficulty parsing input from some clients but not others  
For a service function of

    function namebank_search_params($param1,$param2,....$param8)

which matches your 8-parameter WSDL definition, you would change this snippet 
of client code

    $parameters = array('args'=>$args);    
    $big=$soapclient->call('namebank_search_params',$parameters);

to

    $big=$soapclient->call('namebank_search_params',$args);

The args array is already in the format of 'parameter-name' => parameter-value.

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: "David Remsen" <dremsen@xxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, November 04, 2004 9:45 PM
Subject: [Nusoap-general] Re: difficulty parsing input from some clients but 
not others   


> Scott - thanks for the replies.  The main culprit of course is that I 
> probably only know enough to be dangerous.   I left the input args 
> atomic like that because I thought it made the WSDL simpler.  And it 
> seemed like if I threw all the params into an array on the client side 
> that this is what I got in the function.  I do see how it doesn't 
> appear to be what the WSDL describes though.
> 
> 
> So, just so I understand,  If I wanted to leave the WSDL as it is I 
> would simply change my function definition to read .
> 
> function namebank_search_params($param1,$param2,....$param8)?
> 
> if so how would the client call on the other side be structured?  It 
> seemed the easiest thing was rolling everything up in a $parameters 
> array and sending it along.   How do you send multiple arguments with 
> the soapclient->call?
> 
> $soapclient->call('namebank_search_params',$parameters);
> 
> Meantime, I will try the other way which also sounds easier.  Make a 
> complex input object and put the params in there.  One thing I don't 
> quite understand is why it does work with PHP and one of the java 
> clients as it stands.
> 
> I really appreciate your help.  nusoap has allowed me to get much 
> farther along than I thought I would be without professional 
> intervention.  Of course, here I am.
> 
> David
> 
> 
> 
> _______________________________________________
> David Remsen
> uBio Project Developer
> Marine Biological Laboratory
> Woods Hole, MA 02543
> 508-289-7632


-------------------------------------------------------
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>