I am successfully working with a third party soap service. I have added a service reference to a soap web service which has auto generated the classes.
When an error oc
The detail node of the message fault is expected to contain XML. The GetDetail will deserialize this XML into the given object.
As the contents is not XML it was possible to use this method.
You can however get access to the XML and read the innerXml value:
MessageFault msgFault = ex.CreateMessageFault();
var msg = msgFault.GetReaderAtDetailContents().Value;
This approached worked.