Hannes Erven schrieb:
Hi Dominik,
> if I want to use a client to invoke a web service running on a web
server using
>atomic transactions, is it necessary for my Client ro run on a
webserver too?
This is a tricky question.
In general, only web services may participate as a resource in a WS-*
transaction.
You refer to the "client", which I understand as the business logic
driving the transaction. This role is normally called initiator.
Usually, you do need a web server -- in fact, a web service container
with a deployed transaction software, eg Kandula -- even to run your
initiator.
If you take a look at the WSAT port types Kandula uses, you'll notice
that the commitOperation or rollbackOperation methods are void, so you
do not get the actual outcome of the transaction back.
So how is this done? Upon termination of the transaction, the
Coordinator invokes the Coordinator Completion participant's protocol
services's committedOperation or abortedOperation operation to
indicate the actual result. So, for WS-AT, yes, you'll need a
fully-fledged Kandula instance living in a web service container to
support your client application.
There is one thing I noticed: you mentioned a command-line client, and
a web service that is being called. Where in your scenario does the
WS-AT Coordinator run?
Best regards and good night ;-)
-hannes
Hi Hannes,
so because of the question where my Coordinator runs, I am not exactly
sure actually... In my last scenario I have tried to run the Banking
example with eclipse wtp. So I have split up the Banking example into 2
webapp projects including the server-config, web.xml etc. The projects
are running on the same tomcat now as different webservices, there is
the Bank end at http://localhost:8080/HelloWorld/* and the Initiator
(Client) at http://localhost:8080/BankingClient/*. In the BankingClient
project there is also the Tester in it which as soon as the web services
are up and runnung, I run as an application. I guess my problem is that
the Initiator tries to call the Coordinator at
http://localhost:8080/axis/services/activationCoordinator and that is
the point where I get an Exception. It also might be possible that I
totally misunderstood the functionality of how atomic transactions work
with a coordinator.
Well thx so much for your help, and have a good night too.
Dominik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]