This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOAPHeader in axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAPHeader in axis2" Watch "SOAPHeader in axis2" New topic

SOAPHeader in axis2

robert isidorson

Joined: Sep 03, 2007
Posts: 19
I have built a webservice with axis2. It contains of one simple method.
Now I want to add SOAPHeader to the response back to the client. I can't find any examples doing this. In axis1.* this could be done by getting the MessageContext and modify the SOAPEnvelope, but how to do this in Axis2??
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41034
Which API are you using? If it is a SAAJ client, then this example client shows how to set SOAP headers.

Ping & DNS - my free Android networking tools app
robert isidorson

Joined: Sep 03, 2007
Posts: 19
Thanks for the example. I want to modify the SOAPHeader on the server side, i have figured it out how to do this on client-side.
I'm using the apache axis2 api's.
I agree. Here's the link:
subject: SOAPHeader in axis2
Similar Threads
Axis2 - Handlers for SOAP headers
Web Service without any framework
Adding JAXB object to Soap Header
Invoke .NET Web Service using Java/Axis passing SoapHeader