Saturday, April 30, 2011

WCF Web Service, cross-domain example.

Can anyone point me to a good/simple example of creating a WCF web-service sitting on one website, followed with a simple example consuming that WCF web-service on another website?

From stackoverflow
  • http://msdn.microsoft.com/en-us/library/ms751514.aspx has some good examples for using WCF.

    Consuming WCF from another site should be failrly straight forward, just don't forget to use a clientaccesspolicy.xml file.

    madcolor : I've created a WCF service and now it wants me to use Svcutil.exe to generate (I guess) the class for my client.. does one always have to use Svcutil.exe?
    John Saunders : No. You can use "Add Service Reference", which is pretty much the same thing.
    sweeney : how does one *use* a clientaccesspolicy.xml file? I see them mentioned here and there but have no idea where to get one or how to create my own.
  • If you are looking for WCF techniques and examples in general, I would highly recommend you visit IDesign's web site. The company was founded by Juval Lowy, one of the preeminent experts on WCF. The downloads are free to access and use; you just have to provide your email address.

0 comments:

Post a Comment