adding more debug to http request handling
fixing xml validation return code