You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Wouter Cloetens <wc...@raleigh.ibm.com> on 2000/07/23 14:47:23 UTC
Re: asynchronous soap messages.
On Sun, 23 Jul 2000 23:21:50 GMT, Scott Bell wrote:
>Is there any way to do asynchronous messaging using apache soap toolkit
>(such as the "oneway" method in CORBA). All i can see are RPC messages.
Depending on your application, all you may need to do is to ignore the response (if it isn't
a fault response).
I am using MQSeries publish/subscribe here, allowing me to multicast a SOAP message
(datagram) without expecting a response. When sending the request, my MQSeries
pub/sub transport implementation simply generates a bogus response document:
// make up void SOAP response text
String response = "<SOAP-ENV:Envelope "
+ "xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+ "<SOAP-ENV:Body>"
+ "<elementsResponse/>"
+ "</SOAP-ENV:Body></SOAP-ENV:Envelope>";
The client obviously knows to ignore the response.
At the destination, I could make a bridge that simply passes the SOAP request to an
HTTP server and discards the response message. However, I don't necessarily want to
run a webserver there, so I want to parse the message. It should be possible to construct
the Call object in the same way rpcrouter.jsp does it, and then invoke it. I'm breaking
rpcrouter.jsp into smaller pieces though, so most of its logic can be invoked outside of a
webserver environment.
bfn, Wouter
e.Service IT Architect
wcloeten@raleigh.ibm.com Wouter Cloetens/Rochester/IBM
Tel: +1-507-286-6343 T/L 456-6343
Rochester bld 005-02 office F106 mailpoint LAV