Update hprose for ASP

Refactored some code for ASP.