0
Also hier ist meine App.config
von der Client-Seite, aber ich muss dies mit C# -Code tun, so kann mir jemand helfen? Ich habe einige Möglichkeiten ausprobiert, aber ich konnte trotzdem nicht herausfinden, wie.C# Endpunkte in App.Config
<!--<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IInfo" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://appserver.gwp.ge/CustomerService/Info.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IInfo"
contract="BillingService.IInfo" name="BasicHttpBinding_IInfo" />
</client>
</system.serviceModel>
</configuration>-->
https://msdn.microsoft.com/en-us/library/ms731862(v=vs.110).aspx oder http://stackoverflow.com/questions/2943148/how-to-programmaticallyconnect-a -client-to-a-wcf-service –
Ich denke, das kann helfen: [http://stackoverflow.com/questions/11583882/programatically-adding-an-endpoint](http://stackoverflow.com/questions/11583882/programatically-adding-andendpoint) –