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 "Jayachandra Sekhara Rao Sunkara (JIRA)" <ax...@ws.apache.org> on 2004/11/16 10:14:25 UTC

[jira] Commented: (AXIS-1662) Missing xsi:type when a web service throws a fault that is an extension of the declared fault

     [ http://nagoya.apache.org/jira/browse/AXIS-1662?page=comments#action_55528 ]
     
Jayachandra Sekhara Rao Sunkara commented on AXIS-1662:
-------------------------------------------------------

Hi Peter!
Without the filling code of the ..BindingImpl file, I'm afraid replicating the problem would be tough? Try to post the filling code also

Thank you,
Jayachandra

> Missing xsi:type when a web service  throws a fault that is an extension of the declared fault
> ----------------------------------------------------------------------------------------------
>
>          Key: AXIS-1662
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1662
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC1
>  Environment: Linux (debian testing distribution)
> JDK 1.4.2 (blackdown 1.4.2-rc1)
> Axis 1.2RC1
>     Reporter: Peter Canning
>  Attachments: ExceptionTestBindingImpl.java, exceptionTest.wsdl, exceptionTestClient.java
>
> I started from a WSDL specification that defines a complexType BaseException which is used as the type of an element used in a message that us used for the fault of an operation.  It also defines a complex type DerivedException that is an extension of BaseException.  I generate both server and client stubs using WSDLToJava, and fill in the bodies of the methods in the ...Impl class in the server stubs.  I then write a client using client stubs to exercise the web service.
> Using SimpleAxisServer to run the web service, when the ...Impl method (which is declared to throw a BaseException) throws a DerivedException, the web service correctly serializes the additional elements in the DerivedException, but it does not serialize an xsi:type to specify that the element has type DerivedException rather than BaseException.  As a result, the Axis client fails, reporting the error:
> Exception in thread "main" AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: org.xml.sax.SAXException: Invalid element in exceptionTest.client.BaseException - size

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira