• 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

Deploying a web service on an actual server

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I was wondering, how can i put a web service online ? If i have the .war file, what do i do with it ? What do web hosting service need, to be able to deploy a web service ?
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am assuming you have a war file with web service code in it. You need a compatible server to deploy the war file to. For example, you can't deploy a war file with a web service on Apache Tomcat. If it has axis, you might be okay. Also, depending on the web service runtime you are using, you may have to deploy the web service itself. For example, AXIS has an admin console, which will accept the service as aar file. Finally, you may have to configure the endpoint.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

For example, you can't deploy a war file with a web service on Apache Tomcat.


Why not? Axis is a web app, so it can be part of any war file you care to deploy.

All that is needed to deploy a WS is a servlet container that supports whatever version Servlet API version is required by whatever SOAP stack you happen to use. For example, if you're using Metro (or the JAX-WS reference implementation, or Axis 2), then Tomcat 5.5 running on Java 5 will do nicely.
 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So basicly if web hosts advertise having tomcat, means i can deploy a web service there.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably it also needs to support Java, if your web service is developed in java.
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:

For example, you can't deploy a war file with a web service on Apache Tomcat.


Why not? Axis is a web app, so it can be part of any war file you care to deploy.

All that is needed to deploy a WS is a servlet container that supports whatever version Servlet API version is required by whatever SOAP stack you happen to use. For example, if you're using Metro (or the JAX-WS reference implementation, or Axis 2), then Tomcat 5.5 running on Java 5 will do nicely.



Ulf is right. I meant, Apache Tomcat by itself is NOT a web service container. It is a Servlet container. To run web services on it, you will have to 'package' the web service container (e.g. Axis) along with your application.

Sounds like the original probelm is this: the web hosting provider is making Tomcat available to the website it is hosting. Based on what I have seen in the past, the hosting provider is probably making WEB-INF (for classes) and webapp (for JSP) available in your account. You want to deploy a war file that has web service in it.

If I understood your problem correctly, you need to create a war file with your application, package Axis libraries along with your war file and drop the file in WEB-INF in your account. Finally, if you don't know already, ask your hosting provider for the URL to access your servlets/JSPs, which will determine the web service URL as well. Finally, I would start with a simple servlet/JSP before dropping a war with a web service in it.

Hope this helps.
 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
 
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic