• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDLReader and https (SSL)

 
Song Choe
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

i am trying to read the wsdl file from the secured page but i can't find the answer to this. my snippet looks as follow:

..
WSDLFactory factory = WSDLFactory.newInstance();

WSDLReader wsdlReader = factory.newWSDLReader();
this.wsdlDefinition = wsdlReader.readWSDL(wsdlURL);
this.wsdlURL = wsdlURL;
..
..

this works great with the normal http site but not with the https.

i have tried keytool too but it didn't seem to work. is there any other hint or solution to this problem??

thank you
 
Karthik Rajendiran
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friend,
Do you mean the Webservice URL is of SSL based. So you need to make ssl handshake and invoke operations.
Kindly Confirm your requirement.

For basic authentication, you can set the property and finish off. But for SSL,it depends on the appserver
For weblogic, you can refer docs with example.
http://e-docs.bea.com/wls/docs81/webserv/overview.html#MainSteps
 
Hari Kk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the following. It works.

System.setProperty("javax.net.ssl.trustStore",keystorePath);
System.setProperty("javax.net.ssl.trustStorePassword", keystorePasswd);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!