aspose file tools*
The moose likes Web Services and the fly likes Web Services Using Axis and Eclipse, SSL Handshaking Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services Using Axis and Eclipse, SSL Handshaking Problem" Watch "Web Services Using Axis and Eclipse, SSL Handshaking Problem" New topic
Author

Web Services Using Axis and Eclipse, SSL Handshaking Problem

Chris Stabler
Greenhorn

Joined: Oct 22, 2009
Posts: 13
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Web Services Using Axis and Eclipse, SSL Handshaking Problem