Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM and SOAP services
Message
 
To
All
General information
Forum:
ASP.NET
Category:
SOAP
Title:
COM and SOAP services
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01624986
Message ID:
01624986
Views:
56
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.
Next
Reply
Map
View

Click here to load this message in the networking platform