예제 #1
0
        public static Header CreateHeader(Header header,string action, string manifestElement)
        {
            header.Action = action;
            var p = header.PayloadManifest = new PayloadManifest();
            var m = p.Manifest = new Manifest();
            m.ContentID = "Content0";
            m.Element = manifestElement;
            m.NamespaceURI = "http://www.gm.com/vls";
            m.Version = "1.0";

            var s = header.Security = new Security();
            var ut = s.UsernameToken = new UsernameToken();
            ut.Password = new Password();
            ut.Password.Text = "Password123";
            ut.Username = "******";

            var ts = s.Timestamp = new Timestamp();
            ts.Created = DateTime.UtcNow.ToString("o");
            ts.Expires = DateTime.UtcNow.AddMinutes(1).ToString("o");
            return header;
        }
예제 #2
0
 public static Header CreateHeader(Header header)
 {
     return CreateHeader(header, "LocateVehicle", "ExtGetVehicleInventory");
 }