开发者

Consuming Webservice fails with 'SRT: Unsupported xstream found: ("HTTP Code 200 : OK")'

开发者 https://www.devze.com 2023-04-04 01:33 出处:网络
i\'m trying to consume a SAP WebService using Zend_Soap_Client and getting the error \"SRT: Unsupported xstream found: (\"HTTP Code 200: OK\")\"

i'm trying to consume a SAP WebService using Zend_Soap_Client and getting the error "SRT: Unsupported xstream found: ("HTTP Code 200 : OK")"

Does this mean the call of the WebService m开发者_运维知识库ethod works, but I (respectively Zend/PHP) can't handle the response?

Do you have any ideas how to fix this problem?


Looks like the error is on the SAP side (SRT = soap runtime). According to SAP's documentation this problem is usually caused by an incorrectly configured HTTP destination. Check the webservice using the soamanager transaction and see if the endpoint is configured correctly.


Check the request header for the content type. It should be something like below:

Content-Type: text/xml; charset=utf-8


In my case, using PHP's built-in SoapClient class, I got the same error, due to mismatching soap protocol version. I tried with 1.2, the endpoint was configured to 1.1.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号