简体   繁体   English

IIS 8 Java和.NET Web服务

[英]iis 8 java and .net web services

I currently have web services written in .NET being hosted on a Windows 2012 server with IIS 8. The .Net services were written by someone else. 我目前使用.NET编写的Web服务托管在带有IIS 8的Windows 2012服务器上。.Net服务是由其他人编写的。 My experience is mostly in Java so I figured I'd write my web services in Java. 我的经验主要是在Java中,所以我想用Java编写Web服务。 Now I'd like to host the Java web services on the same server. 现在,我想将Java Web服务托管在同一服务器上。 I know I can't use Java web services directly in IIS 8 but is there a way to have Tomcat hosted through IIS 8 and then have the Java web services routed through IIS 8 to Tomcat? 我知道我不能直接在IIS 8中使用Java Web服务,但是有没有办法通过IIS 8托管Tomcat,然后通过IIS 8将Java Web服务路由到Tomcat? I've seen the Tomcat connectors being used but the main thing I want to do is host both Java and .Net web services. 我已经看到使用了Tomcat连接器,但是我想做的主要事情是托管Java和.Net Web服务。

Is this possible and if so, how? 这可能吗?如果可以,怎么办?

Both IIS and tomcat are web application servers. IIS和tomcat都是Web应用程序服务器。 When they work, what they do is to listen to http requests on some specific port and handle them. 当他们工作时,他们要做的就是在某些特定端口上监听http请求并处理它们。 So, as long as they are configured on different ports, there should be no problems. 因此,只要将它们配置在不同的端口上,就不会有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM