Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 10th, 2012  |  syntax: XML  |  size: 1.93 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Service Web.config:
  2.  
  3. <system.serviceModel>
  4.     <bindings>
  5.       <webHttpBinding>
  6.         <binding name="StreamedRequestWebBinding" bypassProxyOnLocal="true" useDefaultWebProxy="false" hostNameComparisonMode="WeakWildcard" sendTimeout="10:15:00" openTimeout="10:15:00" receiveTimeout="10:15:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" transferMode="StreamedRequest">
  7.           <readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647"/>
  8.         </binding>
  9.       </webHttpBinding>
  10.     </bindings>
  11.     <services>
  12.       <service behaviorConfiguration="ServiceBehaviour" name="Developer_Portal.Public">
  13.         <endpoint address="" behaviorConfiguration="web" binding="webHttpBinding"
  14.          bindingConfiguration="StreamedRequestWebBinding" contract="Developer_Portal.IPublic" />
  15.       </service>
  16.     </services>
  17.     <behaviors>
  18.       <serviceBehaviors>
  19.         <behavior name="ServiceBehaviour">
  20.           <serviceMetadata httpGetEnabled="true"/>
  21.           <serviceDebug includeExceptionDetailInFaults="false"/>
  22.         </behavior>
  23.       </serviceBehaviors>
  24.       <endpointBehaviors>
  25.         <behavior name="web">
  26.           <!--Him-->
  27.           <webHttp automaticFormatSelectionEnabled="true"/>
  28.         </behavior>
  29.       </endpointBehaviors>
  30.     </behaviors>
  31.     <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
  32.   </system.serviceModel>
  33.   <system.webServer>
  34.     <modules runAllManagedModulesForAllRequests="true"/>
  35.   </system.webServer>
  36.  
  37. Client Web.config:
  38.  
  39. <system.serviceModel>
  40.     <behaviors>
  41.       <endpointBehaviors>
  42.         <behavior name="webby">
  43.           <webHttp/>
  44.         </behavior>
  45.       </endpointBehaviors>
  46.     </behaviors>
  47.     <client>
  48.       <endpoint address="ADDRESS" name="ServiceReference1" binding="webHttpBinding" contract="ServiceReference1.IPublic" behaviorConfiguration="webby"/>
  49.     </client>
  50.   </system.serviceModel>
clone this paste RAW Paste Data