我创建了一个带有 ws - security 的轴 2 Web 服务(由 armart 模块启用)。
我想在soapUi 4.5.1 中测试它。并且soapUI向我提出的要求如下
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
                  xmlns:nlo="http://nlo">
   <soapenv:Header/>
   <soapenv:Body>
      <nlo:echo>
         <nlo:arg>echoo</nlo:arg>
      </nlo:echo>
   </soapenv:Body>
</soapenv:Envelope>
但是当然,当我以这种方式对其进行测试时,它给了我:缺少安全标头
所以我点击 Show Project View - 点击 Outgoing WS-Security Configuration;然后我添加 WS Security Entry - UserName 并输入用户名、密码,对于 PasswordType,我选择PasswordText.
然后我再次回到我的请求——它与soapUI 之前向我提出的请求相同,但这次我单击 AUT 部分并为 Outgoing WSS 我选择我的配置。一切正常。但我看不到 SoapUI 添加的安全标头。(既不在 XML 部分,也不在 RAW 部分)。
在此先感谢您的帮助!
