axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrej Koshelev" <>
Subject Fw: Exceptions in generated WSDL
Date Wed, 02 Mar 2005 05:54:58 GMT


this error(?) takes place when I want to generate the WSDL file for the webservice that throws
two various exceptions:
package com.wsdltest;

public interface SoapFile {

 public int goFirst() 
  throws FirstException;

 public int goSecond() 
  throws SecondException;
FirstException and SecondException are the sublasses of RemoteException.
1. The section from the generated WSDL file contains different descriptions for 
FirstException and SecondException even if they're the same:

   <complexType name="FirstException">
     <element name="cause" nillable="true" type="xsd:anyType"/>
     <element name="message" nillable="true" type="xsd:string"/>
   <complexType name="SecondException">
     <element name="cause" nillable="true" type="tns3:Throwable"/>
     <element name="message" nillable="true" type="xsd:string"/>

2. 'tns3:Throwable' causes the problems when we generate java stubs from this WSDL: Type {}Throwable is referenced but not defined.

View raw message