(MVC) MVC (2019)

Start WCF service as REST

WCF communication is my liked web project type, look for example to this post.



And now I want to publish Web-config to force WCF (NET Framework 4.7) as REST communication. This is unsecure mode prepared to debugging and tracing.



   1:  <?xml version="1.0" encoding="utf-8"?>
   2:  <configuration>
   3:    <connectionStrings>
   4:      <add name="..." connectionString="..." />
   5:    </connectionStrings>
   6:    <appSettings>
   7:      <add key="...." value="..." />
   8:    </appSettings>
   9:    <system.serviceModel>
  10:      <standardEndpoints>
  11:          <webScriptEndpoint>
  12:              <standardEndpoint name="webScriptEndpoint0" crossDomainScriptAccessEnabled="true" />
  13:          </webScriptEndpoint>
  14:      </standardEndpoints>
  15:      <bindings>
  16:        <basicHttpBinding>
  17:          <binding name="basicHttpBinding0">
  18:            <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
  19:              maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
  20:          </binding>
  21:        </basicHttpBinding>
  22:        <webHttpBinding>
  23:          <binding name="webHttpBinding0">
  24:            <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
  25:              maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
  26:          </binding>
  27:        </webHttpBinding>
  28:      </bindings>
  29:      <services>
  30:        <service behaviorConfiguration="debugServiceBehavior" name="Backend.CoreService">
  31:          <endpoint address="" behaviorConfiguration="webHttpRest" binding="webHttpBinding"  bindingConfiguration="webHttpBinding0" name="Unsecure.Backend.CoreService"  contract="Backend.ICoreService" />
  32:        </service>
  33:      </services>
  34:      <behaviors>
  35:        <endpointBehaviors>
  36:          <behavior name="webHttpRest">
  37:            <webHttp helpEnabled="true" automaticFormatSelectionEnabled="true"  faultExceptionEnabled="true" />
  38:          </behavior>
  39:        </endpointBehaviors>
  40:        <serviceBehaviors>
  41:          <behavior name="debugServiceBehavior">
  42:            <serviceMetadata httpGetEnabled="true" />
  43:            <serviceDebug includeExceptionDetailInFaults="true" />
  44:          </behavior>
  45:        </serviceBehaviors>
  46:      </behaviors>
  47:      <protocolMapping>
  48:        <add binding="webHttpBinding" bindingConfiguration="basicHttpBinding0" scheme="http" />
  49:      </protocolMapping>
  50:      <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  51:    </system.serviceModel>
  52:    <system.webServer>
  53:      <staticContent />
  54:      <security>
  55:        <requestFiltering>
  56:          <requestLimits maxAllowedContentLength="209715200" />
  57:        </requestFiltering>
  58:      </security>
  59:      <httpProtocol>
  60:        <customHeaders>
  61:          <add name="Access-Control-Allow-Origin" value="*" />
  62:          <add name="Access-Control-Allow-Methods" value="POST" />
  63:          <add name="Access-Control-Allow-Credentials" value="false" />
  64:        </customHeaders>
  65:      </httpProtocol>
  66:      <modules runAllManagedModulesForAllRequests="true" />
  67:      <directoryBrowse enabled="false" />
  68:    </system.webServer>
  69:    <system.web>
  70:      <authentication mode="None" />
  71:      <compilation debug="true" targetFramework="4.7" />
  72:      <httpRuntime targetFramework="4.7" executionTimeout="10000" maxRequestLength="209715200" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />
  73:      <customErrors mode="Off" />
  74:    </system.web>
  75:    <runtime>
  76:      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  77:              <dependentAssembly>
  78:                  <assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  79:                  <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
  80:              </dependentAssembly>
  81:              <dependentAssembly>
  82:                  <assemblyIdentity name="System.Xml.XmlSerializer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  83:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
  84:              </dependentAssembly>
  85:              <dependentAssembly>
  86:                  <assemblyIdentity name="System.Xml.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  87:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
  88:              </dependentAssembly>
  89:              <dependentAssembly>
  90:                  <assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  91:                  <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  92:              </dependentAssembly>
  93:              <dependentAssembly>
  94:                  <assemblyIdentity name="System.Threading.Timer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  95:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
  96:              </dependentAssembly>
  97:              <dependentAssembly>
  98:                  <assemblyIdentity name="System.Threading.Tasks.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  99:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 100:              </dependentAssembly>
 101:              <dependentAssembly>
 102:                  <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 103:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 104:              </dependentAssembly>
 105:              <dependentAssembly>
 106:                  <assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 107:                  <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
 108:              </dependentAssembly>
 109:              <dependentAssembly>
 110:                  <assemblyIdentity name="System.Threading" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 111:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 112:              </dependentAssembly>
 113:              <dependentAssembly>
 114:                  <assemblyIdentity name="System.Text.RegularExpressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 115:                  <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
 116:              </dependentAssembly>
 117:              <dependentAssembly>
 118:                  <assemblyIdentity name="System.Text.Encoding.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 119:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 120:              </dependentAssembly>
 121:              <dependentAssembly>
 122:                  <assemblyIdentity name="System.Text.Encoding" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 123:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 124:              </dependentAssembly>
 125:              <dependentAssembly>
 126:                  <assemblyIdentity name="System.Security.SecureString" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 127:                  <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
 128:              </dependentAssembly>
 129:              <dependentAssembly>
 130:                  <assemblyIdentity name="System.Security.Principal" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 131:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 132:              </dependentAssembly>
 133:              <dependentAssembly>
 134:                  <assemblyIdentity name="System.Runtime.Serialization.Xml" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 135:                  <bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
 136:              </dependentAssembly>
 137:              <dependentAssembly>
 138:                  <assemblyIdentity name="System.Runtime.Serialization.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 139:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 140:              </dependentAssembly>
 141:              <dependentAssembly>
 142:                  <assemblyIdentity name="System.Runtime.Serialization.Json" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 143:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 144:              </dependentAssembly>
 145:              <dependentAssembly>
 146:                  <assemblyIdentity name="System.Runtime.Numerics" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 147:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 148:              </dependentAssembly>
 149:              <dependentAssembly>
 150:                  <assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 151:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 152:              </dependentAssembly>
 153:              <dependentAssembly>
 154:                  <assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 155:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 156:              </dependentAssembly>
 157:              <dependentAssembly>
 158:                  <assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 159:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 160:              </dependentAssembly>
 161:              <dependentAssembly>
 162:                  <assemblyIdentity name="System.Resources.ResourceManager" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 163:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 164:              </dependentAssembly>
 165:              <dependentAssembly>
 166:                  <assemblyIdentity name="System.Reflection.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 167:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 168:              </dependentAssembly>
 169:              <dependentAssembly>
 170:                  <assemblyIdentity name="System.Reflection.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 171:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 172:              </dependentAssembly>
 173:              <dependentAssembly>
 174:                  <assemblyIdentity name="System.Reflection" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 175:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 176:              </dependentAssembly>
 177:              <dependentAssembly>
 178:                  <assemblyIdentity name="System.ObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 179:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 180:              </dependentAssembly>
 181:              <dependentAssembly>
 182:                  <assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 183:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 184:              </dependentAssembly>
 185:              <dependentAssembly>
 186:                  <assemblyIdentity name="System.Net.Requests" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 187:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 188:              </dependentAssembly>
 189:              <dependentAssembly>
 190:                  <assemblyIdentity name="System.Net.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 191:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 192:              </dependentAssembly>
 193:              <dependentAssembly>
 194:                  <assemblyIdentity name="System.Net.NetworkInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 195:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 196:              </dependentAssembly>
 197:              <dependentAssembly>
 198:                  <assemblyIdentity name="System.Net.Http" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 199:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 200:              </dependentAssembly>
 201:              <dependentAssembly>
 202:                  <assemblyIdentity name="System.Linq.Queryable" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 203:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 204:              </dependentAssembly>
 205:              <dependentAssembly>
 206:                  <assemblyIdentity name="System.Linq.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 207:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 208:              </dependentAssembly>
 209:              <dependentAssembly>
 210:                  <assemblyIdentity name="System.Linq.Expressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 211:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 212:              </dependentAssembly>
 213:              <dependentAssembly>
 214:                  <assemblyIdentity name="System.Linq" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 215:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 216:              </dependentAssembly>
 217:              <dependentAssembly>
 218:                  <assemblyIdentity name="System.IO" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 219:                  <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
 220:              </dependentAssembly>
 221:              <dependentAssembly>
 222:                  <assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
 223:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 224:              </dependentAssembly>
 225:              <dependentAssembly>
 226:                  <assemblyIdentity name="System.Globalization.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 227:                  <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
 228:              </dependentAssembly>
 229:              <dependentAssembly>
 230:                  <assemblyIdentity name="System.Globalization" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 231:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 232:              </dependentAssembly>
 233:              <dependentAssembly>
 234:                  <assemblyIdentity name="System.Dynamic.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 235:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 236:              </dependentAssembly>
 237:              <dependentAssembly>
 238:                  <assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 239:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 240:              </dependentAssembly>
 241:              <dependentAssembly>
 242:                  <assemblyIdentity name="System.Diagnostics.Tools" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 243:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 244:              </dependentAssembly>
 245:              <dependentAssembly>
 246:                  <assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 247:                  <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
 248:              </dependentAssembly>
 249:              <dependentAssembly>
 250:                  <assemblyIdentity name="System.Diagnostics.Debug" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 251:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 252:              </dependentAssembly>
 253:              <dependentAssembly>
 254:                  <assemblyIdentity name="System.Diagnostics.Contracts" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 255:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 256:              </dependentAssembly>
 257:              <dependentAssembly>
 258:                  <assemblyIdentity name="System.Data.Common" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 259:                  <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
 260:              </dependentAssembly>
 261:              <dependentAssembly>
 262:                  <assemblyIdentity name="System.ComponentModel.EventBasedAsync" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 263:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 264:              </dependentAssembly>
 265:              <dependentAssembly>
 266:                  <assemblyIdentity name="System.ComponentModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 267:                  <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
 268:              </dependentAssembly>
 269:              <dependentAssembly>
 270:                  <assemblyIdentity name="System.Collections" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 271:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 272:              </dependentAssembly>
 273:              <dependentAssembly>
 274:                  <assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 275:                  <bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
 276:              </dependentAssembly>
 277:              <dependentAssembly>
 278:                  <assemblyIdentity name="System.ValueTuple" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral" />
 279:                  <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
 280:              </dependentAssembly>
 281:              <dependentAssembly>
 282:                  <assemblyIdentity name="System.Security.Cryptography.Algorithms" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 283:                  <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
 284:              </dependentAssembly>
 285:              <dependentAssembly>
 286:                  <assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
 287:                  <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
 288:              </dependentAssembly>
 289:        <dependentAssembly>
 290:          <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
 291:          <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
 292:        </dependentAssembly>
 293:        <dependentAssembly>
 294:          <assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
 295:          <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
 296:        </dependentAssembly>
 297:        <dependentAssembly>
 298:          <assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
 299:          <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
 300:        </dependentAssembly>
 301:        <dependentAssembly>
 302:          <assemblyIdentity name="Microsoft.IO.RecyclableMemoryStream" publicKeyToken="31bf3856ad364e35" culture="neutral" />
 303:          <bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
 304:        </dependentAssembly>
 305:        <dependentAssembly>
 306:          <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
 307:          <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
 308:        </dependentAssembly>
 309:        <dependentAssembly>
 310:          <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 311:          <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
 312:        </dependentAssembly>
 313:        <dependentAssembly>
 314:          <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 315:          <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
 316:        </dependentAssembly>
 317:        <dependentAssembly>
 318:          <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 319:          <bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" />
 320:        </dependentAssembly>
 321:      </assemblyBinding>
 322:    </runtime>
 323:  </configuration>




And this is the sane service, but full secured for production mode.


  ...  
  13:    <system.serviceModel>
  14:      <standardEndpoints>
  15:        <webScriptEndpoint>
  16:          <standardEndpoint crossDomainScriptAccessEnabled="true" />
  17:        </webScriptEndpoint>
  18:      </standardEndpoints>
  19:      <bindings>
  20:        <webHttpBinding>
  21:          <binding name="webHttpSecure" maxBufferPoolSize="209715200" maxReceivedMessageSize="209715200" maxBufferSize="209715200" sendTimeout="00:10:00" receiveTimeout="00:10:00" closeTimeout="00:10:00" openTimeout="00:10:00" transferMode="Streamed" crossDomainScriptAccessEnabled="true">
  22:            <readerQuotas maxDepth="209715200" maxStringContentLength="209715200" maxBytesPerRead="209715200" maxArrayLength="209715200" maxNameTableCharCount="209715200" />
  23:            <security mode="Transport" />
  24:          </binding>
  25:        </webHttpBinding>
  26:      </bindings>
  27:      <services>
  28:        <service name="Backend.CoreService">
  29:          <endpoint address="" behaviorConfiguration="JSON" binding="webHttpBinding" bindingConfiguration="webHttpSecure" contract="Backend.ICoreService" />
  ...  
  46:        </service>
  47:      </services>
  48:      <behaviors>
  49:        <serviceBehaviors>
  50:          <behavior>
  51:            <serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
  52:            <serviceDebug includeExceptionDetailInFaults="true" />
  53:          </behavior>
  54:        </serviceBehaviors>
  55:        <endpointBehaviors>
  56:          <behavior name="JSON">
  57:            <webHttp />
  58:          </behavior>
  59:        </endpointBehaviors>
  60:      </behaviors>
  61:      <protocolMapping>
  62:        <add binding="webHttpBinding" bindingConfiguration="webHttpSecure" scheme="https" />
  63:      </protocolMapping>
  64:      <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  65:    </system.serviceModel>


Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/WCFasREST/Index.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>