Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM and SOAP services
Message
De
23/09/2015 09:18:28
 
Information générale
Forum:
ASP.NET
Catégorie:
SOAP
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01624986
Message ID:
01624987
Vues:
61
This message has been marked as the solution to the initial question of the thread.
>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

Does this help : http://blogs.msdn.com/b/bethmassi/archive/2007/10/24/using-my-settings-and-wcf-configuration-with-the-interop-forms-toolkit.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform