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 a page life cycle?
Which library is used by the testers and developers to develop automated tests and create testing tools?
What is the web.config file in asp?
How can you pass multiple complex types in Web API?
Differentiate between namespace and assembly.
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
Explain swagger components.
What is the difference between globalization and localization?
How do sessions work?
What is skin in asp.net?
How can we create custom controls in asp net?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
What are themes and skins in 2.0, explain usage scenario?
What is session state server?
Explain weak typing and strong typing.