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 - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -