Call ASMX web service with parameter and get value from that web service?

behzad razzaqi

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:

enter image description here

How can i write c# code for send UserName,Password,TelNo,Cycle? And my other question that web service return me this:

enter image description here

How can i parse TelNo,CurrBill,TotalBill with that call?

Please write code. that web service result is this:
enter image description here

Huseyin Durmus

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Async call of ASMX web service

From Dev

How to get JSON response from a 3.5 asmx web service

From Dev

jQuery ajax request from asmx web service

From Dev

AJAX call: Invalid web service call, missing value for parameter

From Dev

Passing date to ASMX web service

From Dev

Run asmx web service on STA

From Dev

Consuming .asmx Web Service in java?

From Dev

How to pass JSON parameter with $ajax to asmx web service

From Dev

How to use jQuery to call asp.net asmx web service with parameters to get response

From Dev

Struggling with return data from a jQuery call to vb.Net asmx web service

From Dev

How to get specific value from Web Service

From Dev

Running a .asmx Web service as a Windows Service

From Dev

WebMethods suddenly give: Invalid web service call, missing value for parameter

From Dev

Invalid web service call, missing value for parameter: 'newReviewOrLike'

From Dev

ASMX Web Service "Server did not recognize the value of HTTP Header SOAPAction"

From Dev

Call Web Service from xquery

From Dev

Call Web Service from AJAX

From Dev

How can I securely call a web service (.asmx) which is used for internal purposes from Jquery in a ASP.Net Web Forms application?

From Dev

How can I securely call a web service (.asmx) which is used for internal purposes from Jquery in a ASP.Net Web Forms application?

From Dev

How to view my classes from asmx web service

From Dev

How to use JQuery to return HTML page from ASMX web service

From Dev

Calling asmx web service from JavaScript yields 404

From Dev

Weather.asmx web service from JavaScript- No output returns

From Dev

How to scrape data from asmx web service generated page

From Dev

Getting the IP address of the client on an ASMX Web service

From Dev

Deserialization of ASMX web service failing partially

From Dev

Effects of adding new method to asmx web service

From Dev

Getting the IP address of the client on an ASMX Web service

From Dev

“Could not find a part of the path” asmx web service

Related Related

  1. 1

    Async call of ASMX web service

  2. 2

    How to get JSON response from a 3.5 asmx web service

  3. 3

    jQuery ajax request from asmx web service

  4. 4

    AJAX call: Invalid web service call, missing value for parameter

  5. 5

    Passing date to ASMX web service

  6. 6

    Run asmx web service on STA

  7. 7

    Consuming .asmx Web Service in java?

  8. 8

    How to pass JSON parameter with $ajax to asmx web service

  9. 9

    How to use jQuery to call asp.net asmx web service with parameters to get response

  10. 10

    Struggling with return data from a jQuery call to vb.Net asmx web service

  11. 11

    How to get specific value from Web Service

  12. 12

    Running a .asmx Web service as a Windows Service

  13. 13

    WebMethods suddenly give: Invalid web service call, missing value for parameter

  14. 14

    Invalid web service call, missing value for parameter: 'newReviewOrLike'

  15. 15

    ASMX Web Service "Server did not recognize the value of HTTP Header SOAPAction"

  16. 16

    Call Web Service from xquery

  17. 17

    Call Web Service from AJAX

  18. 18

    How can I securely call a web service (.asmx) which is used for internal purposes from Jquery in a ASP.Net Web Forms application?

  19. 19

    How can I securely call a web service (.asmx) which is used for internal purposes from Jquery in a ASP.Net Web Forms application?

  20. 20

    How to view my classes from asmx web service

  21. 21

    How to use JQuery to return HTML page from ASMX web service

  22. 22

    Calling asmx web service from JavaScript yields 404

  23. 23

    Weather.asmx web service from JavaScript- No output returns

  24. 24

    How to scrape data from asmx web service generated page

  25. 25

    Getting the IP address of the client on an ASMX Web service

  26. 26

    Deserialization of ASMX web service failing partially

  27. 27

    Effects of adding new method to asmx web service

  28. 28

    Getting the IP address of the client on an ASMX Web service

  29. 29

    “Could not find a part of the path” asmx web service

HotTag

Archive