all groups > dotnet web services > february 2007 >
You're in the

dotnet web services

group:

Does SoapHeader return to client if SoapException is thrown?


Does SoapHeader return to client if SoapException is thrown? Joseph Geretz
2/20/2007 9:41:41 PM
dotnet web services:
Given the following Web Service method definition:

[WebMethod]
[SoapHeader("m_Token", Direction = SoapHeaderDirection.InOut)]
public DataTable GetData()
{
...
}

If GetData throws an exception, obviously the functional return is toast.
How about m_Token though? Will m_Token marshal back to the client (along
with the Exception of course) as a SoapHeader?

Thanks for your advice.

- Joe Geretz -

Re: Does SoapHeader return to client if SoapException is thrown? Joseph Geretz
2/20/2007 11:19:44 PM
OK, I found the info; SoapHeaderDirection.Fault

http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.soapheaderdirection(VS.80).aspx

- JG -

[quoted text, click to view]

AddThis Social Bookmark Button