DotNetCore调用Wcf 发表于 2020-12-01 更新于 2022-06-27 分类于 WCF 本文字数: 517 阅读时长 ≈ 1 分钟 安装dotnet-svcutil1dotnet tool install --global dotnet-svcutil 生成12dotnet-svcutil --outputFile Test1Information.cs -n "http://tempuri.org/,API.ServiceReference.Services1" --outputDir Services1 http://172.2.22.12/FRXXServices/Services1.asmxdotnet-svcutil --outputFile Test2Services.cs -n "http://server.test.com,API.ServiceReference.Services2" --outputDir Services2 http://172.2.22.12:8000/services/Services2?WSDL 参考: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-svcutil-guide?tabs=dotnetsvcutil2x