Calling WCF Service from Custom Workflow in CRM 2013 RRS feed

  • Question

  • Hi

    I am trying to call external WCF service from Custom workflow using below link:


    I am getting below error:

    Workflow suspended temporarily due to error: Unhandled Exception: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (407) Proxy Authentication Required.

    Server stack trace: 
       at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    If i used the came code in console application without any credentials it works fine. Any thoughts?

    Monday, January 20, 2014 2:26 AM


  • I got it fixed. I have to bypass local proxy server by following statement.

               myBinding.BypassProxyOnLocal = true;

    • Marked as answer by myCRMGuy Monday, January 20, 2014 10:27 PM
    Monday, January 20, 2014 10:26 PM

All replies