added more unit test cases and handled the condition when null XML is
received. Also now suppports reading the request body for XML