SoapUI WCF – An error occurred when verifying security for the message.

I was using soapUI to debug a https wcf webservice and ran into an interesting error.

An error occurred when verifying security for the message.

I had to do a little digging to find out what this error was regarding. I ended up finding that the setting of WSS-Password Type had to be changed. It was set as blank, and needed to be changed to PasswordText.
soapUI2
Once this was changed, the error went away. After changing this I did a bit of digging to understand what this setting was. I found a stack-overflow post regarding this. http://stackoverflow.com/questions/13359629/wcf-webservice-with-username-authentication-test-on-soapui

I also tried WCF Test Clent as an option. WCF Test Client is a tool that is built into Visual Studio. You can find this app in your Visual Studio folder.

Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

That was the location where it was for my Visual Studio 2012.

WCFtestclient.exe does not allow for Security settings. It does not allow for a username and password.
WCFtestclient

WCFtest is a very simple app. I am more of a fan of SoapUI, it is such a robust application.

3 thoughts on “SoapUI WCF – An error occurred when verifying security for the message.”

  1. Thanks a lot. This looks like the simplest of errors but I spent like 6 hours looking where to set it right. Worked like a charm!!

  2. Hi,

    I tried the same, but Still I am getting the same error. Any idea on this please ?

  3. The other thing that could cause this error is if you left the Username blank… even if your Service doesn’t care about it, you still must provide some non-blank value there.

Leave a Comment