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?