Click here to Skip to main content
14,927,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 13-Dec-09 22:21pm
v2

1 solution

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
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900