Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 830 Bytes

connect-soap-service-dotnet-core.md

File metadata and controls

28 lines (19 loc) · 830 Bytes

Подключение SOAP сервиса к проекту .NET Core

Иcпользование утилиты dotnet-svcutil

Выполняем команды:

dotnet add package dotnet-svcutil
dotnet svcutil https://tracking.russianpost.ru/rtm34?wsdl

Получаем неожиданную ошибку (для Win10):

Не найден исполняемый файл, соответствующий команде "dotnet-svcutil".

Решение найдено:

In your csproj file try replacing "PackageReference" with "DotNetCliToolReference" for the dotnet-svcutil entry. That should let dotnet know that you want to use the package as a cli tool instead of a standard package reference.

Подключаем Json.NET

dotnet add package Newtonsoft.Json