TFS_ANTIGUO/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config

108 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="2147483647" executionTimeout="600" />
</system.web>
<system.serviceModel>
<client>
<endpoint address="http://10.50.1.123:2075/ServicioUsuarios.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServicioUsuarios"
contract="ServiciosUsuariosWCF.IServicioUsuarios" name="BasicHttpBinding_IServicioUsuarios" />
</client>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- Para evitar revelar información de los metadatos, establezca los valores siguientes en false antes de la implementación -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- Para recibir detalles de las excepciones en los fallos, con el fin de poder realizar la depuración, establezca el valor siguiente en true. Para no revelar información sobre las excepciones, establézcalo en false antes de la implementación -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="SOAPBehavior" />
<behavior name="JSONBehavior">
<webHttp />
<enableWebScript />
<newtonsoftJsonBehavior includeExceptionDetailInFaults="true" />
</behavior>
</endpointBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IServicioUsuarios" maxReceivedMessageSize="2147483647"/>
</basicHttpBinding>
<wsHttpBinding>
<binding name="SOAPBinding" closeTimeout="00:50:00" openTimeout="00:50:00"
receiveTimeout="00:50:00" sendTimeout="00:50:00" bypassProxyOnLocal="false"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
useDefaultWebProxy="false" allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
<webHttpBinding>
<binding name="JSONBinding" closeTimeout="00:50:00" openTimeout="00:50:00"
receiveTimeout="00:50:00" sendTimeout="00:50:00" allowCookies="false"
bypassProxyOnLocal="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
useDefaultWebProxy="true" contentTypeMapper="Atesa.Utilitarios.NewtonsoftJsonContentTypeMapper,Atesa.Utilitarios">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
</bindings>
<services>
<service name="AYA.SlnSinort.WCF.SinortCatalogos">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSinort.WCF.ISinortCatalogos" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSinort.WCF.ISinortCatalogos" />
</service>
<service name="AYA.SlnSinort.WCF.Sinort">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSinort.WCF.ISinort" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSinort.WCF.ISinort" />
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
<extensions>
<behaviorExtensions>
<add name="newtonsoftJsonBehavior" type="Atesa.Utilitarios.NewtonsoftJsonBehaviorExtension,Atesa.Utilitarios" />
</behaviorExtensions>
</extensions>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
Para examinar el directorio raíz de la aplicación web durante la depuración, establezca el valor siguiente en true.
Establézcalo en false antes de la implementación para evitar revelar información sobre la carpeta de aplicación web.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
<connectionStrings>
<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
<!--<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
</connectionStrings>
</configuration>