我想使用mule创建服务,通过HTTP连接器调用RESTfull服务HTTPS。如果我使用两个HTTP连接器调用HTTP而不是HTTPS,则服务返回没有setpayload连接器的JSON对象,当我调用HTTPS服务并添加信任存储和密钥存储时,我遇到的问题结果返回为:< / p>
发送HTTP请求时出错。消息有效内容的类型为:NullPayload
<http:request-config name="HTTP_Request_Configuration3" protocol="HTTPS" host="es.soa.devstage4.weightwatchers.com" port="80" doc:name="HTTP Request Configuration">
<tls:context>
<tls:trust-store path="client_truststore.jks" password="root123"/>
<tls:key-store path="keystore.jks" keyPassword="root123" password="root123"/>
</tls:context>
</http:request-config>
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="happyFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/happy" doc:name="HTTP"/>
<http:request config-ref="HTTP_Request_Configuration3" path="/api/v3/servicing/-/enrollment/status/member/348165668?market=en-us" method="GET" doc:name="HTTP">
<http:request-builder/> </http:request>
</flow>
答案 0 :(得分:0)
请尝试从您的代码中删除端口号或将其替换为443 HTTPS的默认端口号