我有一个osb应用程序,可将数据放入Rest API。
[当我在邮递员中尝试时,如下所示,它工作正常
请求主体看起来像这样:
<entitlement xmlns:sal="http://xmlns.oracle.com/pcbpel/adapter/db/top/SalesOrderDetails" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<productKey>
<Item>
<enforcementIdentifier>
<enforcementName>string</enforcementName>
<enforcementVersion>string</enforcementVersion>
</enforcementIdentifier>
<totalQuantity>string</totalQuantity>
<availableQuantity>string</availableQuantity>
<product>
<productIdentifier>
<prdExternalId>string</prdExternalId>
</productIdentifier>
</product>
</Item>
</productKey>
</entitlement>
但是,当尝试通过oracle服务总线进行PUT时,我遇到了以下错误。
<ns1:ResponseCode>400</ns1:ResponseCode>
<ns1:Status>bad request</ns1:Status>
我使用的是邮递员中使用的标头和api url。请求正文也相同。
可能出什么问题了?
注意:GET运行正常