File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes JAX-WS2 and HTTPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS2 and HTTPS" Watch "JAX-WS2 and HTTPS" New topic


John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 228
I created a simple web service and published it like this:

now when I convert the url to https I get:
Exception in thread "main" java.lang.IllegalArgumentException: https protocol based address is not supported

On the API desription at sun it says :
The address must be compatible with the binding specified at the time the endpoint was created.

What does this all mean?
How do I make it work with https?

Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Looks like the inbuilt http engine in JDK does not support https. Try with some other server like Tomcat or JBoss.

My Blog
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The JDK absolutely supports HTTPS. What may not support HTTPS is the built-in web server of the JDK (which is what's being used for Endpoint.publish).

If you're at all serious about web services, use Axis2 or the Metro stack. The stuff that's built into the JDK is outdated and rather limited.
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 228
So where can I find full tutorial for axis2 with https?
I agree. Here's the link:
subject: JAX-WS2 and HTTPS
It's not a secret anymore!