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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Naoum  Naoumov

    #1

    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($requ est, "request") , new
    SoapParam($resp onse, "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="ur n:dmanager-internal"><SOAP-ENV:Body><mgrin :getResponse><r esponse
    xsi:type="Singl ePair"><name>re sult</name><value>SUC CESS</value></response><respo nse
    xsi:type="Singl ePair"><name>jo bid</name><value>123 45</value></response></mgrin:getRespon se></SOAP-ENV:Body></SOAP-ENV:Envelope>


    Array ( [response] =stdClass Object ( [name] =jobid [value] =>
    12345 ) )

Working...