public string CreateXml(FlightSearch search) { var airShoppingRQ = new AirShoppingRQ(); airShoppingRQ.Document = _documentFactory.Create(); airShoppingRQ.Party = _partyBuilder.Create(); airShoppingRQ.Travelers = _travelerBuilder.Create(search); airShoppingRQ.CoreQuery = _coreQueryBuilder.Create(search); airShoppingRQ.Preference = _preferenceBuilder.Create(search); var soap = new SoapEnvelope() { body = new ResponseBody <AirShoppingRQ> { AirShoppingRQ = airShoppingRQ } }; return(_xmlService.CreateXmlStringFromObject <SoapEnvelope>(soap)); }