SOAP feels old next to REST and JSON, but plenty of companies still run SOAP services, and .NET makes calling one surprisingly painless. In this post we'll build a small Food Trip Planner : you type in a country you want to eat your way through, and the app tells you what you need to know before booking the flight.
the country's code
the capital city (where you'll probably land and eat first)
the currency you'll be paying for meals in
the phone code , for calling ahead to book restaurants
the country's flag
a signature dish to try first
All the country data comes from the free CountryInfo SOAP service :
https://www.google.com/url?q=http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso&source=gmail&ust=1793896833444000&sa=E
Enter fullscreen mode
Exit fullscreen mode
The trick is that we can't get everything in one call. We first ask the service for the country's ISO code, then use that code for every other call.β¦