Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Wcf service return 400 Bad Result

$
0
0

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();




Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>