File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes JSP access to web service sunctionality Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "JSP access to web service sunctionality" Watch "JSP access to web service sunctionality" New topic
Author

JSP access to web service sunctionality

Scott Wilson
Greenhorn

Joined: Jun 22, 2007
Posts: 8
Hello all and thanks for reading this post.

I am relatively new to web services and I have what may be a simple question.

I would like to access some functionality within a web service that I am going to expose. It is a simple set of document functionality (insert, delete, search, etc) and can be either used as a web service or included within my web application for use within the web container (Weblogic 9.2) with Axis 1.4. Currently, Axis is embedded within the application.

What I would like to know is if there is a way to deploy this functionality as a web service AND at the same time have access to the functions from within my application (using a JSP or whatever). I have been told that for performance reasons, it is not a good idea to just access the web service from within my application by using a web service client.

Do I just have to make sure that the jar file that contains the web service functionality is included within the war file (in the correct directory) for the web service?

Thanks for your response in advance.

Scott Wilson
scott.wilson@cubic.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Welcome to JavaRanch.

The jar file that makes up the WS will end up in the WEB-INF/lib directory, along with all the other web app jar files. That means the classes can be used from elsewhere in the web app as well.


Android appsImageJ pluginsJava web charts
Scott Wilson
Greenhorn

Joined: Jun 22, 2007
Posts: 8
Thank you for your prompt response!

I was hoping that was the answer, but I just needed confirmation. I couldn't find that question/answer elsewhere.

Scott
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP access to web service sunctionality
 
Similar Threads
Reading external XML file from an Axis Web Service
Design problem
Axis "code portabiliy"
Basic in Web Service..........
Web Services-SOAP over HTTP