Re: [SOAP] To set soap client argument for nested request parameters
| From: | Aziz Saleh | Date: | Tue, 06 May 2014 14:53:29 +0000 |
| Subject: | Re: [SOAP] To set soap client argument for nested request parameters | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3403@lists.php.net to get a copy of this message | ||
On Mon, May 5, 2014 at 8:21 PM, Lington <leighton_ecc@hotmail.com> wrote:
> Hello, I would appreciate assistance towards solving this problem. I need
> to
> get a response from a web service that has a soap request as described
> below
> among others: I used the code below
> for another action (which does not need any request fields) of the same web
> service, and I got the correct response: $client = new
> SoapClient($wsdl,array('trace' => $trace, 'exceptions' =>
> $exceptions));
> $response = $client->GetBillerCategories();var_dump($response);However the
> problem I have is that for the GetBillers request shown at the top, I used
> the same code (with the addition of arguments) as I did for the successful
> GetBillerCategories, but could not get an appropriate response. The
> modified
> code is shown below:$xml_array['TerminalId'] = '4pbl0001';
> $xml_array['CategoryId'] = 4; $client = new SoapClient($wsdl,array('trace'
> => $trace, 'exceptions' => $exceptions));$response =
> $client->GetBillers($xml_array);var_dump($response);The response I got
> was:object(stdClass)#36 (1) { ["GetBillersResult"]=> string(144)
> "100018464014" } instead of a long string of names, Ids, products and other
> details of the billers of CategoryId 4.What do I need to do to get the full
> GetBillers response?Your assistance would be highly appreciated.
>
>
>
> --
> View this message in context:
>
> http://php-soap.996275.n3.nabble.com/To-set-soap-client-argument-for-nested-request-parameters-tp1455.htmlƒ{&^=Ð¥Ò4]·‚
> ¸
> Sent from the Php Soap mailing list archive at Nabble.com.
It would be awesome if you can format your question with newlines. Very
hard to follow.