Soap Ui报错--An error was discovered processing the <;wsse:Security> header.

Soap Ui调用接口进行测试的时候出现一个问题

<faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode>

<faultstring>An error was discovered processing the &lt;wsse:Security> header.</faultstring>

 

接口需要校验有用户名和密码,比如你知道用户名,密码为:bertelsmann,666666

做如下设置:

 

1.右击项目名称,show project view

点击WS-Security Configurations选项卡

点击1旁边的+,创建一条记录,接口需要的用户名密码

点击2旁边的+,选择userName,补全用户名,密码同上

选择3里面的PasswordType为PasswordText

完成

Soap Ui报错--An error was discovered processing the <;wsse:Security> header.

2.打开request里面的Auth

Add new Authorization,选择Basic

选择Authorization为Basic

选择Outgoing WSS,名字是你刚才配置的(如果没出来,关闭request页面重新打开)

Soap Ui报错--An error was discovered processing the <;wsse:Security> header.

完成~