ID: 38100
Updated by: [EMAIL PROTECTED]
Reported By: nnaoumov at gridapp dot com
-Status: Open
+Status: Assigned
Bug Type: SOAP related
Operating System: redhat 4
PHP Version: 5CVS-2006-07-14 (snap)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2006-07-14 06:38:36] nnaoumov at gridapp dot com
Btw, initially I had this problem with php 5.1.2 but then I compiled
the daily snapshot for php 5.2 and it's still there
------------------------------------------------------------------------
[2006-07-14 06:36:27] nnaoumov at gridapp dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38100&edit=1