Skip to content

Webservice for C#.net windows applications

suman

Asked Jul 25, 2008, 10:25 AM EDT1 answer
Share
LinkedInX

Hi,

I had written a webservice.Now I need help to accompolish the following goals..

1.How to host the webservice?..since this i have to use in windows application.

2.How to consume this webservcie through the C#.net windows application.

           My task is to write the Webservice,using this I will pick some data and that data I have to pass to a windows application/windows service where I will update the database.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    +1

    Using a Web Service in a Windows Forms application is simple. You right click on the project and add a Web Reference. On Add Web Reference dialog, enter the URL of your WebService and a class and namespaces will be added to your project. After that, you use it as a simple class.

    Here is an example:

    This client application shows you how to access Authenticate Web service from a ... Windows.Forms; using AuthNameSpace; using System.Data; using System.IO ; ...
     
    Here are some articles and tutorials on how to build and use Web Services:
    This article shall describe an approach that may be used to upload any sort of a file through a web service from a Windows Forms application. ...
    +1