-----
Original Message -----
Sent:
Thursday, July 27, 2006 4:50 PM
Subject:
[AXIS2] parsing problem
Hi all,
I think I have a problem concerning
xmlbeans.
This is what I have done:
- I have generated java code from a wsdl file
with xmlbeans databinding .
- This wsdl file contains two complex types
like this:
<complexType
name="AnyXmlType">
<sequence>
<xs:any namespace="##other"
processContents="lax" />
</sequence>
</complexType>
<complexType
name="AnyXmlOptionalType">
<sequence>
<xs:any minOccurs="0" namespace="##other"
processContents="lax" />
</sequence>
</complexType>
- I deployed the web service...
- I have done a client which send a SOAP
request with a parameter AnyXmlType like this:
AnyXmlTypeInputParamDocument any =
AnyXmlTypeInputParamDocument.Factory.newInstance();
XmlCursor
anycursor =
any.newCursor();
anycursor.toNextToken();
anycursor.beginElement(new
QName("essai"));
anycursor.insertChars("test");
anycursor.toEndToken();
//Sending
AnyXmlOptionalParamDocument
doc = stub.Put(any);
- The good request is sent - (I checked with
soapmonitor)
- However, an exception is raised at the
server side when it wants to retrieve the request. It doesn't able to
parse the soap message.
- Actually, the command fails :
com.example.transfer_xsd.AnyXmlTypeInputParamDocument wrappedParam
=
(com.example.transfer_xsd.AnyXmlTypeInputParamDocument)fromOM(
msgContext.getEnvelope().getBody().getFirstElement(),
com.example.transfer_xsd.AnyXmlTypeInputParamDocument.class,
getEnvelopeNamespaces(msgContext.getEnvelope()));
- In the service deployed on the server,
there is the schemaorg_apache_xmlbeans directory
I think I missed something..
Do you have an idea?
Thx
Fabien
This message contains
information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive
this message in error, please notify the sender immediately and
delete all copies of this
message.
|