<configuration> <system.web> <compilation debug="true" targetframework="4.0" /> </system.web> <system.servicemodel> <!--Code Added here for basicHttpBinding--> <bindings> <basichttpbinding> <binding name="BasicHttpBinding_IService" sendtimeout="00:05:00"> <!--<security mode="None"> --><!--<transport clientcredentialtype="Windows"></transport>--> <!-- </security>--> </binding> </basichttpbinding> </bindings> <services> <service name="IService" behaviorconfiguration="IService1_Behavior"> <!--<host> <baseAddresses> <add baseaddress="http://localhost/basicHttpService/service.svc" /> </baseAddresses> </host>--> <endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="IService" name="BasicHttpBinding_IService" > <!--<identity> <dns value="localhost" /> </identity>--> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </endpoint></service> </services> <!--<client> <endpoint address="http://localhost/basicHttpService/service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="IService" name="BasicHttpBinding_IService" /> </endpoint></client>--> <!--Code finished here for basicHttpBinding--> <behaviors> <endpointbehaviors> <!--<behavior name="IService_Behavior"> <clientvia /> </behavior>--> <behavior></behavior> </endpointbehaviors> <servicebehaviors> <behavior name="IService1_Behavior"> <!-- To avoid disclosing metadata information, set the value below to false before deployment --> <servicemetadata httpgetenabled="True" policyversion="Policy15" /> <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> <servicedebug includeexceptiondetailinfaults="false" httpshelppageenabled="True" /> <!--<servicethrottling maxconcurrentcalls="10" maxconcurrentinstances="10" maxconcurrentsessions="10" />--> </behavior> </servicebehaviors> </behaviors> <servicehostingenvironment multiplesitebindingsenabled="true" /> </system.servicemodel> <system.webserver> <modules runallmanagedmodulesforallrequests="true" /> <!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. --> <directorybrowse enabled="false" /> </system.webserver> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)