NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Creating a literal/document server


Joined: 23 Oct 2006
Posts: 3
Reply with quote
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...

Code:

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

Code:

    $client->call('registerItem', '<inbound_message>message contents</inbound_message>');


I've attempted various ways of returning "raw", pre-formatted xml, as follows:

Code:

  return "<value>a value</value>";
  return new soapval('return', 'value', 'a value');


Help - none of the above have worked. Anyone have any bright ideas?

Question
View user's profileFind all posts by supermonkeyman2004Send private message
Creating a literal/document server
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic