<http:request-config name="HTTP_Request_Configuration" protocol="HTTPS" host="nww.neopost.sbs.nhs.uk" port="443" doc:name="HTTP Request Configuration" proxy-ref="Neopost_Global_Proxy_Configuration">
<http:basic-authentication username="46234F3D-192C-4118-9A79-948F6C2053BB" password="F25038E0-53D6-4C06-8DFE-FF25FA3C82CD"/>
<tls:context>
<tls:trust-store path="C:/Java/jdk1.7.0_80/jre/lib/security/cacerts" password="changeit"/>
</tls:context>
</http:request-config>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8088" basePath="test" doc:name="HTTP Listener Configuration"/>
<flow name="xxxFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" allowedMethods="GET" doc:name="HTTP"/>
<http:request config-ref="HTTP_Request_Configuration" path="web_api_dev/documentservices.svc/Documents" method="GET" doc:name="HTTP">
<http:request-builder>
<http:query-param paramName="batchsize" value="100"/>
</http:request-builder>
</http:request>
<logger level="INFO" doc:name="Logger"/>
</flow>
当我试图使用anypoint项目连接第三方服务时,它会给我'java.net.ConnectException: Connection拒绝:没有进一步的信息‘错误。我已经检查了代理,并在代理旁路中添加了主机。但还是会犯同样的错误。
我可以使用浏览器访问第三方url,但不能使用"https请求“。
帮我解决这个错误。提前谢谢。
Anypointstudio_proxy_settings

Browser_proxy_Settings

Browser_Response

发布于 2018-04-24 06:43:11
Mule流不使用Anypoint Studio代理配置。您的http:request元素指定了proxy-ref="Neopost_Global_Proxy_Configuration",,如果您想直接连接到该主机,就需要删除它。
如果您有多个HTTP请求,有些需要使用代理,有些不需要,则需要有两个不同的http:request元素。
https://stackoverflow.com/questions/49981382
复制相似问题