If your message is indeed the one
expected, this seems to be a bug in AXIS2.
The error is quite clear, in order for
XMLBeans to instantiate an object of this type com.example.transfer_xsd.AnyXmlTypeInputParamDocument it has to have
an xml that has a top level element called
[EMAIL PROTECTED]://example.com/transfer.xsd .
But it seems that it receives an element
called essai instead, hence the error.
Cezar
From: Fabien Couble
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 4:54
AM
To: [email protected]
Subject: Parsing problem
I'm a new user of xmlbeans. Actually, I'm using xmlbeans
with AXIS2 and i have a parsing problem.
I have generated all the schemas needed by xmlbeans (a
directory schemaorg_apache_xmlbeans was created ).
I have no problem to send a request. the problem is located
when I receive a SOAP message. Actually, an exeption is raised. this exception
tells me that it is not a correct type but my client sends the good type
actually.
This is the types I declare in my wsdl file:
<complexType
name="AnyXmlType">
<xs:any
namespace="##other" processContents="lax" />
<complexType
name="AnyXmlOptionalType">
<xs:any
minOccurs="0" namespace="##other" processContents="lax" />
AnyXmlTypeInputParamDocument any =
AnyXmlTypeInputParamDocument.Factory.newInstance();
XmlCursor anycursor = any.newCursor();
anycursor.toNextToken();
anycursor.beginElement(new QName("essai"));
anycursor.insertChars("Et ta race!");
//anycursor.toEndToken();
//Sending
AnyXmlOptionalParamDocument doc = stub.Put(any);
And this is the Exception raised:
java.lang.RuntimeException: Data binding
error
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at
com.example.transfer_wsdl.WSTransferServiceMessageReceiverInOut.invokeBusinessLogic(WSTransferServiceMessageReceiverInOut.java:88)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Data binding error
at
com.example.transfer_wsdl.WSTransferServiceMessageReceiverInOut.fromOM(WSTransferServiceMessageReceiverInOut.java:204)
at
com.example.transfer_wsdl.WSTransferServiceMessageReceiverInOut.invokeBusinessLogic(WSTransferServiceMessageReceiverInOut.java:48)
... 20 more
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a [EMAIL PROTECTED]://example.com/transfer.xsd:
document element mismatch got essai
at
org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
at
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)
at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
at com.example.transfer_xsd.AnyXmlTypeInputParamDocument$Factory.parse(AnyXmlTypeInputParamDocument.java:86)
at
com.example.transfer_wsdl.WSTransferServiceMessageReceiverInOut.fromOM(WSTransferServiceMessageReceiverInOut.java:167)
... 21 more
I have no idea where the problem could be
If you could help me, it would be very
nice
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.
|
_______________________________________________________________________
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
|