• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP access to web service sunctionality

 
Scott Wilson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Scott Wilson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic