This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 :-)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com