• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web Services Using Axis and Eclipse, SSL Handshaking Problem

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need help in my next move with Web Services. I have very little experience with Web Services, rules, lingo etc etc and trying to learn on the fly.

Let me explain what i have accomplished so far in Steps:

0a. Installed Apache Tomcat 6, using Java 1.6. Also using Eclipse Galileo.
0b. Using the Java keytool, i created a keystore in my home directory(default this is stored in the .keystore file)
0c. I edited the Tomcat Server.xml file and changed the port number to 8443 in the <Connector>...</Connector> tag and added a password that matches the password in the keystore that i created; keyPass="mypassword" for example. This should allow me to do https over localhost.

1. I wrote a function that takes a string and echoes it out to the console.



2. In Eclipse, i converted this .java file into a WSDL.

3. I then created a new java project called SampleClientEcho using the WSDL which created for me some files:

- StringEchoProxy
- StringEchoService
- StringEchoServiceLocator
- StringEchoServiceBindingStub

4. I created a Client file within this new project to use the Proxy to access the WSDL via https for testing:



5. I run the client via http via port 8080 and it works successfully. Evidently you dont manually need to run tomcat from command line as Eclipse seems to start it on its own. When i try to run it via https i get a bunch of runtime errors related to SSL handshaking and what not.


Conclude:
Going back to my first step how do i edit the original web service code(the one that accepts a string and echoes it out) so that i can assure that it is secure so that i can do the SSL handshaking?? What do i need to change in my client to assure of the handshaking? doing this is essential for me moving forward with web services.
 
reply
    Bookmark Topic Watch Topic
  • New Topic