Ramesh Rao
unread,Jul 4, 2011, 11:26:14 PM7/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.