axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: Adressing, async services and responses
Date Fri, 21 Nov 2008 09:14:18 GMT
David,

I don't understand what step 3.2 means, you have the HTTP 200 for  
that. BTW, yes, it is possible. Just start a brand new MEP.


Michele


On 20 Nov 2008, at 19:28, David Ojeda wrote:

> Michele,
> You are right, this example is clearly feasible. But what if I  
> wanted to do step step 3.2 before 3. I mean, respond that the ws  
> will process this request *before* actually doing the heavy work  
> (transfering funds). This what I think is not possible with axis2  
> (maybe not even with other ws soap implementations).
> David
> On Thursday 20 November 2008 14:23:00 Michele Mazzucco wrote:
> > On 20 Nov 2008, at 17:39, David Ojeda wrote:
> > > I am saying it is not possible because I need some validation on
> > > the webservice implementation and then respond. As you said in  
> your
> > > first response, " the acknowledgment (i.e. HTTP 200) is *always*
> > > sent back to the client *before* the server starts processing the
> > > request"
> > > Maybe an example will help:
> > > Suppose that we are developing a Webservice for a bank with an
> > > operation that transfers money from an user's account to another
> > > bank account.
> > > The service will be used in a frontend so users transfer money
> > > between accounts. A client will set the destined account and  
> amount
> > > and the frontend should quickly respond if the operation will be
> > > executed or not.
> > > 1. A ws-client sends the request to the service, with a xml that
> > > contains the user's account, the amount and the destined account.
> > > 2. The ws receives the request and validates the input (checks if
> > > the user's account has enough funds)
> > > 3 if valid, ws spawns a thread in order to make the money transfer
> > > (this could take hours if the other account is in some other
> > > country, for example)
> > > 3.1. ws notifies external system
> > > 3.2. ws responds (to the replyTo or faultTo) that it will process
> > > this request
> > > 4 if not valid ws responds (to the replyTo or faultTo) that it  
> will
> > > not process this request. The external system is not notified
> > > Maybe with the example above I can make myself clearer?
> >
> > Yes, that's clear. But still I don't understand why you're saying
> > it's not feasible. I honestly can't see why.
> >
> >
> > Michele
> >
> >  
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> --
> David Ojeda


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message