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 should you do is you want to remove an existing component but would like to make some funtionalities?
When you use Ajax controls in the ASP.NET application?
What are session state modes?
How can I open ashx file in mobile?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
What is the caspol.exe tool used for?
What is form method?
What’s the difference between response .redirect and server.transfer?
Explain the difference between Web Garden and Web Farm?
what is silver light when will we use silver light,
To load your generated dataset with data which method do you invoke?
Describe how passport authentication works.
What is inproc mode in session?
IN an ASP.NET Web application if there is any error, how can you debug?
What is difference between Lambda Expression and LINQ in ASP.NET?