This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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?
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.
Joined: Oct 04, 2006
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.