0

I have created one web service in java using eclipse.Can any one tell me how to run that web service through IIS.

Android app_devlpr
  • 63
  • 1
  • 2
  • 12
  • 2
    This is an interesting question. – Rosdi Kasim Aug 01 '12 at 04:48
  • show what you tried, or this will be closed quickly, I am not suprise it has lasted 23 mins honestly! –  Aug 01 '12 at 05:05
  • @RosdiKasim is not so interesting. There are [this question](http://stackoverflow.com/q/2256084/1065197) and [this other question](http://stackoverflow.com/q/7724091/1065197) that explain "deploying" a Java Web Application in IIS and use this web app as producer of web services. – Luiggi Mendoza Aug 01 '12 at 06:15
  • Also, why you want to deploy your web service through IIS? You can use a tomcat or jetty lightweight servlet container to do this job. – Luiggi Mendoza Aug 01 '12 at 06:17

3 Answers3

9

You can't. MS IIS can only host web applications developed in Microsoft technologies, like ASP, .NET and also in PHP. Can't host Java applications.

In order to host Web Services developed in Java (I suppose you used Apache Axis), you need at least a servlet container (aka Java web server) or a full Java EE container: Free and Open Source like Apache Tomcat, Red Hat JBoss, Apache Jeronimo, Oracle Glassfish; commercial like Oracle WebLogic, IBM WebSphere...

You could need also additional libraries used like Apache Axis.

Depending on your Eclipse configuration, you can deploy it in an embedded Tomcat server within Eclipse in order to test it.

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
David Oliván
  • 2,717
  • 1
  • 19
  • 26
1

No! You can't. Java Web service application should be hosted in Java EE container, or you can run Web Services in Java SE 6.0.

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
  • Then how can i host my web service on cloud? – Android app_devlpr Aug 01 '12 at 04:52
  • Service providers will provide *container* and other *software/API* - [Platform as a service (PaaS)](http://en.wikipedia.org/wiki/Cloud_computing#Platform_as_a_service_.28PaaS.29) – KV Prajapati Aug 01 '12 at 04:56
  • *Then how can i host my web service on cloud?*, you think *the cloud* runs on IIS? –  Aug 01 '12 at 05:05
  • @JarrodRoberson First of all i need to know the difference between IIS and cloud server. Can you please make me clear about this one – Android app_devlpr Aug 01 '12 at 05:20
  • there is no such thing as *the cloud* or a *cloud server*, it is marketing speak, go back and do some research and come back with a specific question that might have a specific answer. –  Aug 01 '12 at 05:23
  • @JarrodRoberson don't mistake me, actually i am self learner to java/eclipse and web service too. – Android app_devlpr Aug 01 '12 at 05:27
  • @JarrodRoberson http://www.softwareagility.gr/index.php?q=node/29 this is the link i am referring to create a web service in java using eclipse, now i got struggle in "UDDI" can you tell me for what purpose UDDI is using here – Android app_devlpr Aug 01 '12 at 05:32
0

Well if you insist, I suppose you can use ISAPI plugin. Refer here for more details:

http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html

Rosdi Kasim
  • 24,267
  • 23
  • 130
  • 154