我正在尝试使用 IBM API Connect 5 从 SOAP 服务创建 REST API。我已按照本指南 ( https://www.ibm.com/support/knowledgecenter/en/SSFS6T/com. ibm.apic.apionprem.doc/tutorial_apionprem_expose_SOAP.html)。因此,在从调色板中拖动 Web 服务块,确保端点的正确性并发布 API 之后,我尝试从浏览器调用 API。不幸的是,API 返回以下消息:
<errorResponse>
<httpCode>500</httpCode>
<httpMessage>Internal Server Error</httpMessage>
<moreInformation>Error attempting to read the urlopen response
data</moreInformation>
</errorResponse>
为了测试目的,我记录了请求,并在 SOAPUI 上尝试了请求。服务正确返回响应。
问题是什么?