O'Reilly logo

Mastering F# by Suhaib Fahad, Alfonso García-Caro Núñez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web service type provider

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.

Prerequisites

We will set up our F# script file by referencing the proper OData and the type provider assemblies.

  1. Create an F# script file, WSDLTypeProviderSample.fsx.
  2. Add related references to the script file, as follows:
     #r "FSharp.Data.TypeProviders" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required