Determining The Size Of A SOAP Request With ColdFusion

Published: {ts '2012-01-11 00:00:00'}
Author: Steven Neiland
Site Url: http://www.neiland.net/article/determining-the-size-of-a-soap-request-with-coldfusion/

Recently I was working with some SQL Server SOAP webservices that another developer had written a while back. On reviewing the code it quickly became apparent that a particular webservice call was returning way too much data.

To make my case as to why this needed to be changed I decided to find an average returned record size and how big the data transfer was for it.

bytes: #bytesLen#
kilobytes: #kbytesLen#
megabytes: #mbytesLen#

I know its pretty simple code but it did its job and proved that the current webservices needed to be reworked so maybe it will help out someone else in a similar position in the future.