Mule Server 3.6 > Anypoint Studio > 请求连接器
Mule Server 3.6 > Anypoint Studio > Request Connector
如何设置请求连接器以使用 POST 方法发送原始 JSON 数据?
在我的 Set Payload 变压器上我有这个:
#[{ "productId": #[sessionVars.productId] }]
当我 运行 我的 Mule 应用程序时,出现以下错误:
Error sending HTTP request. Message payload is of type: String
我错过了什么?
您可以尝试添加
<set-variable variableName="Content-Type" value="application/json" />
就在您的 http 请求端点上方。
更多详情请看here
让我知道这是否适合你。
如何设置请求连接器以使用 POST 方法发送原始 JSON 数据?
在我的 Set Payload 变压器上我有这个:
#[{ "productId": #[sessionVars.productId] }]
当我 运行 我的 Mule 应用程序时,出现以下错误:
Error sending HTTP request. Message payload is of type: String
我错过了什么?
您可以尝试添加
<set-variable variableName="Content-Type" value="application/json" />
就在您的 http 请求端点上方。
更多详情请看here
让我知道这是否适合你。