Skip to content
Advertisement

Connecting to webservice results in com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK

I made a wsdl using sun-jaxws. I created a web service client in Netbeans, and successfully called the wsdl web service. Then I configured my nginx server to access the web service by https. When I call the service over https I get the following error: com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK

My wsdl is available by address https://somesite.com/mywsdl/?wsdl. Inside the wsdl I see such service location:

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

I don’t know whether the problem is in my nginx configuration, or in my jaxws.

Advertisement

Answer

The problem was in the extra slash in my url. I changed url from https://somesite.com/mywsdl/?wsdl to https://somesite.com/mywsdl?wsdl and the problem disappeared.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement