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

Your name:

Reply:


Posted by Naoum Naoumov on 07/13/06 15:36

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация