Problem using faults with XMLBeans data binding
-----------------------------------------------
Key: AXIS2-2644
URL: https://issues.apache.org/jira/browse/AXIS2-2644
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: 1.1.1, 1.2
Reporter: Artem Portnoy
Priority: Critical
Custom soap faults returned by the server are not being properly handled on the
client side when XmlBeans data binding is used. The client code produces a
RuntimeException like in the stack trace below.
java.lang.RuntimeException: Data binding error
at com.iwaysoftware.ws.sample1.Sample1Stub.fromOM(Sample1Stub.java:448)
at
com.iwaysoftware.ws.sample1.Sample1Stub.TestException(Sample1Stub.java:175)
at Sample1.main(Sample1.java:25)
Caused by: org.apache.xmlbeans.XmlException: Element [EMAIL
PROTECTED]://xml.iwaysoftware.com/sample1 is not a valid [EMAIL
PROTECTED]://xml.iwaysoftware.com/sample1 document or a valid substitution.
at
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:322)
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.iwaysoftware.xml.sample1.TestExceptionResDocument$Factory.parse(TestExceptionResDocument.java:113)
at com.iwaysoftware.ws.sample1.Sample1Stub.fromOM(Sample1Stub.java:424)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]