Unify returning value from socket_request and xml_request. Make socket_request as default method and xml_request as backup method if main socket_server is not responding.