You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org> on 2005/08/27 07:27:06 UTC

[jira] Commented: (AXIS2-180) Codegen'ed Axis2 stubs doesn't handlle SoapFaults properly

    [ http://issues.apache.org/jira/browse/AXIS2-180?page=comments#action_12320235 ] 

Ruchith Udayanga Fernando commented on AXIS2-180:
-------------------------------------------------

This is just an idea that crossed my mind... :-)

What if we can describe SOAP fault with XML schema and use that in code generation to enable the handling of faults.

Here if we create the Java type for the SOAP Fault using whatever the data binding framework, then it should be possible to deserialize the SOAP Fault OMElement to the particular object.

This way it may be possible to support the handing of the custom faults - 
wsdl:fault definition in WSDL.

What do u folks think?

> Codegen'ed Axis2 stubs doesn't handlle SoapFaults properly
> ----------------------------------------------------------
>
>          Key: AXIS2-180
>          URL: http://issues.apache.org/jira/browse/AXIS2-180
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Ruchith Udayanga Fernando
>     Assignee: Ajith Harshana Ranabahu

>
> When the service reports a SOAP fault the stub throuws the following :org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> This is the complete stack trace that I got with my stub generated for security interops:
> org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> Message: already reached end document
> 	at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:203)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:452)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.getFirstChild(OMElementImpl.java:462)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.getFirstElement(OMElementImpl.java:697)
> 	at org.apache.axis2.soap.impl.llom.SOAPBodyImpl.hasFault(SOAPBodyImpl.java:73)
> 	at org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:179)
> 	at org.apache.axis2.oasis.ping.PingPortStub.Ping(PingPortStub.java:75)
> 	at org.apache.axis2.security.InteropClient.makeCall(InteropClient.java:50)
> 	at org.apache.axis2.security.InteropClient.main(InteropClient.java:30)
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> Message: already reached end document
> 	at com.bea.xml.stream.MXParser.parseEpilog(MXParser.java:1839)
> 	at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1723)
> 	at com.bea.xml.stream.MXParser.next(MXParser.java:1180)
> 	at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
> 	... 8 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira