Building pact request from xml