Salman Mushtaq

Salman Mushtaq

  • NA
  • 284
  • 209k

Get weather using api in c#

Sep 17 2017 8:53 AM
Hello members,
 
I need to create simple winforms application in c# that input city name and return current weather. Before this I make an application that uses wsdl web service of Global Weather http://www.webservicex.com/globalweather.asmx?WSDL. But there is no data found here. So, I search on google and find this api http://openweathermap.org/current.
 
Because I am in learning phase and dont understand how I use this api to get weather. I search on google some documentations but don't get idea till yet.
 
Can any one explain step by step how to use api. For example for web services the step by step instructions
 
1. Go to solution explorer and add service reference.
2. Get endpoint name
3. Make instance of service reference
4. Call the method etc.
 
Advance thanks and looking forward to your responses. Happy learning 

Answers (1)