I'm trying to connect to a third party's SOAP service, using .NET Core 2.1. I getting the following exception thrown when I make a call to any of their methods.
I'm pretty new to consuming SOAP services, so any advice here is appreciated.
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.
User contributions licensed under CC BY-SA 3.0