I'll ask the question first, and then give some background: Does anyone know if the SOAP Envelope Size is calculated including the headers, or just the content outside of the tags?
Content-Length includes the header information, but I can't assume that Content-Length = Envelope Size. The SOAP specification doesn't seem to address the Envelope Size, and I'm starting to worry that it's a "Up to the implementer" kind of thing.
Any answers or leads would be great.
If you are checking the if it exceeds maximum size you can do this way:
This is not the most efficient way to do it though. So I have asked it here