Hi Simon,

thanks for your reply. The strange thing is that works on other programming
languages. But I'm not sure what you mean by that. The c# server throws a
SoapException, and inside the constructor I pass the fault message. But what
should I pass? The .Net framework does everything for me.

I think that would be easier to get the incoming envelope and then parse it
to get the <detail>. Does anybody know how to do that, or where I can read
about it? Or have any other idea?

help, please...

Regards,
Marcelo.
-----Mensagem original-----
De: Simon Fell [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 4 de agosto de 2005 17:15
Para: axis-user@ws.apache.org
Assunto: RE: Axis can't get detailed exception error from C# Server


That's not a valid response, detail should contain a namespaced child
element, it not allowed to have text data in it directly.

-----Original Message-----
From: Marcelo Razzolini Correia [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 12:55 PM
To: axis-user@ws.apache.org; Anne Thomas Manes
Subject: RES: Axis can't get detailed exception error from C# Server
Importance: High

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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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
>
>






Reply via email to