The web service type provider works with Web Service Definition Language (WSDL), an XML specification for describing network services. Support for WSDL is there in the .NET framework with the SvcUtil.exe
code generation utility. The web service type provider uses this utility to generate the types and exposes them to F# via the type provider. We will follow the same steps as our earlier examples by creating an F# script file and doing an exploratory analysis of the underlying data source.
We will set up our F# script file by referencing the proper OData and the type provider assemblies.
- Create an F# script file,
WSDLTypeProviderSample.fsx
. - Add related references to the script file, as follows:
#r "FSharp.Data.TypeProviders" #r "System.Runtime.Serialization.dll" #r "System.ServiceModel.dll" open System open System.ServiceModel open Microsoft.FSharp.Linq open Microsoft...