Using a web service in a C # Windows application

I am new to using web services. I have been assigned a task in which I need to use a web service in my Windows application. This is the web service I would use: https://api.betfair.com/global/v3/BFGlobalService.wsdl

Now I learned how to add a web link to this service, but I could not find a basic tutorial that could help me learn how to create an object of this web service and use the service as I want.

Basically, I need to create an object from the above web service in my form and call its methods. A C # code snippet would be great.

Can someone give me some directions? I work in Visual Studio 2008 and C # Windows App.

+6
source share
4 answers
  • Right click link
  • select Add service link
  • enter the wsdl address in the address text box
  • click "Find"
  • Give a name to the namespace, for example: - BFG
  • You can access resources like BFG.MethodName () from code
+20
source

To use the web service, here are the steps for doing this. Please look, from there you will receive your decision.

Press here

+2
source

try below. Please note that I used these words for google [c sharp web service]:

Your first C # web service

Developing a REST Web Service Using C # - Walkthrough

+1
source

Please see the following link for an example application using C # WEb Service in Win App,

http://www.codeproject.com/Articles/2761/Consuming-Web-Services-from-a-Win-Forms-Applicatio

+1
source

Source: https://habr.com/ru/post/918914/


All Articles