简体   繁体   English

线程“ main” com.sun.xml.internal.ws.client.ClientTransportException中的异常:服务器发送了HTTP状态代码502:代理错误

[英]Exception in thread “main” com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 502: Proxy Error

When i make webservice call to the third party server, i am gettting following error. 当我对第三方服务器进行网络服务调用时,出现以下错误。

Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 502: Proxy Error ( Connection refused ) 线程“主”中的异常com.sun.xml.internal.ws.client.ClientTransportException:服务器发送了HTTP状态代码502:代理错误(连接被拒绝)

I am able to get response via SOAP UI but not via code. 我能够通过SOAP UI而不是通过代码获得响应。 I used wsimport to generate java code from WSDL. 我使用wsimport从WSDL生成Java代码。

Please help me to resolve this 请帮我解决这个问题

"Connection refused" means that the client tried to connect to the server at an address and port which has nothing listening on it. “拒绝连接”表示客户端试图在没有监听任何内容的地址和端口上连接到服务器。 Several possibilities come to mind: 我想到了几种可能性:

  • The service which you're trying to connect to is not running. 您尝试连接的服务未运行。
  • The hostname in the URL is wrong, so you're connecting to the wrong host. URL中的主机名错误,因此您连接到错误的主机。
  • The port number in the URL is wrong, so you're connecting to the wrong port. URL中的端口号错误,因此您连接的端口错误。
  • The URL says "http" when it should say "https", or vice versa. URL应该显示“ https”时显示“ http”,反之亦然。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 连接到 web 服务导致 com.sun.xml.internal.ws.client.ClientTransportException:服务器发送 HTTP 状态码 200 - Connecting to webservice results in com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK Glassfish抛出com.sun.xml.ws.client.ClientTransportException:服务器发送了HTTP状态代码500:内部服务器错误 - Glassfish throws com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 500: Internal Server Error JAX WS com.sun.xml.internal.ws.client.ClientTransportException:HTTP 传输错误:java.net.ConnectException:连接被拒绝 - JAX WS com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused com.sun.xml.internal.ws.client.ClientTransportException:HTTP传输错误:java.net.SocketException:连接重置 - com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.SocketException: Connection reset 导入com.sun.xml.internal.ws.client.ClientTransportException,无法读取此导入 - import com.sun.xml.internal.ws.client.ClientTransportException, can't read this import 使用CXF从Java消耗Web服务会导致com.sun.xml.ws.client.ClientTransportException:服务器发送了HTTP状态代码200:确定 - Consuming webservice from java using CXF results in com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 200: OK com.sun.xml.ws.client.ClientTransportException:HTTP传输错误:java.lang.ClassCastException - com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.lang.ClassCastException com.sun.xml.ws.client.ClientTransportException:请求需要HTTP身份验证:未经授权 - com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized 线程“主”中的异常com.sun.xml.internal.ws.spi.db.DatabindingException:com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException - Exception in thread “main” com.sun.xml.internal.ws.spi.db.DatabindingException: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException ClientTransportException:服务器发送了HTTP状态代码302:找到 - ClientTransportException: The server sent HTTP status code 302: Found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM