Scottxu.WebServiceDataProvider 2018.4.1

dotnet add package Scottxu.WebServiceDataProvider --version 2018.4.1
NuGet\Install-Package Scottxu.WebServiceDataProvider -Version 2018.4.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scottxu.WebServiceDataProvider" Version="2018.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Scottxu.WebServiceDataProvider --version 2018.4.1
#r "nuget: Scottxu.WebServiceDataProvider, 2018.4.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Scottxu.WebServiceDataProvider as a Cake Addin
#addin nuget:?package=Scottxu.WebServiceDataProvider&version=2018.4.1

// Install Scottxu.WebServiceDataProvider as a Cake Tool
#tool nuget:?package=Scottxu.WebServiceDataProvider&version=2018.4.1

WebServiceDataProvider

NuGet Packagist

WebServiceDataProvider是一个用于动态调用WebService的C#类库,使用此类库,不仅可以仅通过两三条语句来调用WebService提供的方法,还可以使用动态编译的代码来调用这些方法。你无需在编译前添加好WebService的引用,只用添加这个类库,你就可以在需要时轻松使用WebService提供的服务。

依赖

  • Newtonsoft.json >= 11.0.2

快速开始

在你的项目中搜索并添加名为“Scottxu.WebServiceDataProvider”的NuGet程序包,即可使用。

如何使用

只需简单的几行代码,就可以调用任何WebService。

使用方法名调用

using Scottxu.WebServiceDataProvider;
var connection = new Connection("http://xxxx/xxxx.asmx");
var command = connection.GetMethodCommand("WebService方法名", "WebService名称");
string returnString = connection.Query();

使用动态编译的C#代码调用

using Scottxu.WebServiceDataProvider;
var connection = new Connection("http://xxxx/xxxx.asmx");
var command = connection.GetCSharpCommand(
  "var webService = new WebService名称();" +
  "return webService.WebService方法名();" +
  );
string returnString = connection.Query();

联系作者

如果有任何问题请写Issus。<br/> Email:xyc0714@aliyun.com

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2018.4.1 1,691 4/15/2018
2018.4.0 1,034 4/6/2018
1.0.1 836 3/15/2018