how to retrieve data using web services in asp.net pls give
me the code and explain me briefly

Answers were Sorted based on User's Feedback



how to retrieve data using web services in asp.net pls give me the code and explain me briefly..

Answer / 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

how to retrieve data using web services in asp.net pls give me the code and explain me briefly..

Answer / kumar

(1)create a method in webservice as

[WebMethod]
public string AccBalanceAgingSummary(string FilterBy)
{
DataAccess.Report.DailyReport daDailyReport = new
DataAccess.Report.DailyReport();
return daDailyReport.AccBalanceAgingSummary
(FilterBy);
}
(2)

Is This Answer Correct ?    0 Yes 1 No

how to retrieve data using web services in asp.net pls give me the code and explain me briefly..

Answer / dfsdrt

dfnjdfjdfj

Is This Answer Correct ?    1 Yes 11 No

Post New Answer

More ASP.NET Interview Questions

Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

0 Answers   eMids,


What is a session in programming?

0 Answers  


How we implement web farm and web garden concept in asp.net?

0 Answers  


what is the difference b/w .net 1.1 and 2.0 ?

2 Answers   Polaris,


33) You create English, French, and German versions of your ASP.NET application. You have separate resource files for each language version. You need to deploy the appropriate resource file based on the language settings of the server. What should you do? A . Create an installer and set the Installer.Context property for each version of your application. B . Create an installer that has a launch condition to verify the locale settings. C . Create an installer that has a custom action to install only location-specific files. D . Create an installer that has an MsiConfigureProduct function to install the appropriate version.

2 Answers   Friedkin, ISH, Syntax, Syntax Softtech,






List the events in page life cycle.

0 Answers  


what is the requirement that .Net web services can access the java application?

6 Answers   iSoft,


How does a web application session work?

0 Answers  


what are the levels of securities need to be considered for the finincial web application?

1 Answers  


What are app services?

0 Answers  


Any alternative to avoid name collisions other then Namespaces?

1 Answers  


If you are using components in your application, how can you handle exceptions raised in a component?

0 Answers   Accenture,


Categories