我使用Anypoint 6.2.3,我試圖調用的API baconipsum.com/api/?type=meat-and-filler的是,我的項目流程是如何在Anypoint Studio中配置「HTTP_request_configuration」?
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="9000" doc:name="HTTP Listener Configuration"/>
<http:request-config name="HTTP_Request_Configuration" host="baconipsum.com" doc:name="HTTP Request Configuration" basePath="api" port="8081"/>
<flow name="test2Flow1" >
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
<http:request config-ref="HTTP_Request_Configuration" path="/" method="GET" doc:name="HTTP" >
<http:request-builder>
<http:query-param paramName="type" value="#[message.inboundProperties.'http.query.params'.type]"/>
<http:query-param paramName="sentences" value="#[message.inboundProperties.'http.query.params'.sentences]"/>
</http:request-builder>
</http:request>
<file:outbound-endpoint path="C:/Users/arpit_jain2/Desktop/Response" outputPattern="res.json" responseTimeout="10000" doc:name="File"/>
</flow>
和該HTTP_Request_Configuration是
在MuleSoft的文件,端口號是不是分配的,它工作正常,但是當我實現同樣的配置我得到的錯誤。
端口值必須提供
有誰知道應該是什麼端口,爲什麼我收到空負載錯誤。
Error while calling the API
我在Anypoint配置或HTTP_Request_Configuraion中丟失了什麼嗎?對於HTTP
我有一個類似的問題,並將端口更改爲80對我來說(或443對https)。 – deckeresq