Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP header from java artifacts  RSS feed

 
Michael Rootman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

Please advise:

I use Metro to generate stubs from online WSDL.
Part of create java classes are those, that should compose SOAP header. Although I cannot see the way how these java classes can be used to automatically create header in outgoing message.


Created classes:

- MyHeader (methods: setTransaction)
- Destination (methods: setType, setId)
etc

Thank you.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you want to add SOAP headers to messages created by generated stubs, I would suggest using a handler.
At the end of this article there is an example on how to add security headers using a handler: https://xwss.dev.java.net/Securing_JAVASE6_WebServices.html
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!