Hello.
Can't seem to find anywhere, examples of how to
return a document/literal value from a nusoap server function.
All I seem to get client-side is a fault string "unable to serialize result".
The function declarations are correct, WSDL is looking fine too...
- <operation name="registerItem">
<soap:operation soapAction="http://10.x.x.x/df/j.php/registerItem" style="document" />
- <input>
<soap:body use="literal" namespace="http://10.x.x.x/mySpace" />
</input>
- <output>
<soap:body use="literal" namespace="http://10.x.x.x/mySpace" />
</output>
</operation>
|
I can successfully pass literal strings into the server from client-side (confirmed by logging $server->request to file), so I know that it gets there, but can't figure out how exactly to return values. I'm using, at the client:
$client->call('registerItem', '<inbound_message>message contents</inbound_message>');
|
I've attempted various ways of returning "raw", pre-formatted xml, as follows:
return "<value>a value</value>";
return new soapval('return', 'value', 'a value');
|
Help - none of the above have worked. Anyone have any bright ideas?