Hi Anne,

Thanks a ton. Your light was in exact direction.
I requested to Web-Service host to include the namespace in custom error
tag. 
Now I am able to get the error code.

Regards
Rupesh Kansara

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 16, 2007 5:43 PM
To: [email protected]
Subject: Re: problem with SOAPFault custom error tags.

Is this the verbatim error you receive from .NET? I ask because it is
not a valid SOAP Fault. The <faultcode>, <faultstring>, and <detail>
elements must be unqualified. Also, the namespace prefix for the
<ns1:error> element has not been declared.

These errors are the reason why Axis cannot properly interpret the
fault.

Anne

On 7/16/07, Rupesh Kumar Kansara <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi All,
>
>
>
> I am facing a strange problem.
>
> I have a web-service which is developed in .Net. and accessing the
same with
> client generated with axis2.
>
>
>
> In case of any Exception web-service returns SOAP-FAULT message with a
> custom tag error and code as attribute as follows:
>
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
>       <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>
> <soapenv:Body>
>
>       <soapenv:Fault>
>
>
<soapenv:faultcode>soapenv:Server.Application</soapenv:faultcode>
>
>       <soapenv:faultstring>Application
> Error</soapenv:faultstring>
>
>       <soapenv:detail><ns1:error code="108">No CPS's have been
> selected</ns1:error><ns1:errors><ns1:error code="108">No
> CPS's have been selected</ns1:error><ns1:error>   at
> AML.Server.Interface.MethodHandler.takeOnClientImp(BaseIDDef
> EntityType, EntityIdentifierDef EntityIdentifier, BaseIDDef
> OwnerJurisdiction, RelationshipDef EntityRelationship, BaseIDDef[]
> AMLProduct, ActivitySimpleDef Activity, KYCFICAExemptionSimpleDef[]
> KYCFICAExemption, SecurityContextDef SecurityContext) in
> Z:\Investec\AML\Server\src\Interface\MHInterface.cs:line 60
>
>    at
> Codegen.amlint.WSAMLInterfaceBase.takeOnClient(takeOnClientRequest
> request) in
> Z:\Investec\AML\common\src\gen\wsi_AMLInterface.cs:line
> 40</ns1:error></ns1:errors></soapenv:detail>
>
> </soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
>
>
> But at client side it's absence in AxisObject, If I walkthrough the
> AxisFault object I just got the text part in the soap:detail element
no
> <error> element.
>
>
>
>
>
> Please suggest where the problem is ?
>
>
>
> Thanks & Regards
>
> Rupesh Kansara
>
>
>
>
>
>
>
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to