Check for open connection and proper protocol for update and xmles