469,573 Members | 1,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

How to format a generic soap error message

if the web services has a run-time error, how can i send a custom soap error
message, like embed the error stack trace:

try
{
.......
.......
}
catch(Exception ex)
{
// format the custom soap error message
msg = formatSOAPMsg(ex.ToString());
// send the soap error message
}

Nov 15 '05 #1
1 3607
Hi Mullin,

You may like to try the SoapException class.
(System.Web.Services.Protocols.SoapException)
The documentation contains an example of its usage.
It wraps exceptions thrown from the web service into a SOAP fault that
is propagated to the client/consumer of the webservice.

Regards,
Aravind C
"Mullin Yu" <mu*******@ctil.com> wrote in message
news:OH**************@TK2MSFTNGP10.phx.gbl...
if the web services has a run-time error, how can i send a custom soap error message, like embed the error stack trace:

try
{
.......
.......
}
catch(Exception ex)
{
// format the custom soap error message
msg = formatSOAPMsg(ex.ToString());
// send the soap error message
}

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Cleo | last post: by
4 posts views Thread by pepcag | last post: by
reply views Thread by Daniel | last post: by
reply views Thread by Jigar.Patel | last post: by
reply views Thread by info | last post: by
2 posts views Thread by =?Utf-8?B?RFhSaWNr?= | last post: by
reply views Thread by lallous | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.