CrmService and Silverlight.

Two ways we can use consume CrmService within a Silverlight Application are as follows.

  1. Add Service Reference to CrmService in the Silverlight Project and work with CrmServiceSoapClient class.

    The things we need to consider here are

    We need to explicitly pass the Header information otherwise our CrmService won’t work.

    We need to make use of Dynamic Entity in case of Retrieve request as we might not receive values for certain fields. 

  2. The other easier option is to add a web service to the SilverlightApplication.Web application, which in turn will consume the CrmService. 

    In our Silverlight Application we will Add Service Reference to this custom web service (acting as a wrapper) instead of CrmService directly. 

    Download the solution here 

    MainPage.xaml àInteracts with CrmService directly.

    Page1.xamlàUses custom web service to interact with CrmService. 

Hope it helps.

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

Please share your thoughts

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.