Hi Daniel,
Define a message which refer this type
<wsdl:message name="UnknownPersonFault">
<wsdl:part name="payload" element="typens:UnknownPersonFault"/>
       </wsdl:message>
Then in your operation definition, refer this message as fault,
                <wsdl:operation name="GetPerson">
<wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
               </wsdl:operation>

then in the gererated code, you get an UnknownPersonFault class which extend the java.lang.Exception, a sub class of java.lang.Throwable

Regards
Freeman

patchworker wrote:
Hello WSDL-freaks,

I see this xsd-def in the WSDL:
                        <xsd:element name="UnknownPersonFault">
                          <xsd:complexType>
                                        <xsd:sequence>
                                            <xsd:element name="personId" 
type="xsd:string"/>
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>


How can I tell the code-generator, that I want to have the generated class
as java.lang.Throwable?

Thanks in advance

Cheers!
Daniel


Reply via email to