Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Help CrmService Web reference online

Unanswered Help CrmService Web reference online

  • Friday, 4 May 2012 3:20 PM
     
     

    hi,

    I use without problem the CrmService web reference is permitted on an environment on premise with the url:

    http:// <servername[:port]> / mscrmservices/2007/crmservice.asmx? WSDL & uniquename = organizationName

    However I would like to get my existing project by simply changing the CrmService web reference to a CRM Online

    What is the Url to use in this case instead of <servername[:port]>?

    Thanks,

    Regards

All Replies

  • Friday, 4 May 2012 8:51 PM
     
      Has Code

    To obtain the Web reference for Microsoft Dynamics CRM Online you must first save a copy of the Web Services Description Language (WSDL) file to your development computer. Notice that the WSDL file changes as you customize the entities for your organization. When this happens you can save a new WSDL file and then update the Web reference in your project.

    1. Open a Web browser and enter the URL for Microsoft Dynamics CRM Online. For example:
      https://signin.crm.dynamics.com/Portal
      
    2. Select CRM Online Login and sign in using your Windows Live ID account.
    3. In the Navigation pane, click Settings.
    4. In the Settings pane, click Customization.
    5. In the Customization area, click Download Web Service description files.
    6. Click the CrmService.asmx icon.
    7. When the Web browser opens, save the WSDL as an XML file, for example CrmServiceWsdl.xml, to any local folder on your computer or to your Visual Studio project folder. The procedure for saving the file will be different depending on the Web browser you are using. In Internet Explorer 7, click the Page menu, and then click Save As.
    8. Close the Web browser window that contains the WSDL definition.
    9. Open your Visual C# or Visual Basic .NET project in Microsoft Visual Studio.
    10. In Solution Explorer, right-click your project name and choose Add Web Reference if you are using Visual Studio 2005. For Visual Studio 2008, choose Add Service Reference, click Advanced, and then clickAdd Web Reference.
    11. In the Add Web Reference wizard, type the URL for the CrmService WSDL XML file that you previously downloaded into the URL box, and then click Go. For example:
      file://C:\Documents and Settings\user\My Documents\Visual Studio 2005\Projects\PassportAuth\CrmServiceWsdl.xml
      
    12. When the CrmService Web service is found, change the text in the Web reference name box to CrmSdk and then click Add Reference.

    The Microsoft Dynamics CRM Web service is now added to your project. In your source code you can refer to the classes available in this SDK.
    Helpful links
    http://inogic.blogspot.com/2009/03/how-to-add-crmservice-web-reference-for.html
    If you need more help please let me know


    I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
    Mubasher Sharif
    Check out my about.me profile!
    http://mubashersharif.blogspot.com
    Linked-In Profile
    Follow me on Twitter!


  • Saturday, 5 May 2012 10:23 AM
     
     

    Thank you, but the problem here is that I work on CRM 2011, and I use the old method with CrmService this works very well with a envirronnement on premise but now I'd like to make it work with an online environment only CrmService.asmx does'nt exists in CRM 2011, you can not download it ...

    I must once again using a web reference to an online environment ..

     Have you a solution MubasherSharif?

  • Monday, 7 May 2012 8:08 AM
     
     

    You didn't mentioned the CRM version in your question so i think you are talking about crm 4.0.
    No Jalix this option is not available for CRM 2011 online.

    Dynamics CRM 2011 introduces a complete new WCF based web service.

    It's endpoint is http://ServerName/OrganizationName/XRMServices/2011/Organization.svcSee the endpoint overview

    So you should either add a Service Reference (See Use the WSDL Endpoint) or use early/late bound access (See Write Code for Microsoft Dynamics CRM (Web Services)


    I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
    Mubasher Sharif
    Check out my about.me profile!
    http://mubashersharif.blogspot.com
    Linked-In Profile
    Follow me on Twitter!