logo       

Re: wsdl no input parameter: msg#00038

php.nusoap.general

Subject: Re: wsdl no input parameter

Try an empty array instead of false.

$server->register('get_all_documents',
array(),
array('return' => 'tns:DocumentHeaderArray'),
$NAMESPACE,
'urn:jadu_documents_wsdl#get_all_documents',
'rpc',
'encoded',
'Return the complete set of document headers'
);

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: "Richard Chamberlain" <richard@xxxxxxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, April 10, 2004 6:49 PM
Subject: [Nusoap-general] wsdl no input parameter


Hello,

To begin with let me qualify that I'm both a SOAP and NuSOAP newbie, so
it could simply be a misunderstanding on my part.

Basically I want to register a function that takes no parameters, using
wsdl.

This is what I've got:

$server->register('get_all_documents',
false,
array('return' => 'tns:DocumentHeaderArray'),
$NAMESPACE,
'urn:jadu_documents_wsdl#get_all_documents',
'rpc',
'encoded',
'Return the complete set of document headers'
);

I looked at the implementation of register in nusoap.php and see that by
default the input is false and so I'm guessing the above is what I need
to do. Doesn't appear to work though :-/

Firstly loading the page without wsdl gives me 'Warning: Invalid
argument supplied for foreach() in
/home/kbcouncil/public_html/soap/nusoap.php on line 2929'. Secondly my
soap client complains about incorrect parameters.

Any suggestions?

Many thanks,

Richard




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise