At a high level, you need to serialize your XML data before you submit it to your web service.
There are a couple of steps to get there.
1. Create a class to define your data.
public class MyData
(
[XmlElement(ElementName="messageid")]
string mid {get;set;}
[XmlElement(ElementName="createdtimestamp")]
string timee {get;set;}
etc, etc,
)
2. Create an instance of your object and set the properties.
MyData instanceOfData = new MyData
{
mid = "69bcdcdafdse474eaf8b201803151343",
timee = "2018-06-01T13:47:23.00",
etc, etc, etc.
};
3. Serialize your object for the web service
XmlSerializer serializer = new XmlSerializer(typeof(instanceOfData));
string xml = "";
XmlWriterSettings settings = new XmlWriterSettings();
settings.OmitXmlDeclaration = false;
using (var sww = new StringWriter())
{
using (XmlWriter writer = XmlWriter.Create(sww, settings))
{
serializer.Serialize(writer, instanceOfData);
xml = sww.ToString();
}
}
Console.WriteLine("sending request:::::::" + xml);