【问题标题】:Consuming WCF service from dynamic send port in biztalk over https and in PUT mode在 biztalk over https 和 PUT 模式下从动态发送端口使用 WCF 服务
【发布时间】:2015-05-11 11:55:18
【问题描述】:

到目前为止,我想通过来自 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 身份验证标头

服务器正在使用基本身份验证。

谢谢

【问题讨论】:

  • 不敢相信 SO 用户无法回答这个问题。 :(

标签: wcf https biztalk put biztalk-orchestrations


【解决方案1】:

我最终调用了一个 C# 方法并创建了 HttpWebRequest。仍然很想知道是否有人喜欢它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多