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 Marcelo Razzolini Correia <ma...@maplink.com.br> on 2005/08/04 21:54:36 UTC

RES: Axis can't get detailed exception error from C# Server

Hi,

I'm still stuck here...this is the response I'm getting from my server:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>echo</faultstring>
      <faultactor>http://localhost/blabla/hello.asmx</faultactor>
      <detail>Invalid logon</detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

As I said before, I can get all attributes on c# and Delphi, but with Axis I
can only get "ClassCastException" message and I can't (or I don't know how
to) get these info. Is there any way to intercept the envelope before it is
processed so I can find the <detail> tag? Or any other way to get the
<detail> message?

Anyone, please help...

Regards,

Marcelo.


-----Mensagem original-----
De: Marcelo Razzolini Correia [mailto:marcelo@maplink.com.br]
Enviada em: quarta-feira, 20 de julho de 2005 18:28
Para: axis-user@ws.apache.org; Anne Thomas Manes
Assunto: RES: Axis can't get detailed exception error from C# Server


Hi

Does the C# server map the exception to a SOAP Fault?
It throws a SoapException. I thought it was the same thing.

Is the SOAP Fault message described in your WSDL?
No. How do I do that? The WSDL é automatically generated by Visual C#. Do I
have to manually insert these faults inside the wsdl?

Do you catch the Fault and throw it as a Java exception?
I catch a AxisFault and inside the axisfault object I can see as the only
cause "ClassCastException".

Any help, please?


-----Mensagem original-----
De: Anne Thomas Manes [mailto:atmanes@gmail.com]
Enviada em: quarta-feira, 20 de julho de 2005 18:17
Para: axis-user@ws.apache.org
Assunto: Re: Axis can't get detailed exception error from C# Server


Does the C# server map the exception to a SOAP Fault?
Is the SOAP Fault message described in your WSDL?
Do you catch the Fault and throw it as a Java exception?

Anne

On 7/20/05, Marcelo Razzolini Correia <ma...@maplink.com.br> wrote:
> Hi,
>
> I have a c# webservice and I can get the detailed Soap Exception that I
> throw when checking some parameters in my c# client. I try to get the
> detailed message in my java client but the only thing that shows is
> ClassCastException.
>
> What am I doing wrong? Any clues?
>
> Thanks
>
>