I'm trying to create a COM that uses external Web service (SOAP) to send and receive XML file.
But when I try to connect to Service reference get an Exception:
Could not find endpoint element with name 'Pril9Soap' and contract 'SendPril9.Pril9Soap' 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 name could be found in the client element.
In app.config I have:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Pril9Soap">
<security mode="Transport" />
</binding>
<binding name="Pril9Soap1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint
address="https://ebenefits.nssi.bg/iseodd_ws_docs/services/pril9.asmx"
binding="basicHttpBinding"
bindingConfiguration="Pril9Soap"
contract="SendPril9.Pril9Soap"
name="Pril9Soap"/>
</client>
</system.serviceModel>
</configuration>
Where is the error?
BTW if this is NOT COM but regular windows form project I have no problems using this Service.
TIA
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.