简体   繁体   中英

Web service https status code 404

I have a problem with a web service under https protocol, if I use the same web service via http protocol the result is ok.

I have been used the mkyong tutorial http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/

and I have the error com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 404: Not Found

If I download the certificate and import via keytool I have the same error.

What I'm doing wrong?

The problem was found in wsdl definition. at the end od definition:

<wsdl:service name="wsname">
    <wsdl:port binding="tns:wsnameSoapBinding" name="wsnamePort">
        <soap:address location="locationVariable"/>     
    </wsdl:port>
</wsdl:service>

where locationVariable is the direction WITH https. In my case the location variable had the direction witn http

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM