Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#r @"..\packages\FSharp.Data.TypeProviders\lib\net40\FSharp.Data.TypeProviders.dll"
#r @"System.ServiceModel.dll"
#r @"System.Runtime.Serialization.dll" //Needed to see the generated contract types in you IDE.
open FSharp.Data.TypeProviders
open System.ServiceModel
type Service = WsdlService<"">
let svc = Service.GetCountryInfoServiceSoap12()
let response = svc.FullCountryInfo("NG")
printf "Languages of %s: " response.sName
|> lang -> lang.sName)
|> String.concat ","
|> printfn "%s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment