Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is state management technique?

958


Which method is used to force all the validation controls to run?

986


How do you change the session time-out value?

998


Explain the components of web form in asp.net

982


What is http post and http get?

962


What is a server farm in iis?

997


Difference between web user control and web custom control?

890


Explain the differences between managed and unmanaged code?

977


What is difference between Lambda Expression and LINQ in ASP.NET?

1125


Where is the view state data stored?

938


Explain what are webservices?

928


Can you use Web API with ASP.NET Web Form?

1105


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

2006


Why do we need a web application session?

936


Define managed code and managed data in .net?

909