• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS2 and HTTPS

 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like the inbuilt http engine in JDK does not support https. Try with some other server like Tomcat or JBoss.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
So where can I find full tutorial for axis2 with https?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic