axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinmoy Chakraborty <cch...@gmail.com>
Subject Re: Is it possible to invoke multiple services in a single transaction?
Date Mon, 13 Jul 2009 07:41:48 GMT
Andreas,

Thanks for reply. 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 12:31 PM, Andreas Veithen <andreas.veithen@gmail.com
> wrote:

> It depends on what you mean by "single transaction" or "single SOAP".
>
> Andreas
>
> On Mon, Jul 13, 2009 at 07:37, Chinmoy Chakraborty<cchinu@gmail.com>
> wrote:
> > 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 <cchinu@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
> >
>

Mime
View raw message