aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS2 and HTTPS" Watch "JAX-WS2 and HTTPS" New topic
Author

JAX-WS2 and HTTPS

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Hi,
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?

Thanks.
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
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
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.


Ping & DNS - my free Android networking tools app
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Thanks.
So where can I find full tutorial for axis2 with https?
 
Don't get me started about those stupid light bulbs.
 
subject: JAX-WS2 and HTTPS