Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC

 
gupta prakash
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any one please tell me what is the difference between javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageContext.

1) What is the main purpose of WebServiceContext. Is it used internally within the service to store some data and processing?
2) Can we access the SOAPHeaders through this WebServiceContext?

I am having 2 EJB stateless web services. first service used the @Resource annotation to get a reference to the WebServiceContext.
what does this contains? Does it holds the reference to the SOAP Headers? And my first service(say A) will invoke the service(B) internally. So this WebServiceContext in A will be available in B?


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic