How to Create and Consume a Web Service?
Answers were Sorted based on User's Feedback
Answer / Mukesh Dahiya
Creating and consuming a web service involves several steps, depending on the technology you're using. Here's a general guide for creating a WCF (Windows Communication Foundation) service in .NET:n
1. Add a new WCF service project to your solution.
2. Define the service contract, data contracts, and operations.
3. Implement the service class and add service behaviors.
4. Test the service using a test client or by hosting it.nnTo consume the web service, you'll need to add a service reference to your project and then call the methods exposed by the service.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / honey
1. Create a connection
2. Create the command object, passing in the SQL string
3. Create the DataAdapter
4. Populate the DataSet and close the connection
| Is This Answer Correct ? | 3 Yes | 8 No |
What is the purpose of enumerable class in .net?
Explain what is the difference between response.redirect & server.transfer?
What are the security policy levels in .Net
Please explain what inheritance is, and why it's important?
What is a serviced component?
What is .net3.5?
Explain the difference between vb and vb.net?
what is use of learning .net? does we get good jobs based on .net?
What is CLR? How it will work?
Define code access security (cas)?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
What is multiThreading in .NET?