Soap Action Header error on Loadrunner for Webservice Protocol

202 views
Skip to first unread message

Mahesh

unread,
Feb 24, 2015, 5:09:32 AM2/24/15
to LR-Loa...@googlegroups.com
Hi All,

I am working on Web service protocol and getting the below error only on Loadrunner but the same WSDL request is working in SoapUI,RIT and RPT, without giving any explicit SoapAction Header.

Please help me asap.

ERROR : "WSWS3147E": Error: no SOAPAction header!"

Regards
Mahesh

S

unread,
Feb 26, 2015, 9:47:51 AM2/26/15
to LR-Loa...@googlegroups.com
hi Mahesh,

Just try adding header, if not added already. Fiddler can be used to capture header.

Harry

unread,
Feb 26, 2015, 9:47:52 AM2/26/15
to LR-Loa...@googlegroups.com
Hi,
Can you ensure that you have added all headers using web_add_header()?


Thanks,
Harish Raj


On Tuesday, February 24, 2015 at 3:39:32 PM UTC+5:30, Mahesh wrote:

Pallavi

unread,
Feb 26, 2015, 9:47:53 AM2/26/15
to LR-Loa...@googlegroups.com
 Hi Mahesh,

Instead of using Webservice protocol you can also use Web/HTTP protocol. In web script you can use web_custome_request function to call the web service.


web_add_header("SOAPAction", "SoapAction from SOAP UI RAW TAB");
web_set_sockets_option("SSL_VERSION", "TLS"); - **Use this header if your communication is secure (Hypertext Transfer Protocol Secure HTTPS)
lr_start_transaction("Transaction_Name");

web_custom_request("CBP1_01_Transaction_Name",
"URL=URL_HERE",
"Method=POST",
"Resource=0",
"RecContentType=application/soap+xml",
"TargetFrame=",
"Mode=HTTP",
"EncType=text/xml; charset=utf-8",
"Body=PAST YOUR REQUEST BODY "
, LAST);

lr_end_Transaction("",LR_AUTO);

let me know if you face any problem.

Thanks,
Pallavi

On Tuesday, February 24, 2015 at 3:39:32 PM UTC+5:30, Mahesh wrote:

Pallavi

unread,
Feb 26, 2015, 9:47:57 AM2/26/15
to LR-Loa...@googlegroups.com
Hi Mahesh,
As you said it is working in SOAP UI! Can you please check what value you are passing in SOAP Action in your script?

 Add this code in your script "web_add_header("SOAPAction", "Replace the value from SOap UI - Raw Tab");".

Thanks,
Pallavi

On Tuesday, February 24, 2015 at 3:39:32 PM UTC+5:30, Mahesh wrote:

James Pulley

unread,
Feb 26, 2015, 9:50:20 AM2/26/15
to LR-Loa...@googlegroups.com
Or you can just look in the generation log and pull the header out of there.

Or, you can regenerate the whole script with all headers and pick the one you need.

There is no need to resort to Fiddler to capture what you already have in your test script components
Reply all
Reply to author
Forward
0 new messages