Cannot Deserialize a SOAP Message programmatically
问题 I get the following exception when I try to deserialize a soap message. I am doing it this way cause I have the response files I want to reuse in testing. I cannot use a real service or the like as it does not fit the architecture for the testing framework we have. Test 'MyUnitTestMethod' failed: System.InvalidOperationException : There is an error in XML document (1, 2). ----> System.InvalidOperationException : <MySpecialResponse xmlns='http://xsd.com/msgs/v1'> was not expected. at System