how to retrieve data using web services in asp.net pls give
me the code and explain me briefly
Answers were Sorted based on User's Feedback
To retrieve data from a web service first make method in
web service that query to the database and retrieve data
and return Dataset or the data type which you want to
retrieve (But web service can only return integer, string,
arrays, enum, xmlNode, Dataset etc). Make a proxy class for
your web service using VS or wsdl.exe. Now just make a
client class, make an object instance of web service in
your client class, and call the web method using this
object. I think now you can design code according to your
need.
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / kumar
(1)create a method in webservice as
[WebMethod]
public string AccBalanceAgingSummary(string FilterBy)
{
DataAccess.Report.DailyReport daDailyReport = new
DataAccess.Report.DailyReport();
return daDailyReport.AccBalanceAgingSummary
(FilterBy);
}
(2)
Is This Answer Correct ? | 0 Yes | 1 No |
How to find out what version of asp.net I am using on my machine?
What is the difference between appsetting and connectionstring tags in web.config file
My website has around 100 aspx. Out of this, a certain 20 aspx files should be made available to the users only if they are logged in. How can I achieve this with the web.config file?
What is Response.Flush method ?
What is route in web api?
What are asynchronous callbacks ?
6 Answers Accenture, BirlaSoft,
If you have to replicate a set of controls(UI) across a number of web pages, what will you do
True or False: To test a Web service you must create a windows application or Web application to consume this service?
Define Query Interface,Adref,Release?
What is the sequence of operation takes place when a page is loaded ?
What is datagrid asp.net?
How does asp.net work?