Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Encryption 如何将WSS应用于SoapUI中的模拟响应?_Encryption_Soapui_Ws Security - Fatal编程技术网

Encryption 如何将WSS应用于SoapUI中的模拟响应?

Encryption 如何将WSS应用于SoapUI中的模拟响应?,encryption,soapui,ws-security,Encryption,Soapui,Ws Security,我有一个SoapUI模拟服务。我希望它使用WS-Security 我配置了项目WS-Security配置,包括传出和传入 我使用一个测试套件发送一个请求,并使用时间戳、签名和加密WSS条目对其进行正确处理。但来自模拟服务的响应是纯文本错误: Missing operation for soapAction [] and body element [{http://www.w3.org/2001/04/xmlenc#}EncryptedData] with SOAP Version [SOAP

我有一个SoapUI模拟服务。我希望它使用WS-Security

我配置了项目WS-Security配置,包括传出和传入

我使用一个测试套件发送一个请求,并使用时间戳、签名和加密WSS条目对其进行正确处理。但来自模拟服务的响应是纯文本错误:

Missing operation for soapAction [] and body element 
[{http://www.w3.org/2001/04/xmlenc#}EncryptedData] with SOAP Version [SOAP 1.1]
从这条消息中,我猜模拟服务无法识别加密HTML元素。我说得对吗


有没有一种方法可以使用WS-Security加密SoapUI模拟服务响应?

这是可能的。单击屏幕左下角的模拟服务后可以找到这些选项(与弹出窗口中可用的所有其他配置选项不同)。在那里,您可以从下拉列表中选择传出和传入安全配置集

它隐藏得非常好,以至于我在三个月内两次碰到这个问题,进行了一项研究,在一位朋友向我展示解决方案之前,在StackOverflow中发现了我自己未回答的问题

因此,如果有人需要,我会发布答案