Welcome Guest, Not a member yet? Register   Sign In
XML-RPC Library : How to send data without return
#1

[eluser]louis w[/eluser]
Because of the layout of my application I am trying to send an XML-RPC response without 'return'ing it. The location of my code is burried inside a library which is called by my method. Because it's in a library if I "return $this->xmlrpc->send_response" it wouldn't actually get sent as the final output of the request.

I was hoping to do something similar to this, but it obviously doesn't work.

echo $this->xmlrpc->send_response(array($data, 'struct'));
exit();

Think show_error, that's what I am trying to emulate. From any point in my application be able to send a final output and stop the application from proceeding.

I tried looking around the XML-RPC library but don't understand where it actually sets final output and sends it back to the requester.




Theme © iAndrew 2016 - Forum software by © MyBB