This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAPHeader in axis2

 
robert isidorson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which API are you using? If it is a SAAJ client, then this example client shows how to set SOAP headers.
 
robert isidorson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic