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
How would you create a permanent cookie?
How can you enable impersonation in the web.config file?
What is the difference between session and viewstate in asp.net?
What is caching? What are different ways of caching in asp.net?
How do I open an ashx file?
What are client activated objects?
What is the difference between abstract class vs interface? Can give me the real time examples?
Can you explain the importance of finalize method in .net?
Explain the advantages of caching?
Why web api is better than wcf?
What is difference between cache and session?
What is a postback ispostback and autopostback in asp net?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
Does google crawl redirects?
Distinguish between Server-side and Client-side code?