Web Service Protocol Script is not working while executing with load runner

74 views
Skip to first unread message

Ramesh Rao

unread,
Jul 4, 2011, 11:26:14 PM7/4/11
to LoadRunner, mnr...@gmail.com
Hi All,
While executing the web service test script I am getting the below
error message.
Starting action Action.
Action.c(4): Web service call "SalesATGRequest_102" started
Action.c(4): Error: InvokeMethod failure: Object reference not set to
an instance of an object..
Action.c(4): Error: Web service call "SalesATGRequest_102" execution
failed
I will appreciate you if any one of experts provides solution.
Steps to reproduce:
1. Selected “web Service” protocol.
2. Click on “Add Service Call”
3.Select “Import Service” option from “Service” drop down list
4. Select “File” radio button option
5. Click on “Import” button
6. Applied “Parameterization” for required values
7.Click on “OK” button in “New Web Service Call” window
8.The below script is displayed in script window
Action()
{

web_service_call( "StepName=SalesATGRequest_102",
"SOAPMethod=DigiSalesWSService|ExecutePortType|SalesATGRequest",
"ResponseParam=response",
"Service=DigiSalesWSService",
"ExpectedResponse=SoapResult",
"Snapshot=t1309828501.inf",
BEGIN_ARGUMENTS,
"xml:DigSales="
"<DigSales>"
"<Tran>"
"<Item>"
"<T_Item>"
"<Discount>"
"<T_Discount>"
"<Amt>{Amt}</Amt>"
"</T_Discount>"
"</Discount>"
"<Tax>"
"<T_Tax>"
"<TaxAmt>{Taxamt}</TaxAmt>"
"</T_Tax>"
"</Tax>"
"<Type></Type>"
"<Qty>{Qty}</Qty>"
"<ID>{ID}</ID>"
"<ActValue>{ActValue}</ActValue>"
"</T_Item>"
"</Item>"
"<Payment>"
"<T_Payment>"
"<Type>PTVI</Type>"
"<Amt></Amt>"
"</T_Payment>"
"</Payment>"
"<TranNo>{TranNo}</TranNo>"
"<StoreNo>{StroreNo}</StoreNo>"
"<OrderNo>{OrderNo}</OrderNo>"
"<OrderDate>{Order_Date}</OrderDate>"
"<BillTime>{Bill_Time}</BillTime>"
"<BillDate>{Bill_Date}</BillDate>"
"</Tran>"
"<FileTime>{FileTime}</FileTime>"
"</DigSales>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
return 0;
}
After Click on run button I am getting the above mentioned error
message in replay log window.







pramod phophalia

unread,
Jul 5, 2011, 8:27:19 AM7/5/11
to lr-loa...@googlegroups.com
Did you pointed to the Correct end Point URL ?








--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Abhishek Banginwar

unread,
Jul 10, 2011, 10:17:22 PM7/10/11
to lr-loa...@googlegroups.com
his request doesnt have one. add "URL=www.xyx.com", line before BEGIN_ARGUMENTS
--
Abhishek

Reply all
Reply to author
Forward
0 new messages