首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Mule Anypointstudio中尝试使用代理连接第三方服务时出现了“连接拒绝”错误

在Mule Anypointstudio中尝试使用代理连接第三方服务时出现了“连接拒绝”错误
EN

Stack Overflow用户
提问于 2018-04-23 12:42:33
回答 1查看 1.4K关注 0票数 1

代码语言:javascript
复制
<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

EN

回答 1

Stack Overflow用户

发布于 2018-04-24 06:43:11

Mule流不使用Anypoint Studio代理配置。您的http:request元素指定了proxy-ref="Neopost_Global_Proxy_Configuration",,如果您想直接连接到该主机,就需要删除它。

如果您有多个HTTP请求,有些需要使用代理,有些不需要,则需要有两个不同的http:request元素。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49981382

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档