Multiple name spaces in a soap fault message causing FaultException deserialization to fail

后端 未结 3 823
面向向阳花
面向向阳花 2021-01-22 20:46

We\'re connecting to a web service and the fault message we\'re getting back isn\'t deserializing (at all), and no version of class that I can make will deserialize correctly. W

3条回答
  •  甜味超标
    2021-01-22 21:22

    One way to handle this if serialization is failing completely is to use a OoperationContract using the Message type as input and output. This way you can manually parse the XML when Iffault == true or use GetBody() to get the regular contents if no error occurred.

提交回复
热议问题