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

2005-08-08 Thread Marcelo Razzolini Correia
Hi

Thanks to Mr. Simon, who discovered that the reply message was not valid, I
saw our exception class and it was build incorrectly, and then I changed it
so now I can get the detailed message in every language! :D
I was so sure that the exception was thrown correctly before because I could
get the details in c# and delphi, although I was using different methods to
get the message. But this changed when Simon told that the response was
invalid. Now in every language I get the exception with exception.Message or
exception.getMessage().

Best Regards and many, many thanks,

Marcelo.

-Mensagem original-
De: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Enviada em: sábado, 6 de agosto de 2005 08:51
Para: axis-user@ws.apache.org
Assunto: Re: RES: Axis can't get detailed exception error from C# Server


See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebservicesprotocolssoapexceptionclassctortopic.asp
for an example of how to create a SOAP fault details element and to
throw an exception.

Anne

On 8/4/05, Marcelo Razzolini Correia <[EMAIL PROTECTED]> wrote:
> 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 . 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:
>
> 
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   
> 
>   soap:Server
>   echo
>   http://localhost/blabla/hello.asmx
>   Invalid logon
> 
>   
> 
>
> 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  tag? Or any other way to get the
>  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
> >
> >
>
>
>
>
>
>
>




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

2005-08-06 Thread Anne Thomas Manes
See 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolssoapexceptionclassctortopic.asp
for an example of how to create a SOAP fault details element and to
throw an exception.

Anne 

On 8/4/05, Marcelo Razzolini Correia <[EMAIL PROTECTED]> wrote:
> 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 . 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:
> 
> 
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   
> 
>   soap:Server
>   echo
>   http://localhost/blabla/hello.asmx
>   Invalid logon
> 
>   
> 
> 
> 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  tag? Or any other way to get the
>  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
> >
> >
> 
> 
> 
> 
> 
> 
>


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

2005-08-04 Thread Marcelo Razzolini Correia
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 . 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:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  

  soap:Server
  echo
  http://localhost/blabla/hello.asmx
  Invalid logon

  


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  tag? Or any other way to get the
 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
>
>








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

2005-08-04 Thread Marcelo Razzolini Correia
Hi,

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


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  

  soap:Server
  echo
  http://localhost/blabla/hello.asmx
  Invalid logon

  


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  tag? Or any other way to get the
 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
>
>




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

2005-07-20 Thread Marcelo Razzolini Correia
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
>
>