if you are implementing your solution in websphere dims mentioned this may be specific to ibm please view
http://www.nabble.com/The-org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl-block-object-is-already-consumed.-td23138529.html Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: rka...@activehealth.net To: axis-user@ws.apache.org Date: Thu, 28 May 2009 15:01:16 -0400 Subject: Accessing context in Axis2 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. _________________________________________________________________ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009