• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebService Problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


I have a webservice which is lying in one package in one application. It is using applications other classes which are lying in other package. Now I have created webservice by using only the package in which the webservice classes are stored.

After I have created the webservice when i call it from client it can not access the application (in which webservice created) classes used in Webservice untill I create a jar file of application's other classes and put it in AXIS folder(As I am using AXIS for Webservice deployment and access). I tried to put the applicatin in classpath of the AXIS but it does not work.

Can Any one help me in fixing this problem as I dont want to keep 2 copies of the application one in AXIS and other in Tomcat/webapps/.

Thank You.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this will fit better (and be more likely to get an answer) in our Web Services forum, so I'm moving it there.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could move the Axis servlet, and the jar files it needs, into your web app, instead of keeping it in a web app all by itself. That way you have only a single web app, and no need to duplicate classes.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai,
copy axis folder in tomcat/webapps and create jws file in axis and call that jws file from other application by placing related jar files in lib folder

regards
nagaraju
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... keeping in mind that .jws-based web services have a number of drawbacks, which make them unsuitable for production-quality purposes.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic