c# - Retrieving Fault types deep inside xml -


i connecting web-service , getting errors in form of soapexception. can contain different types of faults send down within detail property of soapexception. can contain more 1 faults. here 1 example of contained in soapexception instance detail.firstchild.outerxml.

<someerrorfault xmlns=\"urn:somenamespace\" xsi:type=\"someerror\" xmlns:xsi=\"http://www.w3.org/2001/xmlschema-instance\"></someerrorfault> 

the innerexcpetion property null. inspect type of faults , take action on those. of-course can detail.firstchild.outerxml.contains("typeoffaultiamlookingfor") wondering if there better of retrieving information?

you have understand data structure of soap fault. see link might help. http://msdn.microsoft.com/en-us/library/ms189538(v=sql.105).aspx


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -