3

FSharp.Data.WsdlProvider

 3 years ago
source link: https://www.myget.org/feed/wsdlprovider/package/nuget/FSharp.Data.WsdlProvider
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

FSharp.Data.WsdlProvider

This is an implementation of the F# Wsdl type provider that is compatible with netcore and netfx.

It does all the wsdl parsing internally and doesn't require an external tool.

Build and Test

Quickstart

Add the nuget to your project from MyGet:

dotnet add .\Client\Client.fsproj package FSharp.Data.WsdlProvider --prerelease --source https://www.myget.org/F/wsdlprovider/api/v3/index.json

Define a type using the WsdlProvider pointing at you wsdl definition:

open FSharp.Data
type MyService = WsdlProvider<"https://mysite.com/service.wsld">

Call the service:

use client = MyService.ServiceSoapClient("https://mysite.com/service")
let result = client.MyMethod("arg")
printfn "%A" result

Build

To build the type provider, you need only to have dotnet sdk 3.1 installed.

Building on Windows:

.\build.cmd

Binding on Minux/MacOS:

./build.sh

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK