<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<!--service level behaviors (All service endpoints) -->
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors">
<serviceMetadata httpGetEnabled="true" />
<dataContractSerializer maxItemsInObjectGraph="500000000" />
</behavior>
</serviceBehaviors>
<!--end point level behaviour (Specific one endpoint) -->
<endpointBehaviors>
<behavior name="EndPointBehaviors">
<dataContractSerializer maxItemsInObjectGraph="500000000" />
<webHttp helpEnabled="true" defaultOutgoingResponseFormat="Json" />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
<bindings>
<!--REST service (Only with protocol) Getting http respose not soap message -->
<webHttpBinding>
<binding
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
maxBufferSize="250000"
>
</binding>
</webHttpBinding>
<!--SOAP Service (With protocol and WS Fix specification same as asmx service specification)-->
<basicHttpBinding>
<binding
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
maxBufferSize="250000"
></binding>
</basicHttpBinding>
<!--SOAP Service (With protocol and diff. WS service specification)-->
<!--custome ws binding-->
<wsHttpBinding>
<binding
transactionFlow="true"
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
></binding>
</wsHttpBinding>
<wsDualHttpBinding>
<binding>
</binding>
</wsDualHttpBinding>
<!--Fix ws binding whith metadata-->
<mexHttpBinding>
<binding
openTimeout="00:00:00"
closeTimeout="00:00:00"
receiveTimeout="00:00:01"
sendTimeout="00:00:01"
/>
</mexHttpBinding>
<netPeerTcpBinding >
<binding listenIPAddress="" >
</binding>
</netPeerTcpBinding>
</bindings>
<services>
<service name="WcfService1.Service1" behaviorConfiguration="MyServiceTypeBehaviors" >
<endpoint
address=""
binding="webHttpBinding"
contract="WcfService1.IService1"
behaviorConfiguration="EndPointBehaviors"
/>
</service>
</services>
<client>
<endpoint ></endpoint>
</client>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<!--service level behaviors (All service endpoints) -->
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors">
<serviceMetadata httpGetEnabled="true" />
<dataContractSerializer maxItemsInObjectGraph="500000000" />
</behavior>
</serviceBehaviors>
<!--end point level behaviour (Specific one endpoint) -->
<endpointBehaviors>
<behavior name="EndPointBehaviors">
<dataContractSerializer maxItemsInObjectGraph="500000000" />
<webHttp helpEnabled="true" defaultOutgoingResponseFormat="Json" />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
<bindings>
<!--REST service (Only with protocol) Getting http respose not soap message -->
<webHttpBinding>
<binding
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
maxBufferSize="250000"
>
</binding>
</webHttpBinding>
<!--SOAP Service (With protocol and WS Fix specification same as asmx service specification)-->
<basicHttpBinding>
<binding
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
maxBufferSize="250000"
></binding>
</basicHttpBinding>
<!--SOAP Service (With protocol and diff. WS service specification)-->
<!--custome ws binding-->
<wsHttpBinding>
<binding
transactionFlow="true"
useDefaultWebProxy="true"
maxBufferPoolSize="500000"
maxReceivedMessageSize="250000"
></binding>
</wsHttpBinding>
<wsDualHttpBinding>
<binding>
</binding>
</wsDualHttpBinding>
<!--Fix ws binding whith metadata-->
<mexHttpBinding>
<binding
openTimeout="00:00:00"
closeTimeout="00:00:00"
receiveTimeout="00:00:01"
sendTimeout="00:00:01"
/>
</mexHttpBinding>
<netPeerTcpBinding >
<binding listenIPAddress="" >
</binding>
</netPeerTcpBinding>
</bindings>
<services>
<service name="WcfService1.Service1" behaviorConfiguration="MyServiceTypeBehaviors" >
<endpoint
address=""
binding="webHttpBinding"
contract="WcfService1.IService1"
behaviorConfiguration="EndPointBehaviors"
/>
</service>
</services>
<client>
<endpoint ></endpoint>
</client>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
No comments:
Post a Comment