예제 #1
0
        protected void Td_Click(object sender, EventArgs e)
        {
            string xml2 = File.ReadAllText("D:\\Suraj\\Suraj\\Code\\TazWorksCom\\Tazzwork_request.xml");

            //string xmlEnquiry = File.ReadAllText("D:\\EknowID\\Code\\TazWorksCom\\Res.xml");

            //string[] Titles = { "first-name", "last-name", "relation-to-viewer", "num-recommenders", "current-status", "current-status-timestamp", "start-date", "is-current", "school-name", "end-date", "member-url-resources", "member-url", "api-standard-profile-request", "http-header", "site-standard-profile-request", "picture-url", "field-of-study", "phone-numbers","phone-type", "main-address" };
            //string[] Titles1 = { "FirstName", "LastName", "RelationToViewer", "NumRecommenders", "CurrentStatus", "CurrentStatusTimestamp", "StartDate", "IsCurrent", "SchoolName", "EndDate", "MemberUrlResources", "MemberUrl", "ApiStandardProfileRequest", "HttpHeader", "SiteStandardProfileRequest", "PictureUrl", "FieldOfStudy", "phonenumbers","phonetype", "MainAddress" };
            //for (int loopCount = 0; loopCount < Titles.Count(); loopCount++)
            //{
            //    xmlEnquiry = xmlEnquiry.Replace(Titles[loopCount], Titles1[loopCount]);
            //}

            //var regex = new Regex("phone-number");
            //xmlEnquiry = regex.Replace(xmlEnquiry, "phonenumber", 1);
            //xmlEnquiry = regex.Replace(xmlEnquiry, "phoneNumber", 2);
            //xmlEnquiry = regex.Replace(xmlEnquiry, "phonenumber", 1);



            //ResumeParserData person = (ResumeParserData)SerializationHelper.XmlDeserializeFromString(xmlEnquiry, typeof(ResumeParserData));


            //FillSessionValues(person);

            //if (SessionWrapper.LinkedinData.EmploymentDetailes.Count != 0)
            //{
            //    for (int i = 0; i < SessionWrapper.LinkedinData.EmploymentDetailes.Count; i++)
            //    {
            //        SessionWrapper.LinkedinData.EmploymentDetailes[i].UserId = SessionWrapper.LoggedUser.UserId;
            //    }
            //    UserEmploymentDetailsHelper.SaveUserEmpDetails(SessionWrapper.LinkedinData.EmploymentDetailes);
            //}
            //if (SessionWrapper.LinkedinData.EducationalDetail != null)
            //{
            //    SessionWrapper.LinkedinData.EducationalDetail.UserId = SessionWrapper.LoggedUser.UserId;
            //    UserEducationalDetailHelper.SaveUserEducationDetail(SessionWrapper.LinkedinData.EducationalDetail);
            //}

            ProcessRequest proRequest = new ProcessRequest();

            string response = proRequest.HttpPost(xml2);

            ConstructRequest req = new ConstructRequest();

            req.GetResponse(37, 3);
        }
        private void saveOrderStateTask(int orderID, int userID)
        {
            ConstructRequest con = new ConstructRequest();

            con.GetResponse(orderID, userID);
        }