You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Rupesh Kumar Kansara <r....@zensar.com> on 2007/07/16 11:23:16 UTC

problem with SOAPFault custom error tags.

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

 

 

 

 

 

 

 


Re: problem with SOAPFault custom error tags.

Posted by Anne Thomas Manes <at...@gmail.com>.
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 <r....@zensar.com> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org