Re: XMLBeans binding and defaultnamespace

2010-01-20 Thread rahul yadav
This problem is created due to two namespaces in WSDL. Attached wsdl has
namespace http://infiniti:8080/axis/TestArray.jws for input and
http://DefaultNamespace http://defaultnamespace/ for output of messages.
Is it the WSDL that is wrong i.e. it should have same namesapce for input
and output or it is smoe shortcoming of Axis2 to not able to parse such
wsdl, i am using Xmlbeans as databinding.

On Thu, Jan 14, 2010 at 4:57 PM, rahul yadav rahulyada...@gmail.com wrote:

 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
 echointarrayrespo...@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
 echointarrayrespo...@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



Re: XMLBeans binding and defaultnamespace

2010-01-18 Thread rahul yadav
does anybody has idea on this issue?
Is this the shortcoming of Axis2??

On Thu, Jan 14, 2010 at 4:57 PM, rahul yadav rahulyada...@gmail.com wrote:

 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
 echointarrayrespo...@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
 echointarrayrespo...@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



XMLBeans binding and defaultnamespace

2010-01-14 Thread rahul yadav
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
echointarrayrespo...@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
echointarrayrespo...@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


TestArray.jws
Description: Binary data