I´m trying to use soap protocol including from using System.Runtime.Serialization.Formatters.soap but visual studio throws a message saying soap does n´t exist in this the namespace and the intelli sense helper only show me Binary format. How can i add this class or what can i do?
I´m using .net framerwork 4.7.03 with visual studio community 2019 in language c# running on w10.
using System;
using System.Runtime.Serialization.Formatters.Soap;
static class Program
{
static void Main()
{
}
}
I expect that i can use soap format correctly to serialize and unserialize in my web service
Is your project .NET Core? This appears to be a design decision with .NET Core; this question may be relevant. Additional evidence: Create a new console app with the .NET Framework (not .NET Core), add a Reference, search Assemblies, and System.Runtime.Serialization.Formatters.Soap is in the list.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.