Problem with SoapException

Discussion in 'ASP .Net Web Services' started by Gustavo Guerra, Sep 25, 2004.

  1. If in a WebMethod I throw a SoapException("message", MyFaultCode) it's
    supposed to get the same exception back at the client, right?
    But what's really happening is that I get a SoapException always with
    ServerFaultCode and a full description on the message field, including stack
    trace, like what happens when I throw any exception not of the SoapException
    type. What can I be doing wrong to this to happen? Can somebody help me
    here?

    In this field, java is a little better, marshaling the exceptions from
    server to client like they are using the SOAP Fault elements. .Net doesn't
    do this automatically, and now I find that even manually sending a
    SoapException with the message and fault code I want doesn't work.

    Regards
    Gustavo Guerra
     
    Gustavo Guerra, Sep 25, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flare

    Inherit from soapException

    Flare, Oct 23, 2003, in forum: ASP .Net
    Replies:
    9
    Views:
    2,359
    Kevin Spencer
    Oct 24, 2003
  2. Marty McDonald

    SoapException - unusual behavior

    Marty McDonald, May 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    682
    Marty McDonald
    May 19, 2004
  3. =?Utf-8?B?RGFueQ==?=
    Replies:
    3
    Views:
    683
    =?Utf-8?B?RGFueQ==?=
    Dec 3, 2004
  4. djmc
    Replies:
    1
    Views:
    1,999
  5. Jerry Q

    SOAPException and Browser

    Jerry Q, Jan 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    322
    Jerry Q
    Jan 16, 2006
Loading...

Share This Page