Error while sending message from Wcf-basichttp

Home Page Forums BizTalk 2004 – BizTalk 2010 Error while sending message from Wcf-basichttp

Viewing 2 reply threads
  • Author
    Posts
    • #23656

      Hi I have consumed .asmx service as wcf service and when I am trying to send message from BizTalk then its giving me this error

      The adapter failed to transmit message going to send port “WcfSendPort_CrmService_CrmServiceSoap” with URL “http://dhds/MSCrmServices/2007/CrmService.asmx”. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘Negotiate,NTLM’. —> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

      at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

      at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

      — End of inner exception stack trace —

      Server stack trace:

      at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

      Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)”.

      I am not getting any idea to solve this problem dos anyone have solution for this.

       

      Thanks in Advance

    • #23660

      Hi,

       

         This section of your error message tells you that it is a permission issue calling your web service from BizTalk:

       

      “The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘Negotiate,NTLM’. —> System.Net.WebException: The remote server returned an error: (401) Unauthorized.”

         You can gather the logs of the IIS server that hosts the web service to check which account is used to call the WS and fails to pass the authentication. Make sure this account requires proper NTFS file system permission on the web service directory. The recent log files can be found in \System32\LogFiles\W3SVC[site]\ directory (site here is the Site ID which can be viewed in the right panel by clicking Web Sites folder in IIS).

         In order to make this work, you will have to provide permissions for your BizTalk host account to access the webservice.

       

         I hope this helps,

       

         Daniel.

       

    • #23966

      Hi,

      Was this issue solved?

      We are getting the same error in our system.

      BizTalk WCF – Custom Adapter

      A message
      sent to adapter “WCF-Custom” on send port
      “WcfSendPort_OperatorCommunicationService_WSHttpBinding_OperatorCommunicationService”
      with URI
      http://XXXXXX/SchedulingServices/OperatorCommunications/OperatorCommunicationService.svc”
      is suspended.

       Error
      details: System.ServiceModel.Security.MessageSecurityException: The HTTP request
      is unauthorized with client authentication scheme ‘Anonymous’. The
      authentication header received from the server was ‘NTLM’. —>
      System.Net.WebException: The remote server returned an error: (401)
      Unauthorized.

         at
      System.Net.HttpWebRequest.EndGetResponse(IAsyncResult
      asyncResult)

         at
      System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult
      result)

       

      Can someone confirm please?

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.