Garayed.com  

Go Back   Garayed.com > PHP
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-2006, 04:36 PM
Naoum Naoumov
 
Posts: n/a
Default Problem receiving an array with php5/soap from a gsoap server

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 ) )

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:29 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.