my dog learned polymorphism*
The moose likes Web Services and the fly likes Call a Servlet from a JAX-WS Web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Call a Servlet from a JAX-WS Web service" Watch "Call a Servlet from a JAX-WS Web service" New topic
Author

Call a Servlet from a JAX-WS Web service

Gaby Bag
Greenhorn

Joined: Oct 11, 2011
Posts: 1
Hello all,

As part of a research project, we use a Web application implemented in JSF 1.2 to realize some computations for us. In order to be able to invoke methods from this application, which is deployed on a Apache Tomcat 6 server contained in the application itself, we implement a new servlet inside it to call what needed. This servlet is executed from the "outside" world through a Java program from terminal and everything works perfectly. Here is the code of this program



As our project will be also deployed on a Tomcat Server, we must port this program in a Web service and because the SOA is written in Java, we choose JAX-WS. I'm not a specialist of this kind of technology so, please, be compassionate with me if my stuff is a little bit stupid or naive . Here is the code of the implementation class :


As you can see, I added some stuff (toto, titi and tata strintgs) in the code to see where the problem might be. I use soapUI to realize tests and see if my this Web service works.

Unfortunately, it does not work at all. There is no exception in the try block as I received "toto" as response but nothing is done by the contacted servlet. To be honest, I don't see where could be the problem. I made some searches on Internet and forums but I found nothing related to my problem.

I someone could give me the reason of this failure or explain why it cannot work ? Am I miss the point ? Is it forbidden to do that ? Is there a way to do this particular kind of stuff ?

Thanks in advance for any answer or advice :-)

Cheers
Gaby

 
Don't get me started about those stupid light bulbs.
 
subject: Call a Servlet from a JAX-WS Web service
 
Similar Threads
Sending an Array to a Servlet
How to call servlet do post method from a pojo
send data in java application through post method
problem with request.getParameter()
Execute a JSP page with client side Java.