BryceBy
BryceBy

Reputation: 319

'Entry point was not found' Error using classes generated from WSDL file

We are trying to use a 3rd party's SOAP API in our .NET Core Web App. We have tried 2 things to get the classes generated from the WSDL file they provided us.

  1. Using WCF in Visual Studio
  2. Using svcutil directly as recommended in the 'Short Answer' here

In both cases, Visual Studio recognizes the classes, provides the expected intellisense & the solution builds successfully. We added the System.ServiceModel.Primitives nuget as well, as suggested in the link in #2.

However, when we attempt to call any method on the client we get the error 'Entry point was not found'.

var binding = new BasicHttpsBinding(BasicHttpsSecurityMode.Transport);
var address = new EndpointAddress("{SOAP Endpoint Address}");
var client = new ItemDefinitionServiceEndpointClient(binding, address);

var response = await client.findAllAsync(); // This throws the 'Entry point was not found' error

Error from Visual Studio

How can we resolve this? Any help would be greatly appreciated!

Upvotes: 1

Views: 808

Answers (1)

BryceBy
BryceBy

Reputation: 319

After a day & a half, I discovered I needed to update the System.ServiceModel nuget packages in my project.

Upvotes: 1

Related Questions