Created
June 18, 2017 18:55
-
-
Save jovaneyck/f215bbd7ef7a42dce9a91ccb0c16c5fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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<"http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL"> | |
let svc = Service.GetCountryInfoServiceSoap12() | |
let response = svc.FullCountryInfo("NG") | |
printf "Languages of %s: " response.sName | |
response.Languages | |
|> Seq.map(fun 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