连接到Web服务会导致com.sun.xml.internal.ws.client.ClientTransportException:服务器发送了HTTP状态代码200:确定

Ale*_*lov 3 java soap web-services nginx jax-ws

我使用sun-jaxws制作了wsdl。我在Netbeanse中创建了Web服务客户端,并成功调用了wsdl Web服务。然后,我将Nginx服务器配置为通过https访问Web服务。通过https致电服务时出现错误com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK

我的wsdl可通过地址获得https://somesite.com/mywsdl/?wsdl。在wsdl中,我看到了这样的服务位置:

<service name="GenericService"> <port name="GenericServicePort" binding="tns:GenericServicePortBinding"> <soap:address location="https://somesite.com:443/mywsdl"/> </port> </service>

我不知道问题出在我的nginx配置还是我的jaxws中。

Ale*_*lov 5

问题出在我的网址中有多余的斜线。我将网址从更改https://somesite.com/mywsdl/?wsdlhttps://somesite.com/mywsdl?wsdl,问题消失了。