Esempio n. 1
0
 public static void PopulateMoreBetterStandardValues(NewBaseMessageBean messageAttributes)
 {
     PopulateBetterStandardValuesV02(messageAttributes);
     messageAttributes.Sender.DeviceId   = new Identifier("2.16.124.113620.1.2.100", "111");
     messageAttributes.Receiver.DeviceId = new Identifier("2.16.124.113620.1.2.100", "222");
     messageAttributes.MessageIdentifier = new Identifier("1ee83ff1-08ab-4fe7-b573-ea777e9bad51");
     messageAttributes.ConformanceProfileIdentifiers.Add(new Identifier("1ee83ff1-08ab-4fe7-b573-ea777e9bad52"));
     if (messageAttributes is NoPayloadResponseMessageBean)
     {
         ((NoPayloadResponseMessageBean)messageAttributes).Acknowledgement = new AcknowledgementBean();
         ((NoPayloadResponseMessageBean)messageAttributes).Acknowledgement.AcknowledgementType = Ca.Infoway.Messagebuilder.Domainvalue.Transport.AcknowledgementType
                                                                                                 .APPLICATION_ACKNOWLEDGEMENT_ACCEPT;
         ((NoPayloadResponseMessageBean)messageAttributes).Acknowledgement.TargetMessage = new Identifier("1ee83ff1-08ab-4fe7-b573-ea777e9bad41"
                                                                                                          );
     }
 }
Esempio n. 2
0
 public static void PopulateStandardValuesV01(NewBaseMessageBean bean)
 {
     bean.MessageIdentifier         = new Identifier("2.16.124.113620.1.1.1.1.2", "293844");
     bean.MessageTimestamp          = DateUtil.GetDate(2008, 5, 25, 14, 16, 10, 0);
     bean.ProcessingCode            = Ca.Infoway.Messagebuilder.Domainvalue.Transport.ProcessingID.PRODUCTION;
     bean.ProcessingMode            = Ca.Infoway.Messagebuilder.Domainvalue.Transport.ProcessingMode.CURRENT_PROCESSING;
     bean.ResponseType              = Ca.Infoway.Messagebuilder.Domainvalue.Transport.ResponseMode.IMMEDIATE;
     bean.DesiredAcknowledgmentType = Ca.Infoway.Messagebuilder.Domainvalue.Transport.AcknowledgementCondition.ALWAYS;
     bean.Receiver          = new Receiver();
     bean.Receiver.DeviceId = new Identifier("1.2.3", "123");
     bean.Receiver.SetTelecommunicationAddress(new TelecommunicationAddress(CodeResolverRegistry.Lookup <Ca.Infoway.Messagebuilder.Domainvalue.URLScheme
                                                                                                         >("http"), "123.456.789.10"));
     bean.Sender          = new Sender();
     bean.Sender.DeviceId = new Identifier("1.2.3", "123");
     bean.Sender.ManufacturerModelNumber            = "1.0";
     bean.Sender.SoftwareName                       = "Panacea Pharmacy";
     bean.Sender.TelecommunicationAddress           = new TelecommunicationAddress();
     bean.Sender.TelecommunicationAddress.Address   = "987.654.321.0";
     bean.Sender.TelecommunicationAddress.UrlScheme = CodeResolverRegistry.Lookup <Ca.Infoway.Messagebuilder.Domainvalue.URLScheme
                                                                                   >("http");
 }
Esempio n. 3
0
 public static void PopulateStandardValuesV02(NewBaseMessageBean bean)
 {
     PopulateStandardValuesV01(bean);
 }
Esempio n. 4
0
 public static void PopulateBetterStandardValuesV02(NewBaseMessageBean messageAttributes)
 {
     PopulateStandardValuesV02(messageAttributes);
     messageAttributes.Receiver.TelecommunicationAddress.UrlScheme = Ca.Infoway.Messagebuilder.Domainvalue.Basic.URLScheme.HTTP;
     messageAttributes.Receiver.TelecommunicationAddress.Address   = "123.255.255.10";
 }