string soapEndpoint = "http://www.smartertools.com/SmarterTrack/Services2/svcTickets.asmx";; Int32 ticketNumberID = Convert.ToInt32(requestResultElement2.Value); // var tim = DateTime.UtcNow.ToString(""); DateTime now = DateTime.UtcNow.AddDays(1); DateTime localNow = TimeZoneInfo.ConvertTimeFromUtc(now, TimeZoneInfo.Local); string soapAction4= "http://www.smartertools.com/SmarterTrack/Services2/svcTickets.asmx/SetFollowUp";; //Changing Soap addrees andd setticket string soapXml4 = $@"<?xml version=""1.0"" encoding=""utf-8""?> <soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""; xmlns:xsd=""http://www.w3.org/2001/XMLSchema""; xmlns:soap12=""http://www.w3.org/2003/05/soap-envelope"">; <soap12:Body> <SetFollowUp xmlns=""http://www.smartertools.com/SmarterTrack/Services2/svcTickets.asmx"">; <authUserName>{username}</authUserName> <authPassword>{password}</authPassword> <<ticketId>{ticketNumberID}</ticketId> <followUpDateUtc>{localNow}</followUpDateUtc> <newGroupId>{groupId}</newGroupId> <newAgentId>{agentId}</newAgentId> <newStatus>Open</newStatus> <pinToAgent>false</pinToAgent> <comment>{subject}</comment> </SetFollowUp> </soap12:Body> </soap12:Envelope>"; using (var httpClient4 = new HttpClient()) { httpClient4.DefaultRequestHeaders.Add("SOAPAction", soapAction4); var content4 = new StringContent(soapXml4, Encoding.UTF8, "application/application/soap+xml"); var response4 = await httpClient4.PostAsync(soapEndpoint, content4); if (response4.IsSuccessStatusCode) { string soapResponse4 = await response4.Content.ReadAsStringAsync(); } else { Console.WriteLine(response4); string error = "RequestResult not found in response."; }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add noreply@smartertools.com to your trusted senders list in your email software.