In my case the SOAPFault works even with use as "Encoded". Here's an 
excerpt from my demo code.

Here's the structure of MyException
complexType name="MyException">
    <sequence>
      <element name="errorCode" type="xsd:string"/>
      <element name="errorDesc" type="xsd:string"/>
    </sequence>
   </complexType>

Here's the message and it contains only one part
 <wsdl:message name="MyException">
      <wsdl:part name="fault" type="impl:MyException"/>
   </wsdl:message>

Here impl:MyException is 
<wsdl:fault name="MyException" message="impl:MyException"/>

Here's the binding information:
<wsdl:fault name="MyException">

       <wsdlsoap:fault use="encoded"     
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="urn:fibonacci"/>

</wsdl:fault>

Anne, what do you make out of it ??????? Have I missed something ?

I will appreciate a response.

Thanks,
 Sunil


DISCLAIMER:  
 Any Information contained or transmitted in this e-mail and / or 
attachments may contain confidential data, proprietary to Majoris 
Systems Pvt Ltd., and / or the authors of the information and is  
intended for use only by the individual or entity to which it is 
addressed. If you are not the intended recipient or email appears 
to have been sent to you by error, you are not authorised to access, 
read, disclose, copy, use or otherwise deal with it. If you 
have received this e-mail in error, please notify us immediately at 
mail to: [EMAIL PROTECTED] and delete this mail from your records.

This is to notify that Majoris Systems Pvt Limited shall have no  
liability or obligation, legal or otherwise, for any errors, 
omissions, viruses or computer problems experienced as a result of  
this transmission since data over the public Internet cannot be  
guaranteed to be secure or error-free. 

----- Original Message -----
From: Anne Thomas Manes <[EMAIL PROTECTED]>
Date: Thursday, February 24, 2005 1:34 am
Subject: Re: How do I deserialize the detail field in AxisFault to 
build MyException?

> One note on SOAP Faults:
> 
> According to the SOAP specification, SOAP Faults do not have
> parameters, therefore all SOAP Faults must be defined using
> document/literal.
> 
> In other words, the message definition should consist of one part
> which refers to an element description:
> 
> <wsdl:message name="myFault">
>  <wsdl:part name="fault" element="tns:myException"/>
> </wsdl:message>
> 
> where tns:myException is defined as:
> 
> <xsd:element name="myException" type="tns:MyException"/>
> 
> and the binding should be defined as literal:
> 
> <wsdl:fault name="MyException" message="tns:"myFault">
>    <wsdlsoap:fault name="MyException" use="literal"/>
> </wsdl:fault>
> 
> Anne
> 
> On Wed, 23 Feb 2005 21:51:22 +0500, Sunil Kothari
> <[EMAIL PROTECTED]> wrote:
> > Hi Mariano,
> > I am glad I could be of help.
> > Ciao,
> >  Sunil
> > 
> > DISCLAIMER:
> >  Any Information contained or transmitted in this e-mail and / or
> > attachments may contain confidential data, proprietary to Majoris
> > Systems Pvt Ltd., and / or the authors of the information and is
> > intended for use only by the individual or entity to which it is
> > addressed. If you are not the intended recipient or email appears
> > to have been sent to you by error, you are not authorised to access,
> > read, disclose, copy, use or otherwise deal with it. If you
> > have received this e-mail in error, please notify us immediately 
> at mail
> > to: [EMAIL PROTECTED] and delete this mail from your records.
> > 
> > This is to notify that Majoris Systems Pvt Limited shall have no
> > liability or obligation, legal or otherwise, for any errors,
> > omissions, viruses or computer problems experienced as a result 
> of  this
> > transmission since data over the public Internet cannot be  
> guaranteed> to be secure or error-free.
> > 
> > ----- Original Message -----
> > From: Mariano Eloy Fern�ndez <[EMAIL PROTECTED]>
> > Date: Wednesday, February 23, 2005 5:13 pm
> > Subject: Re: How do I deserialize the detail field in AxisFault 
> to build
> > MyException?
> > 
> > > Hi Sunil,
> > >
> > > I've gone the way you suggested, and you are completely right.
> > > Given MyException (service imlpementation), Axis generates its own
> > > MyException to be throws by the stub.
> > > Thus, when I try catch MyException, I am actually catching Axis's
> > >
> > 
> >
>

Reply via email to