BizTalk 2016 -- Authorization errror when using WCF- WebHttp Adapter
I am getting below error when trying to send POST request to Web Service API using WCF-WebHttp Adapter.
The adapter failed to transmit message going to send port "SE697_SndPrtPublishConrtactDocToHMIS" with URL "https://sit.corp.com/projectforms02". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.Net.WebException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM,Negotiate'.
I am using Security mode as Transport and client credential type as Ntlm
I am able successfuly post the message using Soap UI but getting error when trying using BizTalk WCF-WebHTTP Send port.
I've had issues with the WCF- WebHttp Adapter with other authentication schemes, usually Basic as per WCF-WebHttp Adapter – Basic Authorisation, but that is due to the web service responding with a 401 and having no accepted authorization schemes. The workaround that I used, as mentioned in that blog was to use a Endpoint behaviour that preemptively added the authentication. Are BizTalk and the web service running in the same Domain?
Note, there seems to be a mismatch in the case of the scheme Ntlm vs NTLM, not sure if that is significant or just a red herring.
Sign in to comment