You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Lars Ericsson <la...@yahoo.com> on 2009/07/13 10:46:02 UTC
Re: Is it possible to invoke multiple services in a single transaction?
What are you meaning with multiple services?
There is just one respons for one request......
and authentication hasn't to do with transaction.....
Do you know how you can and why you should, use the webservice!?
________________________________
From: Chinmoy Chakraborty <cc...@gmail.com>
To: axis-user@ws.apache.org
Sent: Monday, July 13, 2009 7:37:43 AM
Subject: Re: Is it possible to invoke multiple services in a single transaction?
Hi All,
I didn't get any response for my previous query so I am sending again. Could you please tell me, "Is it possible to invoke multiple services in a single transaction?".
How I can do this? Any idea??
Chinmoy
On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty <cc...@gmail.com> wrote:
Hi,
>
>I want invoke autenticate service by passing username and password in SOAP header and in the SOAP body I want to add multiple services. In short in a single SOAP i want to invoke multiple services along with authentication by sending username and password in the SOAP header.
>
>How I can do that suing Axis2? Any direction will be highly appreciated.
> Chinmoy
RE: Is it possible to invoke multiple services in a single
transaction?
Posted by Taariq Levack <ta...@tasima.co.za>.
Look at UsernameToken to secure the service, this is not an additional service though some people have implemented it this way.
It is simply part of the security header as you described and forms part of the 'listFunctions' service and must be sent everytime
'listFunctions' is called, which explains why some people implement it as a separate service.
If it's to be part of the header it's not a separate service. 'Closing the service' I don't understand but surely your 'listFunctions' service can do this when it's done.
Taariq
________________________________
From: Chinmoy Chakraborty <cc...@gmail.com>
To: axis-user@ws.apache.org
Sent: Monday, July 13, 2009 12:49:46 PM
Subject: Re: Is it possible to invoke multiple services in a single transaction?
Guys,
Thanks for the reply. One of our client has this requirement. They want to authenticate, call some services and close (call close service) the session in a single request by which they don't have any orphaned sessions. I have three services deployed in the server authenticate, listfinction and ABS. Below is the 3 SOPAs for 3 webservice call (from client) captured in SOAPMonitor:
authenthicate service SOAP
<?xml version='1.0' encoding='utf-8'?>
http://localhost:8080/services/authenticateservice
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470034166</wsa:MessageID>
<wsa:Action>authenticateWithRole</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:authenticate xmlns:ns="authenticateservice">
<ns:username>system</ns:username>
<ns:password>manager</ns:password>
</ns:authenticate>
</soapenv:Body>
</soapenv:Envelope>
listfunction service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
http://localhost:8080/services/abc_listFunctions
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470035857</wsa:MessageID>
<wsa:Action>listFunctions</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:listFunctions xmlns:ns="abc_listFunctions">
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>false</arg1>
</ns:listFunctions>
</soapenv:Body>
</soapenv:Envelope>
ABS service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
http://localhost:8080/services/ABS
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470047736</wsa:MessageID>
<wsa:Action>invoke</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>-6</arg1>
</ns:ABS>
</soapenv:Body>
</soapenv:Envelope>
Now I want to send username and password in SOAP header and in the SOAP body I want add two services that will call two webservices. So by sending a single SOAP I want to call actually three services (authenticate, listfinction and ABS).
I hope I could make you understand.
Chinmoy
On Mon, Jul 13, 2009 at 4:09 PM, Taariq Levack <ta...@tasima.co.za>> wrote:
Then create a web service that takes as input all the data for all the services, have that service call other services.
Taariq
From: Lars Ericsson [mailto:larslars9999@yahoo.com<ma...@yahoo.com>]
Sent: 13 July 2009 10:46
To: axis-user@ws.apache.org<ma...@ws.apache.org>
Subject: Re: Is it possible to invoke multiple services in a single transaction?
What are you meaning with multiple services?
There is just one respons for one request......
and authentication hasn't to do with transaction.....
Do you know how you can and why you should, use the webservice!?
________________________________
From: Chinmoy Chakraborty <cc...@gmail.com>>
To: axis-user@ws.apache.org<ma...@ws.apache.org>
Sent: Monday, July 13, 2009 7:37:43 AM
Subject: Re: Is it possible to invoke multiple services in a single transaction?
Hi All,
I didn't get any response for my previous query so I am sending again. Could you please tell me, "Is it possible to invoke multiple services in a single transaction?".
How I can do this? Any idea??
Chinmoy
On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty <cc...@gmail.com>> wrote:
Hi,
I want invoke autenticate service by passing username and password in SOAP header and in the SOAP body I want to add multiple services. In short in a single SOAP i want to invoke multiple services along with authentication by sending username and password in the SOAP header.
How I can do that suing Axis2? Any direction will be highly appreciated.
Chinmoy
Re: Is it possible to invoke multiple services in a single transaction?
Posted by Lars Ericsson <la...@yahoo.com>.
You have three webservices, and you want to use just one client to access for all three services! is it right?
No it is not possible. you should have a client for eache service. it have several resones, one of this can be the have differnet namespace and different functions and so on.....
but you can make just one service, as a superClient or interface to call those functions and service on those three different services. and i have done without any security before and it should work, and it should works even for wss.
________________________________
From: Chinmoy Chakraborty <cc...@gmail.com>
To: axis-user@ws.apache.org
Sent: Monday, July 13, 2009 12:49:46 PM
Subject: Re: Is it possible to invoke multiple services in a single transaction?
Guys,
Thanks for the reply. One of our client has this requirement. They want to authenticate, call some services and close (call close service) the session in a single request by which they don't have any orphaned sessions. I have three services deployed in the server authenticate, listfinction and ABS. Below is the 3 SOPAs for 3 webservice call (from client) captured in SOAPMonitor:
authenthicate service SOAP
<?xml version='1.0' encoding='utf-8'?>
http://localhost:8080/services/authenticateservice
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470034166</wsa:MessageID>
<wsa:Action>authenticateWithRole</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:authenticate xmlns:ns="authenticateservice">
<ns:username>system</ns:username>
<ns:password>manager</ns:password>
</ns:authenticate>
</soapenv:Body>
</soapenv:Envelope>
listfunction service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
http://localhost:8080/services/abc_listFunctions
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470035857</wsa:MessageID>
<wsa:Action>listFunctions</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:listFunctions xmlns:ns="abc_listFunctions">
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>false</arg1>
</ns:listFunctions>
</soapenv:Body>
</soapenv:Envelope>
ABS service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
http://localhost:8080/services/ABS
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470047736</wsa:MessageID>
<wsa:Action>invoke</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>-6</arg1>
</ns:ABS>
</soapenv:Body>
</soapenv:Envelope>
Now I want to send username and password in SOAP header and in the SOAP body I want add two services that will call two webservices. So by sending a single SOAP I want to call actually three services (authenticate, listfinction and ABS).
I hope I could make you understand.
Chinmoy
On Mon, Jul 13, 2009 at 4:09 PM, Taariq Levack <ta...@tasima.co.za> wrote:
>Then create a web service that takes as input all the data for all the services, have that service call other services.
>
>Taariq
>
>From:Lars Ericsson [mailto:larslars9999@yahoo.com]
>Sent: 13 July 2009 10:46
>
>
>To: axis-user@ws.apache.org
>
>Subject: Re: Is it possible to invoke multiple services in a single transaction?
>
>What are you meaning with multiple services?
>There is just one respons for one request......
>and authentication hasn't to do with transaction.....
>Do you know how you can and why you should, use the webservice!?
>
>
________________________________
>From:Chinmoy Chakraborty <cc...@gmail.com>
>To: axis-user@ws.apache.org
>Sent: Monday, July 13, 2009 7:37:43 AM
>Subject: Re: Is it possible to invoke multiple services in a single transaction?
>Hi All,
>
>I didn't get any response for my previous query so I am sending again. Could you please tell me, "Is it possible to invoke multiple services in a single transaction?".
>
>How I can do this? Any idea??
>
>Chinmoy
>On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty <cc...@gmail.com> wrote:
>Hi,
>
>I want invoke autenticate service by passing username and password in SOAP header and in the SOAP body I want to add multiple services. In short in a single SOAP i want to invoke multiple services along with authentication by sending username and password in the SOAP header.
>
>How I can do that suing Axis2? Any direction will be highly appreciated.
>
>Chinmoy
>
>
Re: Is it possible to invoke multiple services in a single
transaction?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
Guys,
Thanks for the reply. One of our client has this requirement. They want to
authenticate, call some services and close (call close service) the session
in a single request by which they don't have any orphaned sessions. I have
three services deployed in the server authenticate, listfinction and ABS.
Below is the 3 SOPAs for 3 webservice call (from client) captured in
SOAPMonitor:
authenthicate service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8080/services/authenticateservice</wsa:To>
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470034166</wsa:MessageID>
<wsa:Action>authenticateWithRole</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:authenticate xmlns:ns="authenticateservice">
<ns:username>system</ns:username>
<ns:password>manager</ns:password>
</ns:authenticate>
</soapenv:Body>
</soapenv:Envelope>
listfunction service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8080/services/abc_listFunctions</wsa:To>
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470035857</wsa:MessageID>
<wsa:Action>listFunctions</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:listFunctions xmlns:ns="abc_listFunctions">
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>false</arg1>
</ns:listFunctions>
</soapenv:Body>
</soapenv:Envelope>
ABS service SOAP
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8080/services/ABS</wsa:To>
<wsa:MessageID>urn:uuid:2595C7BE88547C153B1247470047736</wsa:MessageID>
<wsa:Action>invoke</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns:ABS xmlns:ns="http://www.labware.com/webservice">
<arg0>LIMS1_f9e44b2c1227302196bda75955654ce3</arg0>
<arg1>-6</arg1>
</ns:ABS>
</soapenv:Body>
</soapenv:Envelope>
Now I want to send username and password in SOAP header and in the SOAP body
I want add two services that will call two webservices. So by sending a
single SOAP I want to call actually three services (authenticate,
listfinction and ABS).
I hope I could make you understand.
Chinmoy
On Mon, Jul 13, 2009 at 4:09 PM, Taariq Levack
<ta...@tasima.co.za>wrote:
>
>
> Then create a web service that takes as input all the data for all the
> services, have that service call other services.
>
>
>
> Taariq
>
>
>
> *From:* Lars Ericsson [mailto:larslars9999@yahoo.com]
> *Sent:* 13 July 2009 10:46
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Is it possible to invoke multiple services in a single
> transaction?
>
>
>
> What are you meaning with multiple services?
> There is just one respons for one request......
> and authentication hasn't to do with transaction.....
> Do you know how you can and why you should, use the webservice!?
>
>
> ------------------------------
>
> *From:* Chinmoy Chakraborty <cc...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Monday, July 13, 2009 7:37:43 AM
> *Subject:* Re: Is it possible to invoke multiple services in a single
> transaction?
>
> Hi All,
>
>
>
> I didn't get any response for my previous query so I am sending again.
> Could you please tell me, "Is it possible to invoke multiple services in a
> single transaction?".
>
>
>
> How I can do this? Any idea??
>
>
>
> Chinmoy
>
> On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty <cc...@gmail.com>
> wrote:
>
> Hi,
>
>
>
> I want invoke autenticate service by passing username and password in SOAP
> header and in the SOAP body I want to add multiple services. In short in a
> single SOAP i want to invoke multiple services along with authentication by
> sending username and password in the SOAP header.
>
>
>
> How I can do that suing Axis2? Any direction will be highly appreciated.
>
>
>
> Chinmoy
>
>
>
>
>
RE: Is it possible to invoke multiple services in a single
transaction?
Posted by Taariq Levack <ta...@tasima.co.za>.
Then create a web service that takes as input all the data for all the services, have that service call other services.
Taariq
From: Lars Ericsson [mailto:larslars9999@yahoo.com]
Sent: 13 July 2009 10:46
To: axis-user@ws.apache.org
Subject: Re: Is it possible to invoke multiple services in a single transaction?
What are you meaning with multiple services?
There is just one respons for one request......
and authentication hasn't to do with transaction.....
Do you know how you can and why you should, use the webservice!?
________________________________
From: Chinmoy Chakraborty <cc...@gmail.com>
To: axis-user@ws.apache.org
Sent: Monday, July 13, 2009 7:37:43 AM
Subject: Re: Is it possible to invoke multiple services in a single transaction?
Hi All,
I didn't get any response for my previous query so I am sending again. Could you please tell me, "Is it possible to invoke multiple services in a single transaction?".
How I can do this? Any idea??
Chinmoy
On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty <cc...@gmail.com>> wrote:
Hi,
I want invoke autenticate service by passing username and password in SOAP header and in the SOAP body I want to add multiple services. In short in a single SOAP i want to invoke multiple services along with authentication by sending username and password in the SOAP header.
How I can do that suing Axis2? Any direction will be highly appreciated.
Chinmoy