• Post Reply Bookmark Topic Watch Topic
  • New Topic

generating soap webservice client over https in eclipse  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In eclipse i successfully generated a webservice client classes from this wsdl file http://uat.himalremit.com/webService/ws_reg_server.php?wsdl. Everythings works just fine.
But when i change the wsdl file url to https://www.himalremit.com/webService/ws_reg_server.php?wsdl..then in eclipse i get this error "The service definition selected is invalid". Why am i getting this error. How can i generate client classes from https wsdl in eclipse.

Please help
Thanks
 
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't need to. There is no difference in the WSDL between using the SOAP call on HTTP and using the SOAP call with SSL (HTTPS).
 
biraj joshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the quick reply.but why eclipse is not able to locate the wsdl file over https. I tried to change the java file generated over http i.e replace the http://uat with https://www on those generated java files but its throwing errors.

What should i do to fix this
 
biraj joshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i get this exception when i changed the http://uat to https://www in those generated classes over wsdl http

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
biraj joshi wrote:i get this exception when i changed the http://uat to https://www in those generated classes over wsdl http

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


This error means you have not imported the site's SSL certificates into the truststore.

http://docs.oracle.com/cd/E19509-01/820-3503/ggfgo/index.html


But - again - this bears repeating, you do not need it.
 
biraj joshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,i didnt get your last sentence..what do you mean by this bears repeating, you do not need it.

If i dont need it then how could i get rid of those errors. please tell
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means, that you don't need it. I think“it” means the SSL certificate. It bears repeating means you can say it several times because it is important:

You don't need it.
You don't need it.
You don't need it.
You don't need it.
You don't need it.
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll add some commentary to make it more clear. If you are successful getting the wsdl using http , you don't need to get it again using https.

Once you have the wsdl, you can generate your stubs. Once you complete coding your stubs, you WILL need to ensure that the truststore in-use at the time of your actual SOAP call has the proper certificate chain.

The WSDL returned in an HTTP call and HTTPS call should be no different.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got below error while parsing your wsdl. First correct it..

[ERROR] "Use of SOAP Encoding is not supported.
SOAP extension element on line 36 in http://uat.himalremit.com/webService/ws_reg_server.php?wsdl has use="encoded" "

Failed to parse the WSDL.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!