Request a service which can get size of a steam object

I get a file thru pub.soap.utils:getXOPObjectContent. I would like to get the size of this file. In other words. So how could I make it?