updated api connector in line with latest version of xsd