问题描述
- nginx 配置cxf webservice代理,客户端调用出错
-
在windows上,使用nginx 配置了cxf webservice的代理,但是在代码中使用JaxWsProxyFactoryBean方式去调用的时候无法调用通,但是若使用实际的地址可以调通。配置如下:
upstream local_tomcat{
server 10.10.13.142:8550;
server 10.1.241.182:8550 weight=5;} server { listen 8083; server_name localhost; location /infosystem_local/ws/imsintf_iImsWrapQueryService { proxy_pass http://local_tomcat/infosystem_local/ws/imsintf_iImsWrapQueryService?wsdl; }
jaxFactory.setAddress("http://localhost:8083/infosystem_local/ws/imsintf_iImsWrapQueryService");
解决方案
先看nginx有没有把请求正确转发给web service
时间: 2024-09-17 04:54:43