C # Windows FOrms Web Services

3

I would like to know if it is possible to work with web services using the application made in windows forms. It's possible ? If so, would you have any references that could help me solve this?

    
asked by anonymous 27.01.2016 / 17:13

1 answer

2

Consuming Webservices in Applications WindowsForms

To consume a webservices (assuming they are provided by the .net framework) you should follow the following steps:

  • Right-click on Referências (References), and then on% (Add Service Reference or Web Reference).
  • Enter the webservice address (.asmx or .svc) and click Discover.
  • In this step the window below will already be updated with the allowed methods.
  • Select the desired methods and enter the desired namespace for the service calls ex: Adicionar Referência de Serviço .
  • Considering that you have succeeded in the above steps you can use webservices as internal classes of your system through the namespace you assigned in the previous step.

If you have any questions, please do not hesitate to update the question with the information.

    
27.01.2016 / 17:56