Problem with WCF client calling one-way operation

后端 未结 5 1168
不知归路
不知归路 2021-02-04 01:43

I have run into a problem when calling web service on a SAP PI bus from my WCF client. The operation is defined as one-way, and the method on my proxy operation contract is deco

5条回答
  •  礼貌的吻别
    2021-02-04 02:04

    It looks like SAP PI incorrectly sends an empty SOAP envelope and .NET incorrectly interprets that envelope.

    Some options from this thread:

    • alter the generated proxy and remove OneWay=true (or add OneWay=false) to the method definition
    • catch the Protocol Violation in an exception handler and ignore it
    • use a 2.0 style webreference to call the service
    • apply SAP patch Note 1459995 - Soap Sender Adapter HTTP 202 and add &responsecode202=true to the url

    The first and last options both worked for me. Further discussion on this sap.com thread.

提交回复
热议问题