hi;
<system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service name="Microsoft_NetFramework_v5.WebApi"> <endpoint address="lomservis"
binding="basicHttpBinding"
bindingConfiguration="secureHttpBinding"
contract="Microsoft_NetFramework_v5.IWebApi"/> <endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" /> </service> </services> <bindings> <basicHttpBinding> <binding name="secureHttpBinding"> <security mode="Transport"> <transport clientCredentialType="None"/> </security> </binding> </basicHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpsGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> var srv = new WebApi();
srv.Url = "https://getapi.site.net/WebApi.svc/lomservis";
var deger = srv.TestApi();
MessageBox.Show(deger);
srv.Dispose();