File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

SOAPHeader in axis2

robert isidorson
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41518
    
  53
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
Greenhorn

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: SOAPHeader in axis2