generate request xml and resolve response xml