private string CommonProcess(string strRequestType, string strInputXML)
        {
            while (!CheckCount(strRequestType))
            {
                System.Threading.Thread.Sleep(1000);
            }


            APICommon apicommon = new APICommon();

            string requestHeader = apicommon.GetHeadXML(strRequestType, "");

            strInputXML = "<HotelRequest><RequestBody xmlns:ns=\"http://www.opentravel.org/OTA/2003/05\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" + strInputXML + "</RequestBody></HotelRequest>";

            string       requestXML = string.Format(requestHeader, strInputXML);
            string       url        = APICommon.APIService + "Hotel/" + strRequestType + ".asmx";
            WebSvcCaller process    = new WebSvcCaller();
            Hashtable    ht         = new Hashtable();

            ht.Add("requestXML", requestXML);

            logger.Info(string.Format(logFormat, strRequestType, strInputXML));

            XmlDocument xd = WebSvcCaller.QuerySoapWebService(url, "Request", ht);

            return(xd.InnerText);
        }
        public string GetTicketBySearch(int areaId, string keywords)
        {
            string reqXml =
                @"<ScenicSpotSearchRequest>
<DistributionChannel>9</DistributionChannel>
<PagingParameter>
<PageIndex>1</PageIndex>
<PageSize>20</PageSize>
</PagingParameter>
<SearchParameter>
<Keyword>北京</Keyword>
<SaleCityID>1</SaleCityID>
</SearchParameter>
</ScenicSpotSearchRequest>";

            APICommon apicommon = new APICommon();

            return(WebSvcCaller.TicketCaller(apicommon.GetTicketJson(0, reqXml, "TicketSenicSpotSearch", "TicketSenicSpotSearch")));
        }
 public MainWindow()
 {
     InitializeComponent();
     APICommon.initilizeAPI();
 }