Я пытаюсь подключиться к стороннему сервису SOAP, используя .NET Core 2.1.Я получаю следующее исключение при вызове любого из их методов.
Я довольно новичок в использовании сервисов SOAP, поэтому любые советы здесь приветствуются.
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred.
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at ConsoleApp6.Program.Main(String[] args) in c:\users\joshua\source\repos\ConsoleApp6\ConsoleApp6\Program.cs:line 15
Inner Exception 1:
InvalidOperationException: There was an error reflecting 'data'.
Inner Exception 2:
InvalidOperationException: The top XML element 'data' from namespace '' references distinct types ServiceReference2.WSIssueNewPayrollCardData and ServiceReference2.WSIssueNewPersonalizedPayrollCardData. Use XML attributes to specify another XML name or namespace for the element or types.