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 <[email protected]>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:[email protected]] > *Sent:* 13 July 2009 10:46 > *To:* [email protected] > *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 <[email protected]> > *To:* [email protected] > *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 <[email protected]> > 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 > > > > >
