axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Benedict <hans.bened...@fu-berlin.de>
Subject duplicate fault elements in generated wsdl
Date Mon, 25 Jun 2007 21:11:04 GMT
Hi,

I am building a simple POJO based web service offering two methods which 
both throw the same custom exception:

public String getA(String x) throws WsException {...}

public String getB(String y) throws WsException {...}

WsException is extending AxisFault.

The generated wsdl file (.../axis2/services/ab?wsdl - see attachment) 
then contains *two* elements named WsExceptionFault. On validation of 
the file this leads to an error:
Duplicate key value [WsExceptionFault] declared for identity constraint 
"element" of element "schema".

Is this a bug or am I missing something?

My environment:
axis2 1.2
tomcat 5.5.23
jdk-1_5_0_11
debian sarge

Kind regards,
Hans Benedict

-- 
Hans Benedict               | Freie Universität Berlin
                            | Zentraleinrichtung für Datenverarbeitung
Tel.  : +49 30 838 56531    | FU Directory and Identity Service (FUDIS)
Fax.  : +49 30 838 56721    | Fabeckstr. 32, 14195 Berlin, Germany


Mime
View raw message