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 David <cm...@gmail.com> on 2008/07/08 13:02:17 UTC
[Axis2] SoapFault in Axis2
hi,
I was using Axis 1 to make my webservices but now I'm trying Axis 2, and I
don't know how to manage my errors, for sample I was using AxisFault
exception in Axis 1 to answer that I couldn't execute normally the service,
and instead of sending a normal xml response I was answering :
Code:
<soapenv:Fault>
<faultcode>01</faultcode>
<faultstring>Not working</faultstring>
<detail>
<PARAM1>3</PARAM1>
<PARAM2>hello</PARAM2>
</detail>
</soapenv:Fault>
How can I do it in Axis2 architecture ?
thx
Re: [Axis2] SoapFault in Axis2
Posted by David <cm...@gmail.com>.
Thx, I missed it, I'm sorry.
Well I think I have all I need even if the sample appear to be very complete
comparing to my small need...
I will come back if I have problems during implementation.
regards
David
On Tue, Jul 8, 2008 at 1:32 PM, Charitha Kankanamge <ch...@wso2.com>
wrote:
> Hi David,
> There is a sample included in Axis2 binary distribution which demonstrates
> fault handling. You can find it in AXIS2_HOME\samples\faulthandling
> (AXIS2_HOME is the directoiry where you unzipped axis2 binary distro)
>
> regards
> Charitha
>
> http://charithaka.blogspot.com
>
> David wrote:
>
> hi,
>>
>> I was using Axis 1 to make my webservices but now I'm trying Axis 2, and I
>> don't know how to manage my errors, for sample I was using AxisFault
>> exception in Axis 1 to answer that I couldn't execute normally the service,
>> and instead of sending a normal xml response I was answering :
>>
>> Code:
>> <soapenv:Fault>
>> <faultcode>01</faultcode>
>> <faultstring>Not working</faultstring>
>> <detail>
>> <PARAM1>3</PARAM1>
>> <PARAM2>hello</PARAM2>
>> </detail>
>> </soapenv:Fault>
>>
>> How can I do it in Axis2 architecture ?
>>
>> thx
>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG. Version: 7.5.524 / Virus Database: 270.4.6/1539 - Release
>> Date: 7/7/2008 6:35 PM
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: [Axis2] SoapFault in Axis2
Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi David,
There is a sample included in Axis2 binary distribution which
demonstrates fault handling. You can find it in
AXIS2_HOME\samples\faulthandling (AXIS2_HOME is the directoiry where you
unzipped axis2 binary distro)
regards
Charitha
http://charithaka.blogspot.com
David wrote:
> hi,
>
> I was using Axis 1 to make my webservices but now I'm trying Axis 2,
> and I don't know how to manage my errors, for sample I was using
> AxisFault exception in Axis 1 to answer that I couldn't execute
> normally the service, and instead of sending a normal xml response I
> was answering :
>
> Code:
> <soapenv:Fault>
> <faultcode>01</faultcode>
> <faultstring>Not working</faultstring>
> <detail>
> <PARAM1>3</PARAM1>
> <PARAM2>hello</PARAM2>
> </detail>
> </soapenv:Fault>
>
> How can I do it in Axis2 architecture ?
>
> thx
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG.
>Version: 7.5.524 / Virus Database: 270.4.6/1539 - Release Date: 7/7/2008 6:35 PM
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org