Web Services Using Axis and Eclipse, SSL Handshaking Problem
posted 6 years ago
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:
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.
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.