To add the MetadataService Web service reference
- In the Solution Explorer window, right-click your project name and choose Add Web Reference.
- In the Add Web Reference wizard, type the URL for the MetadataService Web service in the URL box, using the name and port number for your Microsoft Dynamics CRM server, and then click Go. For example:
http://adventureworks:5555/mscrmservices/2007/metadataservice.asmx
- When the MetadataService Web service is found, change the text in the Web reference name box to MetadataSdk and then click Add Reference.
Your project now contains a Web reference to the MetadataService Web service.