LoadRunner web_service_set_security Action Mismatch error
Just a quick heads up if you are having issues when using the web_services_set_security function in LoadRunner.
The web_service_set_security function is used to add security tokens to subsequent soap and web service calls. When replaying one of my web service scripts that use the web_services_security function I keep getting an “Action Mismatch” error.
Cause for the Action Mismatch Error
The script is using the web_services_set_security to create a message signature. But LoadRunner is sending the whole message with a Time Stamp, Body and Header.
This behavior is killing my application service because it only expects to receive the Body to be signed — not the whole message. Because of this behavior I keep getting a LR “Action Mismatch” error. After looking around in HP KB I found out this issue is a known product defect.
How to Resolve this LoadRunner Error
- First grab the file DeleteSoapHeaders.zip from my download section.
- Copy the DeleteSoapHeaders.dll to your Load Runners’s bin folder

- Next to configure the deleting headers choose either Method 1 Script Level or Method 2 Step Level below.
Method 1 Script Level
Making this change will send all the WSC’s in the script without any header in the soap envelope.
-
Navigate to your LoadRunner script’s directory and open the default.cfg file with a file editor like Notepad or Notepad++

-
Add a section called UserHandler to the very end of the default file. The exact section to copy is:
- Save the file and run your script. The
element should no longer appear in the soap envelope.
Method 2 Step Level
Making this change will only be applied to a specific step.
- Add the step that you want to send without the headers to the script
- Add the following lines of code to your step right before the BEGIN_ARGUMENTS element:

That should work
Let it rip – you should be good to go now. Hope it helps you.
Joe Colantonio is the founder of TestGuild, an industry-leading platform for automation testing and software testing tools. With over 25 years of hands-on experience, he has worked with top enterprise companies, helped develop early test automation tools and frameworks, and runs the largest online automation testing conference, Automation Guild.
Joe is also the author of Automation Awesomeness: 260 Actionable Affirmations To Improve Your QA & Automation Testing Skills and the host of the TestGuild podcast, which he has released weekly since 2014, making it the longest-running podcast dedicated to automation testing. Over the years, he has interviewed top thought leaders in DevOps, AI-driven test automation, and software quality, shaping the conversation in the industry.
With a reach of over 400,000 across his YouTube channel, LinkedIn, email list, and other social channels, Joe’s insights impact thousands of testers and engineers worldwide.
He has worked with some of the top companies in software testing and automation, including Tricentis, Keysight, Applitools, and BrowserStack, as sponsors and partners, helping them connect with the right audience in the automation testing space.
Follow him on LinkedIn or check out more at TestGuild.com.
Related Posts
Look, I’ve been doing automation testing including performance testing for over 25 years. And in that time, the #1 question […]
Look, performance testing has the biggest gap between “we should really do that” and “we actually do that” of any […]
Regarding e-commerce, Black Friday is the ultimate test of endurance. It’s one of those days of the year, along with […]
DevOps Toolchain Podcast with Joe Colantonio With the current demand for software teams to high quality product in a timely […]



