logo       

Re: Need to send multiple parameters with the same name: msg#00098

php.nusoap.general

Subject: Re: Need to send multiple parameters with the same name

This may be correct, but it may be that the service does not understand a SOAP
Array. If it is doc/lit, it will expect the array to look like a series of
like-named elements. Using WSDL, a PHP array as you have shown will work.
Without WSDL, it would be necessary to specify in the parameters to the call
method that the service is doc/lit. Whatever the case, posting either the WSDL
or a sample payload would help clarify the code required on the client.

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: "Mark Spavin" <mark@xxxxxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, May 20, 2004 8:20 AM
Subject: Re: [Nusoap-general] Need to send multiple parameters with the same
name


I think this is a programming/PHP issue not a nusoap issue, you will have to
send an array of groups and not multiple keynames 'Group' as PHP does not
allow keys to be the same, all keynames must be unique. Or simply send the
array of names into a function that understands it is receiving an array of
group names, these should work depending on what you are trying to achieve.

$requestparams = array ('Groups' => array(array ('Name' => 'Medium'), array
('Name' => 'Request')));
$requestparams = array ('Groups' => array('Medium', 'Request'));
$requestparams = array ('Medium','Request');

Hope this helps

Mark

----- Original Message -----
From: "Paul Millar" <dazzle@xxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, May 20, 2004 9:30 AM
Subject: [Nusoap-general] Need to send multiple parameters with the same
name


> I'm trying to send multiple parameters with the same name but NuSoap only
> sends the last one mentioned.
>
> --code--
>
> $requestparams = array ('Group' => array ('Name' => 'Medium'), 'Group' =>
> array ('Name' => 'Request'));
>
> $result = $client->call('DoSomething', $requestparams, 'xmlns');
>
> How can I set the parameters so it sends both lots of 'Group' and not just
> the last one?
>
> thanks for any help,
>
> Paul
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click


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

News | FAQ | advertise