Thanks...

We want SOAP server to do the work asynchronously after client sends login XML. 
Along with JSESSIONID/Cookie, we send application level 20 char unique handle 
to client as login's response. Client sends its XML with JsessionID (Session 
Scope)+ application hanldle(20 char) on every transaction. We want to use a 
pool of sockets (worker bees) and hand over transaction XML to one of the 
sockets in the pool. We do not know when we will get answer back from down 
stream server. (Usually we get answer back in 400ms). The question is after we 
get answer back, how do we jump back to tomcat5 thread (that is providing class 
of SOAP Service) to send response back to correct real world SOAP Client using 
return(XML..) statement? 

Are you saying in "Callback" solution that after we have session established on 
Server, we create a dummy client call to SOAP server itself and wait for Server 
to call back after answer is ready? and once dummy client gets answer, call 
return(XML) method so that real client in Internet world would get its answer? 
May be I will have to study more about end-point Information...


Vivek  

-----Original Message-----
From: Scott Nichol [mailto:[EMAIL PROTECTED]
Sent: Friday, September 02, 2005 12:19 PM
To: [email protected]
Subject: Re: SOAP Session/Context Question....Return XML statement 


There is no notion of asynchronous calling in the SOAP 1.1 spec, and Apache 
SOAP does not have any custom extension to do so.  It is, of course, possible 
to implement something on your own.  There are at least two varations:

1. Initial request and polling.  The client makes the initial request and the 
service returns a token that uniquely identifies the request.  The client then 
periodically calls another method, pass the token as a parameter, to see 
whether the work is done.  If it is, the service returns the result of the work.

2. Callback.  The "client" is also a SOAP server.  It makes the initial request 
to the server and includes in its parameters the SOAP endpoint information for 
the callback from the server.  When the server finishes its work, it uses the 
endpoint information to send the result to the "client".

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Dandekar, Vivek" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, September 02, 2005 11:34 AM
Subject: SOAP Session/Context Question....Return XML statement 


If one leaves SOAP session (in side Tomcat5) and uses different thread to get 
work done and when XML response is ready, how do we send response back to same 
SOAP Client? 
 
Today we use return(XML response) in the same SOAP session so no issue there. 
Is there any variation of return call in SOAP environment that can pass 
JSESSION id so that proper client gets the response back on same https session 
with Apache?
 
Thanks.
Vivek

 


Reply via email to