Contents tagged with WCF
-
Architect 2 : Calling WCF Services in Your Data Access Layer
After you have completed an N-tier Silverlight application (check my blog: http://weblogs.asp.net/stanleygu/archive/2009/12/20/building-n-tier-silverlight-application.aspx ), your company decides to outsource sql server database development and management to a third party vendor. In your data access layer, instead of calling the sql server database directly, you will need to call the WCF services provided by the vendor.
-
Tip 2 : Silverlight-Enabled WCF Service Deployment: Modify ServiceReferences.ClientConfig
When deploying Silverlight application, you will need to unzip the xap file, modify ServiceReferences.ClientConfig, and zip back the xap file. While there are other options such as modifying the ServiceReferences.ClientConfig before the last build or using code to bypass the ServiceReferences.ClientConfig, the unzip/modify/zip approach is the best because it separates the concerns between development and deployment as well as coding and configuration.
-
Tip 1 : WCF Service Deployment: Leave IIS-Hosted Service Endpoint Address Blank
In client configuration, it is required to specify an absolute address of endpoint. However, in IIS-hosted service configuration, it is required to specify a relative address. IIS manages the ServiceHost instance, which provides base address for service.