コード例 #1
0
        static void Main(string[] args)
        {
            FlmServiceClient client = new FlmServiceClient();

            CheckConnectionReplyType checkConnectionParameter = new CheckConnectionReplyType();
            checkConnectionParameter.Originator = new Uri("urn:publicid:" + System.Environment.UserDomainName);
            checkConnectionParameter.SystemName = System.Environment.MachineName.ToString();
            checkConnectionParameter.FeedIdentifier = Guid.NewGuid().ToString();
            checkConnectionParameter.DateTimeCreated = DateTime.Now;

            CheckConnectionReplyType checkConnectionReply = client.CheckConnection(checkConnectionParameter);

            XmlElement xmlElement = client.GetFacilityList();
            WriteToDisk(xmlElement, "GetFacilityList");

            xmlElement = client.GetUpdatedFacilityListSince("Since:12/12/2009");
            WriteToDisk(xmlElement, "GetUpdatedFacilityListSince");

            DCinemaSecurityMessageType extraTheatreMessage = client.GetFLM("urn:publicid:facility:regalcinemas.com:108");

            XmlSerializer xmlSerializer = new XmlSerializer(extraTheatreMessage.GetType());
            MemoryStream memStream = new MemoryStream();
            xmlSerializer.Serialize(memStream, extraTheatreMessage);
            memStream.Seek(0, System.IO.SeekOrigin.Begin);
            XmlDocument xmlDocument = new XmlDocument();
            xmlDocument.Load(memStream);
            memStream.Close();
            WriteToDisk(xmlDocument.DocumentElement, "GetFLM");
        }
コード例 #2
0
        static void Main(string[] args)
        {
            FlmServiceClient client = new FlmServiceClient();

            CheckConnectionReplyType checkConnectionParameter = new CheckConnectionReplyType();

            checkConnectionParameter.Originator      = new Uri("urn:publicid:" + System.Environment.UserDomainName);
            checkConnectionParameter.SystemName      = System.Environment.MachineName.ToString();
            checkConnectionParameter.FeedIdentifier  = Guid.NewGuid().ToString();
            checkConnectionParameter.DateTimeCreated = DateTime.Now;

            CheckConnectionReplyType checkConnectionReply = client.CheckConnection(checkConnectionParameter);

            XmlElement xmlElement = client.GetFacilityList();

            WriteToDisk(xmlElement, "GetFacilityList");

            xmlElement = client.GetUpdatedFacilityListSince("Since:12/12/2009");
            WriteToDisk(xmlElement, "GetUpdatedFacilityListSince");

            DCinemaSecurityMessageType extraTheatreMessage = client.GetFLM("urn:publicid:facility:regalcinemas.com:108");

            XmlSerializer xmlSerializer = new XmlSerializer(extraTheatreMessage.GetType());
            MemoryStream  memStream     = new MemoryStream();

            xmlSerializer.Serialize(memStream, extraTheatreMessage);
            memStream.Seek(0, System.IO.SeekOrigin.Begin);
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.Load(memStream);
            memStream.Close();
            WriteToDisk(xmlDocument.DocumentElement, "GetFLM");
        }