I'm a new in c# and very beginner,need to call this web service in c# windows application:
http://192.168.200.102:8086/ws_bills.asmx
for that purpose i right click on the solution explorer and add web service with behzadService
name and try write code for call that:
behzadService.WS_Bills beh = new behzadService.WS_Bills();
But i want call this url with that code:
How can i write c# code for send UserName,Password,TelNo,Cycle
? And my other question that web service return me this:
How can i parse TelNo,CurrBill,TotalBill
with that call?
I wrote web service return table
behzadService.WS_Bills beh = new behzadService.WS_Bills();
DataSet dsResult = beh.GetBills("Username", "Password", "12565855555", "A");
DataTable dtResult = dsResult.Tables[0];
foreach (DataRow row in dtResult.Rows)
{
long telNo = Convert.ToInt64(row["Telno"]);
decimal curBill = Convert.ToDecimal(row["CurBill"]);
decimal totalBill = Convert.ToDecimal(row["TotalBill"]);
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments