Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2011, 02:26
portobilbao
 
Fecha de Ingreso: septiembre-2008
Mensajes: 30
Antigüedad: 16 años, 6 meses
Puntos: 0
Busqueda Problema con Servicio Web

Buenos días, tengo un servicio que me devuelve un codigo HTML bastante largo, pero me da el siguiente error, a ver si alguien me podria echar una mano que llevo 2 dias sin darle a la tecla:

-Se superó la cuota de tamaño máximo para los mensajes entrantes (65536). Para aumentar la cuota, use la propiedad MaxReceivedMessageSize en el elemento de enlace correspondiente.

En el web.condig tengo lo siguiente:
<system.serviceModel>
<diagnostics performanceCounters="Off">
<messageLogging maxMessagesToLog="262144" />
</diagnostics>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
sendTimeout="00:30:00" maxBufferSize="262144" maxReceivedMessageSize="262144"
messageEncoding="Mtom" transferMode="Buffered" />
</basicHttpBinding>
</bindings>

<services>
<service behaviorConfiguration="Pandaservices.Comportamient oLeads"
name="PandaServices.Leads">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
name="LeadsSoap" contract="PandaServices.ILeads">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" name="LeadsMetadatos"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Pandaservices.ComportamientoLeads">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

y en el app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ServicesSoap" closeTimeout="00:10:00" openTimeout="00:10:00"
receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="262144" maxBufferPoolSize="262144" maxReceivedMessageSize="262144"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/Services/Services.svc"
binding="basicHttpBinding" bindingConfiguration="ServicesSoap"
contract="ServiceProxy.IServices" name="ServicesSoap" />
</client>
</system.serviceModel>
</configuration>

El caso es que a la hora de agregar el servicio web en la aplicacion, en el configuration.svcinfo y en configuration91.svcinfo sigue apareciendo el valor de 65536.

Muchas gracias y un saludo