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
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 |
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 |
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.
What is a session in programming?
How we implement web farm and web garden concept in asp.net?
what is the difference b/w .net 1.1 and 2.0 ?
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.
what is the requirement that .Net web services can access the java application?
How does a web application session work?
what are the levels of securities need to be considered for the finincial web application?
What are app services?
Any alternative to avoid name collisions other then Namespaces?
If you are using components in your application, how can you handle exceptions raised in a component?