Skip to main content

Problem with web services via HTTPS

1 reply [Last post]
whchan2010
Offline
Joined: 2010-08-23
Points: 0

We have a project with a client in which our system has to consume web services provided by their system via HTTPS. Their WSDL file is not exposed via URL, so we generated the stubs based on a local WSDL file given by them using wsimport command. We wrote a client to test the connection on a local PC (Windows, Sun AppServer) and we are able to invoke the web service successfully via https. The cert provided by them is imported into the Sun AppServers’s trust store. When the same set of Stubs and the same cert are deployed to the development server (Unix, Sub AppServer), we keep getting the following exception:

com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

To ensure that the cert was installed correctly on the dev server, we included some codes using SSLSocket and managed to get a successful SSL handshake to their server. This set of codes is put into the block of codes which invokes the connection via WS Stubs.

Any help is appreciated. Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chrisadam2
Offline
Joined: 2010-09-07
Points: 0

Web services are typically application programming interfaces (API) or Web APIs that are accessed via Hypertext Transfer Protocol (HTTP) and executed on a remote system hosting the requested services. Web services tend to fall into one of two camps: big Web services[1] and RESTful Web services.

____________________________________________

Want to get-on Google's first page and loads of traffic to our website? Hire a SEO Specialist from Ocean Groups[url=http://oceangroups.org/] seo specialist [/url]