我使用sun-jaxws制作了wsdl。 我在Netbeanse中创build了Web服务客户端,并成功地调用了wsdl Web服务。 然后我configuration我的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>
我不知道是否在我的nginxconfiguration,或在我的jaxws的问题。
问题是在我的网址额外的斜线。 我将网址从https://somesite.com/mywsdl/?wsdl
更改为https://somesite.com/mywsdl?wsdl
,问题消失。