How to handle incorrect SOAP fault in WCF?

后端 未结 2 1157
粉色の甜心
粉色の甜心 2021-02-06 14:00

I have to consume to a third-party web service using SOAP. It was easy to get it to work with WCF, but now I have a problem with SOAP faults. The service sends me an incorrect S

2条回答
  •  抹茶落季
    2021-02-06 14:16

    Yes, but it's not exactly elegant. See the message inspector code at the bottom of this forum post:

    http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/435850aa-bf74-4158-a29a-256135207948

    Basically, you can take the incoming message and alter it so that it can be handled by WCF.

提交回复
热议问题