locked
Issue while creating CrmService using CRM Plugin RRS feed

  • Question

  • Hi All

    I am using CRM Plugin.and set its
    Event.Pipeline stage of execution to poststage and
    step deployment to child pipeline.

    .I have created a method below

     public CrmService GetCrmProxyUsingEndpointUrlInChildPipeline(string endPointUrl, IPluginExecutionContext context)
            {
               
            
                CrmService childCrmService = new CrmService();
                childCrmService.Url = endPointUrl;
                childCrmService.PreAuthenticate = true;
                childCrmService.Credentials = new System.Net.NetworkCredential("usr", "daffodil", "domainname");
                childCrmService.CrmAuthenticationTokenValue = new CrmAuthenticationToken();
                childCrmService.CrmAuthenticationTokenValue.AuthenticationType = AuthenticationType.AD;
                childCrmService.CrmAuthenticationTokenValue.OrganizationName = context.OrganizationName;
                childCrmService.CrmAuthenticationTokenValue.CallerId = context.UserId;
                 
           
                childCrmService.CorrelationTokenValue = new CorrelationToken(context.CorrelationId, context.Depth, context.CorrelationUpdatedTime);
                return childCrmService;

            }


    but in the execute method below

     public void Execute(IPluginExecutionContext context)
    {
      CrmService crmService = (CrmService)GetCrmProxyUsingEndpointUrlInChildPipeline("http://SHIPRA/MSCRMServices/2007/CrmService.asmx", context);
                            BusinessEntityCollection bec = crmService.RetrieveMultiple(qe);//qe is queryexpression
    }

    Its giving error "The operation has timed out"

    Kindly provide me its resolution

    Thanks
    Shipra
    Monday, December 22, 2008 2:08 PM

All replies

  • Hi Shipra,

    May i request you to try to catch any SoapException occured, in order to reveal the details of the error ?

    hope this helps,

    hadi teo
    haditeo.wordpress.com
    Wednesday, December 24, 2008 11:03 AM