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

Number of Views : 24993

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.

Leave a Reply

Your email address will not be published. Required fields are marked *