You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ra...@verizon.com on 2006/08/02 23:05:26 UTC

Axis 2.0==>Data Binding error



Hi there !

Currently , We are using Axis 1.4 version as a Client.

Today , I downloaded Axis2.0 version and started using it with my existing
WSDL file . I was able to generate Client Stubs and other respective java
files based on the WSDL by using "xmlbeans" as a option.

When i am trying to execute my client program , I am hitting 2 issues.

a) Firstly, I got runtime excpetion saying "
schemaorg_apache_xmlbeans/system/s008C560C08AF8FC5212EE35D7D714F8D/TypeSystemHolder.class"

 ClassNotFoundException.

When i looked into generated files , i found that above mentioned file was
created in the "output" folder, BUT under the "resources" directory
followed by the whole path. So it was not getting included into the
Classpath directly. When i updated my CLASSPATH till the "resources" folder
then This issue was disappeared.

But i need your suggestion for the long term solution, how to overcome with
this issue . What if i want everything (all stubs,helper and all these
system classes) in one jar file @ production . In other words How to get
rid of the
"resources" folder which is getting generated by the compiler.


b) Second , When i try to execute my Client program , I am getting
following exception .

Does any one has idea ? I have seen several forums but couldn't get clear
picture what is the actual issue and how to resolve it.

Exception in thread "main" java.lang.RuntimeException: Data binding error
        at
org.apache.axis2.GetOrderInfoStub.fromOM(GetOrderInfoStub.java:382)
        at
org.apache.axis2.GetOrderInfoStub.processRequest(GetOrderInfoStub.java:141)
        at Tester.main(Tester.java:28)

Caused by: org.apache.xmlbeans.XmlException: error: The document is not a
processRequestResponse@http://www.verizon.com/com/vz/ctas/ws/getOrderInfo:
document element mismatch got result
        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
eways.ewpts.webservices.ctas.orderinfo.ProcessRequestResponseDocument$Factory.parse(ProcessRequestResponseDocument.java:86)

        at
org.apache.axis2.GetOrderInfoStub.fromOM(GetOrderInfoStub.java:372)
        ... 2 more


Your help will be highly appreciated. Thanks in advance !

Thanks,
Rajesh Khullar
500 Westchester Ave
White Plains NY 10604
(914) 644 2871 (office)
(914) 610 0145 (cell)
(732) 662 4300 (Home)



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org