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

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

问题描述

我正在做一些快速的Java-.NET互操作,并已经决定使用WCF的POX。但是,我不想 - 也没有访问 - 部署到IIS。



只要将.NET包装起来就可以了吗? (我已经建立了我公平的Windows服务的份额。)



有没有好的样本?



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



我可以接受任何建议将允许我创建一个简单的基于http的xml合同。



另外,请注意,这只会暴露给内部服务器场,因此安全性和所有这一切都是非常微不足道的。



(搜索Google没有提供非常好的结果,因为所有的博客垃圾邮件。)

解决方案

如果你已经很喜欢写Windows服务,那么这可能是你最好的选择。我相信WCF本身处理IIS之外的HTTP东西。



Michele Bustamante在她的优秀学习WCF 书。



这个文章介绍了主持WCF服务的不同方法。它提到VS2005,但VS2008是类似的,你应该能够遵循。


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.

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?

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

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.

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

解决方案

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 has a tutorial on setting up Windows Services in her excellent "Learning WCF" book.

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天全站免登陆