how to retrieve data using web services in asp.net pls give
me the code and explain me briefly
Answer Posted / kuldeep kumar
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 |
Post New Answer View All Answers
What is state management technique?
Which method is used to force all the validation controls to run?
How do you change the session time-out value?
Explain the components of web form in asp.net
What is http post and http get?
What is a server farm in iis?
Difference between web user control and web custom control?
Explain the differences between managed and unmanaged code?
What is difference between Lambda Expression and LINQ in ASP.NET?
Where is the view state data stored?
Explain what are webservices?
Can you use Web API with ASP.NET Web Form?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
Why do we need a web application session?
Define managed code and managed data in .net?