我在调用一个webservice的时候报错:MustUnderstand headers:[{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action, {http://schemas.xmlsoap.org/ws/2004/08/addressing}To] are not understood。查了半天也没搞清楚原因,后来到sap官方论坛找到了答案
https://answers.sap.com/questions/8152784/webservice-doesnt-work-with-soapenvmustunderstand1.html,
问题原因应该是由于发布webservice方,有些设置不对导致:可以通过soamanager的messenging,设置message id (synchronous)为suppress id transfer。这样问题就解决了:
原文回答:
You can not modify the SOAP Request just like that. But it seems that your provider does not understand the WS-Addressing protocol properties. If this is synchrnous WS call ,you can try via soamanager to eclude addressing protocol via SOAMANAGER transaction.Find your logical port , go to Messaging Tab and set Message ID Protocol to "suppressTransfer".