How to handle incorrect SOAP fault in WCF?

后端 未结 2 1158
粉色の甜心
粉色の甜心 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:22

    I believe the old-school System.Web.Services.SoapHttpClientProtocol class is more tolerant of not-up-to-snuff-or-standard Faults than the WCF System.ServiceModel.Channels.ServiceChannel.HandleReply / System.ServiceModel.Channels.MessageFualt.CreateFault.

    FWIW.

提交回复
热议问题