Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASMX service soap extension response limited to 65536 bytes
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
SOAP
Titre:
ASMX service soap extension response limited to 65536 bytes
Versions des environnements
Environment:
C# 2.0
OS:
Windows 7
Application:
Web Service
Divers
Thread ID:
01564937
Message ID:
01564937
Vues:
68
Hi All,

Basically what I'm trying is redirect requests to an ASMX web service to another ASMX web service. For simplicity's sake let's say I have an ASMX web service with Hello method only and simple soap extension like this
one http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension%28VS.85%29.aspx (let's ignore the log entries code). The differences in my soap extension code are:

1) I want to not call the method so at BeforeDeserialize stage I do nothing (i.e. I do not copy oldStream to newStream and do not set newStream.position to 0)

2) at AfterSerialize stage I form response stream from an XML file with proper tags and content and I copy this response stream to oldStream.

It works fine if the size of the XML is less or equal to 65536 bytes. If I add just one more character and size gets increased to 65537 bytes I get error in the client code where I call the Hello method saying "Response is not well-formed XML.". If I still call the method in 1) it works fine but my task is not to call the method.

Please note I have ASMX not WCF web service and I have no bindings settings in my web.config. I'm using C# VS 2010 Framework 2 but I get same issue with Framework 4.

How do I change that response size limit?

Thanks,
Mario
Répondre
Fil
Voir

Click here to load this message in the networking platform