This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes Deploying the Eclipse generated web service client on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Deploying the Eclipse generated web service client on Tomcat" Watch "Deploying the Eclipse generated web service client on Tomcat" New topic
Author

Deploying the Eclipse generated web service client on Tomcat

Amir Kost
Greenhorn

Joined: Aug 19, 2009
Posts: 8
Hi.

I have a complex web service, and I would like to deploy Eclipse's generated jsp client on a Tomcat server so the QA team can test my service. Any idea how to do that?

Amir
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
Since you mention JSP in the post, I assume that the client is a web application. If this is indeed the case, then just deploy it as a regular web application in Tomcat. Of course you need to include the relevant JARs for the client.
Best wishes!
Amir Kost
Greenhorn

Joined: Aug 19, 2009
Posts: 8
Ivan Krizsan wrote:If this is indeed the case, then just deploy it as a regular web application in Tomcat.


My question is where does eclipse generate this client? I can't see it in any of my servers, yet it runs great on eclipse. Eclipse probably puts it in one of the plugins, but where? I would like to take the generated client and deploy it on my server.

Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
Last time I tried, I used the following tactic to generate an Axis2 client in Eclipse:
- Create a dynamic web project.
- In META-INF, create a wsdl folder.
- Paste the WSDL of the web service in the wsdl folder created in previous step.
- Right-click on the WSDL file and select Web Services -> Generate Client.
- Click through the web service generation wizard. I chose only to generate the artifacts.

Having finished the above steps, a lot of things appear in my dynamic web project, for instance:
- A folder named axis2-web in the WebContent folder. This folder contains a lot of JSPs etc.
- A number of Axis2 related libraries have appeared in WEB-INF/lib.
Etc. etc.
Thus, I had no problem finding the generated artifacts. Perhaps you are using some other plugin or way of generating the client artifacts?
Best wishes!
Amir Kost
Greenhorn

Joined: Aug 19, 2009
Posts: 8
Ivan Krizsan wrote:Hi!
Last time I tried, I used the following tactic to generate an Axis2 client in Eclipse:
- Create a dynamic web project.
- In META-INF, create a wsdl folder.
- Paste the WSDL of the web service in the wsdl folder created in previous step.
- Right-click on the WSDL file and select Web Services -> Generate Client.
- Click through the web service generation wizard. I chose only to generate the artifacts.

Having finished the above steps, a lot of things appear in my dynamic web project, for instance:
- A folder named axis2-web in the WebContent folder. This folder contains a lot of JSPs etc.
- A number of Axis2 related libraries have appeared in WEB-INF/lib.
Etc. etc.
Thus, I had no problem finding the generated artifacts. Perhaps you are using some other plugin or way of generating the client artifacts?
Best wishes!


I did the same. The jsps under the axis2-web are not the client generated by eclipse, but allow you to do administration of the service. I want to deploy on my own tomcat a client generated by eclipse (see attachment).



[Thumbnail for eclipse-screen.JPG]

Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
What you have been looking at is not a web service client, it is the Web Services Explorer - a testing-tool for web services.
I don't think this is something you can deploy to a web container or application server without significant effort.
Best wishes!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Deploying the Eclipse generated web service client on Tomcat
 
Similar Threads
Web Service security
Axis Web Service Client : NullPointerException
When the server generates WSDL during deployment of web service?
certificates on tomcat
Thread safety of Axis client classes