You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Tevoi Andrea <te...@cad.it> on 2003/01/15 17:58:09 UTC
if fault message is the same as input and output messages...
Hi,
I've this WSDL:
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.cadit.it/city/servizi/xaswsdl" targetNamespace="http://www.cadit.it/city/servizi/xaswsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xasdoc="http://www.cadit.it/xas/city/servizi">
<import namespace="http://www.cadit.it/xas/city/servizi" location="./xas.xsd"/>
<message name="ServiceRequest">
<part name="Request" element="xasdoc:DOCUMENT"/>
</message>
<message name="ServiceResponse">
<part name="Response" element="xasdoc:DOCUMENT"/>
</message>
<message name="ServiceFault">
<part name="Fault" element="xasdoc:DOCUMENT"/>
</message>
...
</definitions>
Because I define the Fault message with the SAME element that defines Request and Response, Axis stub class gives this Axis fault:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor: null
faultNode: null
faultDetail:
exceptionName: com.cadit.ws.xas.city.servizi.DOCUMENT
stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor: null
faultNode: null
faultDetail:
exceptionName: com.cadit.ws.xas.city.servizi.DOCUMENT
Now, if I chance Fault message element to another element rather than DOCUMENT stub class works fine and deserialize correctly the SOAP Response.
Is this an Axis bug?
Thanks for your help.
Andrea Tevoi