jQuery in Action, 3rd edition
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
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: 42958
Which API are you using? If it is a SAAJ client, then this example client shows how to set SOAP headers.
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: http://aspose.com/file-tools
subject: SOAPHeader in axis2
It's not a secret anymore!