axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rahul yadav <rahulyada...@gmail.com>
Subject XMLBeans binding and defaultnamespace
Date Thu, 14 Jan 2010 11:27:55 GMT
Hi All,

    I am using XMLBeans databinding to generate java from wsdl, in the
generated source a package named defaultnamespace and defaultnamespace.impl
are also generated.
When i try to call the webservice using generated stub it throws exception
complaining about this package.

here is the trace log.....

org.apache.axis2.AxisFault: error: The document is not a
echoIntArrayResponse@http://infiniti:8080/axis/TestArray.jws: document
element namespace mismatch expected "http://infiniti:8080/axis/TestArray.jws"
got "http://DefaultNamespace"
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at
testarray20100114155323.TestArrayServiceStub.fromOM(TestArrayServiceStub.java:468)
    at
testarray20100114155323.TestArrayServiceStub.echoIntArray(TestArrayServiceStub.java:189)
    at client.Consumer.main(Consumer.java:30)
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a
echoIntArrayResponse@http://infiniti:8080/axis/TestArray.jws: document
element namespace mismatch expected "http://infiniti:8080/axis/TestArray.jws"
got "http://DefaultNamespace"
    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
testarray20100114155323.EchoIntArrayResponseDocument$Factory.parse(EchoIntArrayResponseDocument.java:128)
    at
testarray20100114155323.TestArrayServiceStub.fromOM(TestArrayServiceStub.java:457)
    ... 2 more

Attached is the wsdl used to generate java source.

Can sombody suggest me what is going wrong? and why this defaulnamespace
package is getting created.

Thanks & Regards,
Rahul Yadav

Mime
View raw message