By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,490 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,490 IT Pros & Developers. It's quick & easy.

Problem receiving an array with php5/soap from a gsoap server

P: n/a
So I have a gsoap server and a PHP soap client and I am trying to
return a list (vector) of objects to the PHP client. However, the
client seems to only store the last element of the array ... Any ideas
on how to solve that?

$rs = $client->get( new SoapParam($request, "request") , new
SoapParam($response, "response" ) );
print_r($rs);

REQUEST: <?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:dmanager-internal"><SOAP-ENV:Body><mgrin:getResponse><response
xsi:type="SinglePair"><name>result</name><value>SUCCESS</value></response><response
xsi:type="SinglePair"><name>jobid</name><value>12345</value></response></mgrin:getResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
Array ( [response] =stdClass Object ( [name] =jobid [value] =>
12345 ) )

Jul 13 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.