How to Create and Consume a Web Service?

Answers were Sorted based on User's Feedback



How to Create and Consume a Web Service?..

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

How to Create and Consume a Web Service?..

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

Post New Answer

More Dot Net General Interview Questions

What is the purpose of enumerable class in .net?

1 Answers  


Explain what is the difference between response.redirect & server.transfer?

1 Answers  


What are the security policy levels in .Net

1 Answers  


Please explain what inheritance is, and why it's important?

1 Answers  


What is a serviced component?

1 Answers  


What is .net3.5?

1 Answers  


Explain the difference between vb and vb.net?

1 Answers  


what is use of learning .net? does we get good jobs based on .net?

2 Answers  


What is CLR? How it will work?

3 Answers   NeoSoft,


Define code access security (cas)?

1 Answers  


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?

1 Answers  


What is multiThreading in .NET?

1 Answers  


Categories