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

SSL Web Service Client

Bernhard Haeussermann
Ranch Hand

Joined: Aug 05, 2009
Posts: 38
Hi. I have a web service that uses SSL running a Glassfish application server.
Its web.xml looks like this:

Now, when I create a client for this web service and generate the client-stubs with Eclipse's "New Web Service Client" wizard, there is no problem.
However, when I do this with wsimport using the following Ant-file:

the code generation is successful, but when I try to do a web service call I get this exception:

I also made the web method in the web service write a message to standard output when it is called, but the method doesn't even seem to be called!
What am I doing wrong?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Misunderstood question, see new reply below!
Bernhard Haeussermann
Ranch Hand

Joined: Aug 05, 2009
Posts: 38
I created a new plain Java project and generated the artifacts using the Ant script

but I get exactly the same error when I try to do a web service call.
Note that when I use the "New Web Service Client" wizard the web service call is successful.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Sorry, I misread your question!
Take a look at my SCDJWS study notes, in which I describe how to develop a plain Java client connecting to both a service requiring SSL and a service requiring mutual authentication: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
The tutorial can be found in section 8.3, starting at page 235.
Best wishes!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SSL Web Service Client