Change method to get messages from web services.
fix bug.