This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploying the Eclipse generated web service client on Tomcat
 
Similar Threads
When the server generates WSDL during deployment of web service?
Axis Web Service Client : NullPointerException
certificates on tomcat
Thread safety of Axis client classes
Web Service security