Updating Variables for the Main Method

You will need to update three variables at the beginning of the Main method with your own service information: the serviceNamespace, issuerName(Default Issue), and the issuerSecret(Default Key) variables. You can find the values of these variables on the Windows Azure portal, as shown in Figure 20.12.

The Main method starts by creating the service URI (Uniform Resource Identifier) that will connect to your service; we used myService here because that was the path we entered when we registered the service endpoint.

Then we create the credentials object that will need to be passed to the service endpoint. Notice that the credentials are created using the issuer name and the issuer secret keys. We then create ...

Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.