如何在没有 IIS 的情况下部署我的 WCF 服务? [英] How can I deploy my WCF Service without IIS?

查看:54
本文介绍了如何在没有 IIS 的情况下部署我的 WCF 服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些快速的 Java-.NET 互操作,并决定使用 WCF 进行 POX.但是,我不想——也无权访问——部署到 IIS.

I'm doing some quick Java-.NET interop and have decided on POX with WCF. However, I don't want to -- nor have access to -- deploy to IIS.

将其包装为 .NET 服务是否可行?(多年来,我已经建立了我应得的 Windows 服务份额.)

Would just wrapping it up as a .NET Service be the way to go? (I've built my fair share of Windows services in my years.)

这方面有什么好的样本吗?

Are there any good samples around of this?

如果我不使用 IIS,什么处理 HTTP?

What handles the HTTP if I'm not using IIS?

我愿意接受任何可以让我创建一个简单的基于 http 的 xml 合同的建议.

I'm open to any suggestion that will allow me to create a simple http-based, xml contract.

另外,重要的是要注意,这只会暴露给内部服务器群,因此安全性和所有这些都非常简单.

Also, it's important to note that this will only be exposed to the internal server farm, so security and all that is pretty minimal with this.

(由于所有博客垃圾邮件,搜索 Google 并没有提供很好的结果.)

(Searching Google isn't delivering very good results because of all the Blog spam.)

推荐答案

如果您已经熟悉编写 Windows 服务,那么这可能是您最好的选择.我相信 WCF 本身处理 IIS 之外的 HTTP 内容.

If you're already comfortable writing Windows Services, then that's probably your best bet. I believe that WCF itself handles the HTTP stuff outside of IIS.

Michele Bustamante 在她出色的学习 WCF 中有一个关于设置 Windows 服务的教程书.

Michele Bustamante has a tutorial on setting up Windows Services in her excellent "Learning WCF" book.

这篇文章介绍了托管 WCF 服务的不同方式.它提到了 VS2005,但 VS2008 非常相似,您应该能够跟上.

This article covers different ways to host WCF services. It mentions VS2005, but VS2008 is similar enough that you should be able to follow along.

这篇关于如何在没有 IIS 的情况下部署我的 WCF 服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆