Performance Testing

Article ยท 2 min read

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 [โ€ฆ]

Joe Colantonio

By Joe Colantonio

Founder, TestGuild ยท 17 February 2012 at 9:47 PM ยท Updated 05 January 2025 at 1:19 PM

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.

About the author

Joe Colantonio

Joe Colantonio

Founder, TestGuild ยท Host, TestGuild Automation Podcast

Joe founded TestGuild in 2010 and has spent 27+ years in test automation. He hosts the longest-running automation-testing podcast (600+ episodes) and created Automation Guild, the premier online event for test automation engineers.

Joe Colantonio, founder of TestGuild

About the author

About Joe Colantonio

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 his TestGuild profile .

Free PDF

Get 10 quick test automation tips

Actionable tips from top industry experts โ€” skim them fast.