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


Please Help Members By Posting Answers For Below Questions

How many types cache in asp net?

792


how to include timer or counting time to display next page in asp.net

1848


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2123


What is event bubbling?

808


Differentiate between structure and class.

777


What is an asp.net web form?

834


Where is session data stored in asp net?

721


What does ascx stand for?

719


What is considered a service provider?

743


What are the different types of Caching techniques in ASP.NET?

799


Why do we need url encoding?

750


What is ispostback method in asp.net? Why do we use that?

869


Where do we store our connection string in asp.net application?

765


What are the security types in asp.net?

795


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

875