Implemented receiving xml data methods and error methods if connection fails