axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Canning (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1662) Missing xsi:type when a web service throws a fault that is an extension of the declared fault
Date Thu, 18 Nov 2004 22:49:27 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1662?page=comments#action_55639 ]
     
Peter Canning commented on AXIS-1662:
-------------------------------------

I forgot to mention that it appears at least one other person has encountered this problem.
 There is a message on the axis-user mailing list describing the problem.  There are currently
no responses to the message.  You can follow this link:
http://marc.theaimsgroup.com/?l=axis-user&m=108732974329658&w=2
to see the message.

> 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


Mime
View raw message