Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying the Eclipse generated web service client on Tomcat

 
Amir Kost
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
eclipse-screen.JPG
[Thumbnail for eclipse-screen.JPG]
Eclipse Client
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic