public static void SendMT(LoginParams secureParams, MtParams mtParams, PhoneParams phoneParams) { var doc = new XmlOutput(); doc.XmlDeclaration().Node("request").Within() .Node("transaction").InnerText(secureParams.TransactionID.ToString()) .Node("user").Within() .Node("login").InnerText(secureParams.Login) .Node("pwd").InnerText(secureParams.Password) .EndWithin() .Node("msg").Within() .Node("format").InnerText(mtParams.Format) .Node("text").InnerText(mtParams.Text, true) .Node("url").InnerText(mtParams.URL) .Node("nc").InnerText(mtParams.NumeroCorto) .EndWithin() .Node("phone").Within() .Node("ani").InnerText(phoneParams.ANI) .Node("op").InnerText(phoneParams.Op) .EndWithin() .EndWithin(); SecureRequest(secureParams, doc.GetOuterXml()); }