|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-14 06:38 UTC] nnaoumov at gridapp dot com
[2006-07-14 10:05 UTC] dmitry@php.net
[2006-07-14 12:59 UTC] nnaoumov at gridapp dot com
[2006-07-19 08:20 UTC] dmitry@php.net
[2006-07-19 13:54 UTC] nnaoumov at gridapp dot com
[2006-07-19 14:16 UTC] dmitry@php.net
[2006-07-19 15:22 UTC] nnaoumov at gridapp dot com
[2006-07-24 07:25 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Description: ------------ I wrote a small soap server in C++ (with gsoap) and a small php soap client. When I tried to send over an array of strings from the server to the client I only receieved the first value of the array. Reproduce code: --------------- <?php $client = new SoapClient("php-array.wsdl", array("trace"=>1, "exceptions"=>1) ); $param = 5; $rs = $client->noop( new SoapParam($param, "num") ); #echo $client->__getLastResponse()); print_r($rs); ?> The server is in C++ so I cant post it here but it is really simple and only provides the method noop which takes an integer and returns an array of as many strings as is the argument. Here is the output from getLastResponse which shows the soap msg sent from the server to the php client. If required I can post the wsdl file as well. <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mgrin="urn:myns-internal"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><mgrin:noopResponse><result xsi:type="xsd:string">test0</result><result xsi:type="xsd:string">test1</result><result xsi:type="xsd:string">test2</result><result xsi:type="xsd:string">test3</result><result xsi:type="xsd:string">test4</result></mgrin:noopResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> Expected result: ---------------- Array ( [0] => test0 [1] => test1 [2] => test2 [3] => test3 [4] => test4) Actual result: -------------- test0