Reputation: 565
I'm making a soap web service using JAX-WS.
Should this be deployed as war or jar.
Can it be deployed as a war?
Thank you
Upvotes: 4
Views: 9913
Reputation: 709
If you are using Glassfish then just build your application as .war (here there is no possibility to choose between two types) and deploy it either using Admin console or copy in autodeploy or use 'Deploy' button in your IDE.
How did you do this using Jar??
Upvotes: 1
Reputation: 20073
You would deploy it as a .war and could deploy it on a number of different servers (Tomcat would be one of the simplest HTTP servlet containers).
I suggest you read the following tutorial on deploying a web-service using JAX-WS on Tomcat.
http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/
Upvotes: 2
Reputation: 1186
I believe you would have to deploy it as a war in order to get your server to properly process it.
What server are you using?
Upvotes: 0
Reputation: 709
Soap web service is deployed as .war because it is a web application. What application server do you use? For example, in Glassfish simply you can put it in domain1/autodeploy directory.
Upvotes: 1