Hi, I have a ASP .NET MVC app that I want to be able to connect to SOAP api.
I have created a wrapper project were I have my common methods that are working with the API and there is the wsdl file too. I have referenced this as dll in my class library (middle layer) that is referenced into my MVC application.
Sadly it is not working, and I am getting this error:
Could not find default endpoint element that references contract 'S2s.Economic.WebService.EconomicWebServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
I have tried to setup the endpoint in webconfig file with no success.
<?xml version="1.0" encoding="utf-8"?>
<security mode="Transport" />
<binding name="EconomicWebServiceSoap1" />
A will apreciate any help.