I simple use MessageContext.getCurrentMessageContext().getEnvelope()
which works for in-out operations. For in-only operations I know that
the envelope is non-null and seems to contain valid content since the
XMLBeans operation parameter content is all right.
Regards,
Martin
Am 17.09.2008 um 14:02 schrieb keith chapman:
What is the mechanism you used to access the SOAPEnvelop from the
service implementation class?
Thanks,
Keith.
On Wed, Sep 17, 2008 at 4:58 PM, Martin Scholl
<[EMAIL PROTECTED]> wrote:
Hi,
I got some trouble with the SOAP Envelope contained in the
MessageContext of in-only operations, which I access in the
ServiceSkeleton implementation class. When calling toString
operation on any element of the envelope (body, header, etc.) or on
the envelope itself I receive an OMException, caused by a
NoSuchElementException. When calling toString operation on the
envelope which was converted in a org.w3c.dom.Element before I
receive a RuntimeException with message 'Can not serialize OM
Element Envelope'. This exception is caused by a XMLStreamException.
We use XMLBeans databinding which does not complain about anything
and works well. Additionally in-out operations' SOAP Envelope is
valid. I could not manage to find any clue yet. We use Axis2 1.3 on
top of Tomcat6 and generate the service client and server classes
from WSDL 1.1 using WSDL2Java and XMLBeans 2.2.0.
Any ideas?
Thanks in advance.
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org