Calling a SOAP service in .net Core

前端 未结 7 1885
失恋的感觉
失恋的感觉 2020-11-28 07:12

I´m porting a .net 4.6.2 code to a .net Core project, that calls a SOAP service. In the new code I´m using C# (because of some config reasons I just can´t r

相关标签:
7条回答
  • 2020-11-28 08:12

    I had the same problem with There was an error reflecting 'login' only in a unix (Docker and wsl2) environment. On Windows there was no problem at all.

    I tried to create the connected service via the dotnet-svcutil (version 2.0.1), but this didn't solve the issue.

    I finally managed to find the root the my problem. I published my application with the following dotnet command: dotnet publish "myapp/myapp.csproj" -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=true -p:ReadyToRun=true -p:ReadyToRunShowWarnings=true -o publish

    When I removed the attribute -p:PublishTrimmed=true it finally worked both under wsl2 and in my docker environment.

    0 讨论(0)
提交回复
热议问题