如何使用WS-Security在BizTalk Server中发送签名的邮件 [英] How to send signed messages in BizTalk Server using WS-Security

查看:80
本文介绍了如何使用WS-Security在BizTalk Server中发送签名的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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

I want BizTalk to send signed soap messages using WS-Security without encryption. My orchestration is using a dynamic send port. I have tried both, trying to configure a WCF-WSHttp Send Port like this: (temporarily altered my orchestration to use this port rather than a dynamic port) as well as doing it within my orchestration. However I only manage to get my message send out encrypted, or in plain text without being signed or encrypted.


配置发送端口。


结果:消息加密:

Result: Message gets encrypted:



在我的邮件分配形式中执行: 结果:邮件已加密:

Doing it within my Message Assignment Shape: Result: Message gets encrypted:


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   from
"
Sign "
到"
"
邮件未加密,而且 
  signed。


If I change the above property WCF.TransportProtectionLevel from "Sign" to "None" the message doesn't get encrypted and also not signed.

推荐答案

建议您查看 实施邮件安全 在MSDN和博客上
关于安全模式,请发布
。如果您是我的书,请阅读第4章。

Is suggest to review Implementing Message Security on MSDN and blog post by Richard on security patterns. In case you my book you read chapter 4.

种类此致,

Steef-Jan Wiggers

MVP& MCTS BizTalk Server 2010

MVP & MCTS BizTalk Server 2010

http://soa-thoughts.blogspot.com/ | @ SteefJan

如果这回答了你的问题,请相应标记

BizTalk Server 2010 Cookbook


这篇关于如何使用WS-Security在BizTalk Server中发送签名的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆