WCF托管 [英] WCF hosting

查看:125
本文介绍了WCF托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WCF和IIS中的托管服务.

很久以来,我有两个困扰我的问题:

1-当使用.svc文件将服务托管在IIS中时,它如何知道正在使用哪种消息交换模式(如双工或请求答复)说我使用双工并提供wshttbinding,则svc文件在浏览时会产生错误在浏览器中单击鼠标右键并选择视图.那么它如何检测服务中正在使用的MEX,因为它只知道我相信的端点.
请指导我.

2-当我右键单击在Visual Studio编辑器2008中打开的.svc文件并选择在浏览器中查看时,会发生什么过程.我知道它确实显示了托管服务,并且我们可以看到WSDL(如果设置和构建正确),但是它在后台做什么?所有过程都发生在引擎盖后面.

3-当我们有一个svc文件时,如何托管该服务,该svc文件的实际用途是什么,以及在调用托管服务和托管服务时首先读取SVC或web.config文件的文件.

感谢all

I am working with WCF and hosting services in IIS.

Since long I have two questions that seems to trouble me:

1-When a service is hosted in IIS using a .svc file, how does it know which message exchange pattern is being used like duplex or request reply.Say I use duplex and give wshttbinding then the svc file will generate error on browsing it by doing a right click and selecting view in browser.So how does it detect which MEX is being used in the service as it knows only the endpoints I believe.
Please guide me.

2-What process happens when I right click on the .svc file opened in Visual studio editor 2008 and select View in browser. I know it does show the hosted service and we can see the WSDL if the settings and build is proper but what does it do in the background; what all process occurs behind the hood.

3-How does the service get hosted when we have a svc file, what is the actual use of the svc file and which file is read first the SVC or the web.config file when a hosted service is called and when a service is hosted.

thanks to all

推荐答案

1- web.config或代码中的Clent端点配置
2-它为wsdl发现等生成所有xml.
3-非常类似于.asmx
1- Clent end point config in web.config or code
2- it gens all the xml for wsdl discovery etc.
3- very similar to .asmx


这篇关于WCF托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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