How do I deserialize SoapException.Detail into my own Exception

G

Guest

I would like to convert the xml fault information in SoapException.Detail into a class.

The webservice that I am connecting defines a type called WebServiceException. All the methods provided by the webservice return this as the Fault. When I add a web reference to my C# project, VisualStudio generates a class called WebServiceException. When the web service throws an exception I would like to convert it into a WebServiceException. It looks like the Detail attribute of SoapException contains the XML for the WebServiceException. How do I deserialize SoapException.Detail into my WebServiceException class?

Thanks,
cullepm3
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top