How do I deserialize SoapException.Detail into my own Exception

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top