到目前为止,我想通过来自 BizTalk 业务流程动态发送端口的 https 连接使用 PUT WCF 服务,我在消息分配形状中使用此代码
XMLDocumentOutput(WCF.MaxReceivedMessageSize)= 2147483647;
XMLDocumentOutput(WCF.HttpMethodAndUrl) = @"<BtsHttpUrlMapping> <Operation Name='RestPUT' Method='PUT' /> </BtsHttpUrlMapping>";
XMLDocumentOutput(WCF.TransportClientCredentialType) = "Transport";
XMLDocumentOutput(WCF.SecurityMode)="Transport";
XMLDocumentOutput(WCF.UseSSO) = false;
XMLDocumentOutput(WCF.HttpHeaders) = "Authorization: Basic AbScSfKajfsalAbScSfKajfsalAbScSfKajfsal=";
PortName(Microsoft.XLANGs.BaseTypes.Address) = "https://example.com/url/url2";
PortName(Microsoft.XLANGs.BaseTypes.TransportType)="WCF-WSHttp";
网址:https ://example.com/url/url2 方法:PUT
我无法使用服务并出现以下错误 HTTP 请求未经客户端身份验证方案“协商”授权。从服务器收到的身份验证标头是“”。未找到 HTTP 身份验证标头
服务器正在使用基本身份验证。
谢谢