![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| 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 ) ) |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |