如何使用WS-Security在BizTalk Server中发送签名的邮件

时间:2013-05-15 16:11:25

标签: wcf soap biztalk wcf-security ws-security

我希望BizTalk使用WS-Security发送已签名的soap消息而不加密。 我的业务流程正在使用动态发送端口。我尝试过这两种方法,尝试像这样配置WCF-WSHttp发送端口:(暂时改变了我的业务流程以使用此端口而不是动态端口)以及在我的业务流程中执行此操作。 但是,我只设法将我的消息以加密方式发送,或者以明文形式发送而不进行签名或加密。

配置发送端口。

结果:邮件已加密:

**enter image description here**

在我的邮件分配形状中执行 结果:消息被加密:

myMessage_Request(WCF.TransportProtectionLevel)="Sign";
myMessage_Request(WCF.MessageClientCredentialType)="Certificate";
myMessage_Request(WCF.TransportClientCredentialType)="Certificate";

myMessage_Request(WCF.OpenTimeout)= "00:10:00";
myMessage_Request(WCF.CloseTimeout)= "00:10:00";
myMessage_Request(WCF.SendTimeout)= "00:10:00";
myMessage_Request(WCF.MaxReceivedMessageSize)= 2147483647;
myMessage_Request(WCF.SecurityMode)="Message";

myMessage_Request(WCF.BindingType)="customBinding";
myMessage_Request(WCF.Action)="http://MySoapAction";
myMessage_Request(BTS.Operation)=”MySoapOperation”;
myMessage_Request(WCF.ClientCertificate)="xxxxxxxx";


myPort(Microsoft.XLANGs.BaseTypes.Address) = http(s)://targeURI
myPort(Microsoft.XLANGs.BaseTypes.TransportType) = "WCF-WSHttp";

如果我将上述属性WCF.TransportProtectionLevel从“Sign”更改为“None”,则该邮件不会加密,并且不会签名。< / p>

0 个答案:

没有答案