This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
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: 39578
    
  27
Which API are you using? If it is a SAAJ client, then this example client shows how to set SOAP headers.


Ping & DNS - updated with new look and Ping home screen widget
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAPHeader in axis2
 
Similar Threads
Web Service without any framework
SOAP HEader
Axis2 - Handlers for SOAP headers
Adding JAXB object to Soap Header
Invoke .NET Web Service using Java/Axis passing SoapHeader