getMemory method to web services

I added the get memory method to web services