Click here to Skip to main content
11,409,138 members (63,967 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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 (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 in advance.
Posted 5-Feb-13 8:01am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 330
1 Sergey Alexandrovich Kryukov 310
2 Maciej Los 155
3 Peter Leow 130
4 Dave Kreskowiak 115
0 Sergey Alexandrovich Kryukov 8,676
1 OriginalGriff 6,855
2 Maciej Los 3,322
3 Abhinav S 3,238
4 Peter Leow 3,034


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100