SOAP Header Not Sent If Exception Thrown

Discussion in 'ASP .Net Web Services' started by David Hayward via .NET 247, May 23, 2005.

  1. Hi--

    I have a .NET web method that returns a soap header. The headersare included in the response when the web method completessuccessfully. However, they are not included if the web methodthrows an exception.

    I've confirmed that the code is correctly instantiating mySoapHeader-derived class before returning a soap Fault.

    Is there something that precludes a header from being included inan envelope if the body includes a fault? These seems to be thebehavior I'm experiencing. Is there some trick for having theheader included regardless of whether or not there is anexception?

    Thanks.

    --------------------------------
    From: David Hayward

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>fMEW+En6SU2s43Wnkbn6Rw==</Id>
    David Hayward via .NET 247, May 23, 2005
    #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. Selen
    Replies:
    0
    Views:
    2,664
    Selen
    May 28, 2004
  2. =?Utf-8?B?VmFs?=
    Replies:
    0
    Views:
    3,116
    =?Utf-8?B?VmFs?=
    Jun 8, 2005
  3. jobs
    Replies:
    1
    Views:
    1,869
    Scott Roberts
    Nov 16, 2007
  4. Val
    Replies:
    0
    Views:
    170
  5. Frederik Vanderhaegen

    Soap Extension problem (seems that soap request is not sent to server)

    Frederik Vanderhaegen, Oct 20, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    258
    Frederik Vanderhaegen
    Oct 20, 2006
Loading...

Share This Page