Thanks a lot Sagar.
I tried and got little further - but now I am getting the following exception:
[ERROR] javax.xml.ws.WebServiceException: An internal error occurred. The org.ap
ache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl block object is already
consumed. Processing cannot continue. Run with the debug option to determine wh
ere the block was first consumed.
[ERROR]
org.apache.axis2.AxisFault
at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.createFau
ltResponse(JavaBeanDispatcher.java:354)
at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(Ja
vaBeanDispatcher.java:109)
at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointContr
oller.java:106)
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessa
geReceiver.java:159)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
33)
Now I have:
@Resource(type=WebServiceContext.class)
public WebServiceContext webServiceContext;
and inside the service - I have:
SOAPMessageContext soapMessageContext =
(SOAPMessageContext)webServiceContext.getMessageContext();
But when I do:
javax.xml.soap.SOAPMessage soapMessage = soapMessageContext.getMessage();
I am getting the above exception. When I do Google - I find several hits in
general - it seems to be JAX-WS thing and not related to Axis2.
However, I was wondering if someone in the community has seen it. Please let me
know.
Thanks everyone,
-rishi
________________________________
IMPORTANT WARNING: Information contained in this email is intended for the use
of the individual to whom it is addressed, and may contain information that is
privileged, confidential, and exempt from disclosure under applicable law. If
you are not the intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is STRICTLY
FORBIDDEN. If you have received this communication in error, please notify us
immediately by return email and delete this document. Thank you.