diff --git a/Stundensheet.xlsx b/Stundensheet.xlsx index 91c7ab1d..a572b02f 100644 Binary files a/Stundensheet.xlsx and b/Stundensheet.xlsx differ diff --git a/nsw/Source/SendNSWMessageService/NSWSendService.cs b/nsw/Source/SendNSWMessageService/NSWSendService.cs index 3827aaa6..19619c9e 100644 --- a/nsw/Source/SendNSWMessageService/NSWSendService.cs +++ b/nsw/Source/SendNSWMessageService/NSWSendService.cs @@ -83,6 +83,8 @@ namespace SendNSWMessageService if (DBManager.Instance.Connect(Properties.Settings.Default.ConnectionString)) { + bsmd.hisnord.Response.ReadAnswers(); + // Datenbank auf zu sendende Objekte überprüfen und laden List coresMarkedForSending = DBManager.Instance.GetMessageCoresByStatus(MessageCore.BSMDStatus.TOSEND); @@ -271,7 +273,7 @@ namespace SendNSWMessageService // Auf erhaltene Visit-Ids prüfen (HIS-NORD) // TODO - bsmd.hisnord.Response.ReadAnswers(); + // bsmd.hisnord.Response.ReadAnswers(); DBManager.Instance.Disconnect(); diff --git a/nsw/Source/bsmd.hisnord/NSWResponse.cs b/nsw/Source/bsmd.hisnord/NSWResponse.cs new file mode 100644 index 00000000..0ec8b284 --- /dev/null +++ b/nsw/Source/bsmd.hisnord/NSWResponse.cs @@ -0,0 +1,23 @@ +using System; +using System.Linq; +using System.Xml; +using System.Xml.Linq; + +namespace bsmd.hisnord +{ + + public class NSWResponse + { + public NSWResponse(XElement xml) + { + + } + + #region Properties + + + #endregion + + } + +} \ No newline at end of file diff --git a/nsw/Source/bsmd.hisnord/Properties/Settings.Designer.cs b/nsw/Source/bsmd.hisnord/Properties/Settings.Designer.cs index c85e0b62..31de90e2 100644 --- a/nsw/Source/bsmd.hisnord/Properties/Settings.Designer.cs +++ b/nsw/Source/bsmd.hisnord/Properties/Settings.Designer.cs @@ -94,5 +94,17 @@ namespace bsmd.hisnord.Properties { this["AnswerArchiveDir"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("E:\\svnlager\\BSMD\\nsw\\HIS-NORD\\Transmitter-Tool\\ANSWERS_CORRUPT")] + public string AnswerCorruptDir { + get { + return ((string)(this["AnswerCorruptDir"])); + } + set { + this["AnswerCorruptDir"] = value; + } + } } } diff --git a/nsw/Source/bsmd.hisnord/Properties/Settings.settings b/nsw/Source/bsmd.hisnord/Properties/Settings.settings index 86808863..2a64a155 100644 --- a/nsw/Source/bsmd.hisnord/Properties/Settings.settings +++ b/nsw/Source/bsmd.hisnord/Properties/Settings.settings @@ -20,5 +20,8 @@ E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool\ANSWERS_DONE + + E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool\ANSWERS_CORRUPT + \ No newline at end of file diff --git a/nsw/Source/bsmd.hisnord/Response.cs b/nsw/Source/bsmd.hisnord/Response.cs index ce4b6f6e..0a994c80 100644 --- a/nsw/Source/bsmd.hisnord/Response.cs +++ b/nsw/Source/bsmd.hisnord/Response.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using log4net; +using System.Xml.Linq; namespace bsmd.hisnord { @@ -21,86 +22,131 @@ namespace bsmd.hisnord { foreach (string answerFile in Directory.GetFiles(Properties.Settings.Default.AnswerDir)) { + bool isOK = true; - // TODO: klären was man hier liest: reguläre Antwort oder Schnittstellenfehler - VisitIdResponse visitIdResponse = ReadVisitId(answerFile); - if (visitIdResponse != null) + // Informationen aus dem Dateinamen + // Meldetyp_Referenz_ID_Timestamp.xml + string bareFileName = Path.GetFileNameWithoutExtension(answerFile); + string[] fileNameElems = bareFileName.Split('_'); + + if (fileNameElems.Length < 4) { - _log.InfoFormat("HIS-NORD: Visit-ID {0} delivered for Core {1}", visitIdResponse.VisitId, visitIdResponse.ClientRequestId); - // update MessageCore - if (visitIdResponse.ClientRequestId != null) + _log.WarnFormat("ANSWER file {0}.xml has an invalid file name", bareFileName); + isOK = false; + } + else + { + int prozessStatus; + if (!Int32.TryParse(fileNameElems[fileNameElems.Length - 1], out prozessStatus)) { - Guid messageCoreId; - if (Guid.TryParse(visitIdResponse.ClientRequestId, out messageCoreId)) - { - MessageCore answerCore = DBManager.Instance.GetMessageCoreById(messageCoreId); - if (answerCore == null) - { - _log.WarnFormat("HIS-NORD: Core not found for notification id {0}", visitIdResponse.NotificationId); - } - else - { - if (!answerCore.IsTransit) - answerCore.VisitId = visitIdResponse.VisitId; - else - answerCore.TransitId = visitIdResponse.VisitId; - answerCore.BSMDStatusInternal = MessageCore.BSMDStatus.RESPONDED; - DBManager.Instance.Save(answerCore); - } - } - else - { - _log.WarnFormat("{0} ANSWER parsed, but MessageCoreId is no Guid: {1}", - Path.GetFileName(answerFile), visitIdResponse.ClientRequestId); - } + _log.WarnFormat("ANSWER file {0}.xml has no process status at the end (2..6)", bareFileName); + isOK = false; } else { - _log.WarnFormat("Client request id is null in {0}", answerFile); - } - - // archive file - File.Move(answerFile, Path.Combine(Properties.Settings.Default.AnswerArchiveDir, Path.GetFileName(answerFile))); - } - } - } - - internal static VisitIdResponse ReadVisitId (string filename) - { - VisitIdResponse visitIdResponse = null; - - try - { - XmlSerializer serializer = new XmlSerializer(typeof(bsmd.hisnord.dataset)); - using (FileStream fs = new FileStream(filename, FileMode.Open)) - { - // aus dem Gewühl die Antwort fischen.. - dataset aDataSet = (dataset)serializer.Deserialize(fs); - if (aDataSet != null) - { - for (int i = 0; i < aDataSet.Items.Length; i++) + int timestampMilliSecs; + if (!Int32.TryParse(fileNameElems[fileNameElems.Length - 2], out timestampMilliSecs)) { - if (aDataSet.Items[i] is Envelope) + _log.WarnFormat("ANSWER file {0}.xml has no readable timestamp", bareFileName); + isOK = false; + } + else + { + string refId = fileNameElems[fileNameElems.Length - 3]; + string meldeTyp = fileNameElems[fileNameElems.Length - 4]; + if (fileNameElems.Length == 5) + meldeTyp = string.Format("{0}_{1}", fileNameElems[fileNameElems.Length - 5], meldeTyp); + + // TODO: klären was man hier liest: reguläre Antwort oder Schnittstellenfehler + // XML Linq statt Serialisierung + try { - Envelope anEnvelope = (Envelope)aDataSet.Items[i]; - if (anEnvelope.Body.Length > 0) + XElement xml = XElement.Load(answerFile); + + // declare Namespaces + XNamespace ns1 = "http://api.national-single-window.de/visitIdRequest"; + XNamespace ns6 = "http://api.national-single-window.de/receipt"; + //XNamespace ns15 = "http://api.national-single-window.de/statusForClientRequestId"; + XNamespace soap = "http://schemas.xmlsoap.org/soap/envelope/"; + XNamespace ns15 = "http://api.national-single-window.de/visitIdResponse"; + + if(xml.Descendants("SystemError").Count() > 0) { - visitIdResponse = anEnvelope.Body[0].VisitIdResponse; - break; - } + // Fehlernachricht + SystemError systemError = new SystemError(xml); + + // Speichern + + } + else + { + // NSW Rückmeldung + NSWResponse nswResponse = new NSWResponse(xml); + + // Rückmeldung auswerten + + + } + + + /* + if (visitIdResponse != null) + { + _log.InfoFormat("HIS-NORD: Visit-ID {0} delivered for Core {1}", visitIdResponse.VisitId, visitIdResponse.ClientRequestId); + // update MessageCore + if (visitIdResponse.ClientRequestId != null) + { + Guid messageCoreId; + if (Guid.TryParse(visitIdResponse.ClientRequestId, out messageCoreId)) + { + MessageCore answerCore = DBManager.Instance.GetMessageCoreById(messageCoreId); + if (answerCore == null) + { + _log.WarnFormat("HIS-NORD: Core not found for notification id {0}", visitIdResponse.NotificationId); + } + else + { + if (!answerCore.IsTransit) + answerCore.VisitId = visitIdResponse.VisitId; + else + answerCore.TransitId = visitIdResponse.VisitId; + answerCore.BSMDStatusInternal = MessageCore.BSMDStatus.RESPONDED; + DBManager.Instance.Save(answerCore); + } + } + else + { + _log.WarnFormat("{0} ANSWER parsed, but MessageCoreId is no Guid: {1}", + Path.GetFileName(answerFile), visitIdResponse.ClientRequestId); + } + } + else + { + _log.WarnFormat("Client request id is null in {0}", answerFile); + } + } + */ + } + catch(Exception ex) + { + _log.WarnFormat("Exception deserializing ANSWER file: {0}", ex.ToString()); + isOK = false; } } } } + + if(isOK) + { + // archive file + File.Move(answerFile, Path.Combine(Properties.Settings.Default.AnswerArchiveDir, Path.GetFileName(answerFile))); + } + else + { + File.Move(answerFile, Path.Combine(Properties.Settings.Default.AnswerCorruptDir, Path.GetFileName(answerFile))); + } } - catch (Exception ex) - { - _log.ErrorFormat("Exception occurred during deserialization: {0}", ex.Message); - - } - - return visitIdResponse; - } + } } } diff --git a/nsw/Source/bsmd.hisnord/SystemError.cs b/nsw/Source/bsmd.hisnord/SystemError.cs index b66acc15..56ee4c5a 100644 --- a/nsw/Source/bsmd.hisnord/SystemError.cs +++ b/nsw/Source/bsmd.hisnord/SystemError.cs @@ -1,217 +1,64 @@ -//------------------------------------------------------------------------------ -// -// Dieser Code wurde von einem Tool generiert. -// Laufzeitversion:4.0.30319.42000 -// -// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn -// der Code erneut generiert wird. -// -//------------------------------------------------------------------------------ - -using System.Xml.Serialization; - -// -// Dieser Quellcode wurde automatisch generiert von xsd, Version=4.6.1055.0. -// +using System; +using System.Linq; +using System.Xml; +using System.Xml.Linq; namespace bsmd.hisnord { - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)] - public partial class SystemError + public class SystemError { + private DateTime? _errorAt; + private string _meldeTyp; + private string _referenceId; + private int _processStatus; + private string _importFileName; + private int _errorCode; + private string _errorMessage; + private string _errorDescription; - private string errorAtField; - - private string meldetypeField; - - private string referenceIdField; - - private string processStatusField; - - private string transmissionRepeatedAtField; - - private string importFilenameField; - - private string visitIdField; - - private string errorCodeField; - - private string errorMessageField; - - private string errorDescriptionField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ErrorAt + public SystemError(XElement xml) { - get + if(xml.Descendants("ErrorAt").Count() > 0) { - return this.errorAtField; + _errorAt = DateTime.Parse(xml.Descendants("ErrorAt").First().Value); } - set + + _meldeTyp = xml.Descendants("MeldeType").First()?.Value; + _referenceId = xml.Descendants("ReferenceId").First()?.Value; + if(xml.Descendants("ProcessStatus").Count() > 0) { - this.errorAtField = value; + _processStatus = Int32.Parse(xml.Descendants("ProcessStatus").First().Value); } + + _importFileName = xml.Descendants("ImportFilename").First()?.Value; + if(xml.Descendants("ErrorCode").Count() > 0) + { + _errorCode = Int32.Parse(xml.Descendants("ErrorCode").First().Value); + } + _errorMessage = xml.Descendants("ErrorMessage").First()?.Value; + _errorDescription = xml.Descendants("ErrorDescription").First()?.Value; } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string Meldetype - { - get - { - return this.meldetypeField; - } - set - { - this.meldetypeField = value; - } - } + #region Properties - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ReferenceId - { - get - { - return this.referenceIdField; - } - set - { - this.referenceIdField = value; - } - } + public DateTime? ErrorAt { get { return _errorAt; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ProcessStatus - { - get - { - return this.processStatusField; - } - set - { - this.processStatusField = value; - } - } + public string MeldeTyp { get { return _meldeTyp; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string TransmissionRepeatedAt - { - get - { - return this.transmissionRepeatedAtField; - } - set - { - this.transmissionRepeatedAtField = value; - } - } + public string ReferenceId { get { return _referenceId; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ImportFilename - { - get - { - return this.importFilenameField; - } - set - { - this.importFilenameField = value; - } - } + public int ProcessStatus { get { return _processStatus; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string VisitId - { - get - { - return this.visitIdField; - } - set - { - this.visitIdField = value; - } - } + public string ImportFileName { get { return _importFileName; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ErrorCode - { - get - { - return this.errorCodeField; - } - set - { - this.errorCodeField = value; - } - } + public int ErrorCode { get { return _errorCode; } } - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ErrorMessage - { - get - { - return this.errorMessageField; - } - set - { - this.errorMessageField = value; - } - } + public string ErrorMessage { get { return _errorMessage; } } + + public string ErrorDescription { get { return _errorDescription; } } + + #endregion - /// - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string ErrorDescription - { - get - { - return this.errorDescriptionField; - } - set - { - this.errorDescriptionField = value; - } - } } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)] - public partial class NewDataSet - { - - private SystemError[] itemsField; - - /// - [System.Xml.Serialization.XmlElementAttribute("SystemError")] - public SystemError[] Items - { - get - { - return this.itemsField; - } - set - { - this.itemsField = value; - } - } - } -} \ No newline at end of file +} diff --git a/nsw/Source/bsmd.hisnord/app.config b/nsw/Source/bsmd.hisnord/app.config index 7b460d0b..19f2675e 100644 --- a/nsw/Source/bsmd.hisnord/app.config +++ b/nsw/Source/bsmd.hisnord/app.config @@ -25,6 +25,9 @@ E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool\ANSWERS_DONE + + E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool\ANSWERS_CORRUPT + \ No newline at end of file diff --git a/nsw/Source/bsmd.hisnord/nsw_response.cs b/nsw/Source/bsmd.hisnord/nsw_response.cs deleted file mode 100644 index 165c849e..00000000 --- a/nsw/Source/bsmd.hisnord/nsw_response.cs +++ /dev/null @@ -1,1124 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Dieser Code wurde von einem Tool generiert. -// Laufzeitversion:4.0.30319.42000 -// -// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn -// der Code erneut generiert wird. -// -//------------------------------------------------------------------------------ - -using System.Xml.Serialization; - -// -// Dieser Quellcode wurde automatisch generiert von xsd, Version=4.6.1055.0. -// - -namespace bsmd.hisnord -{ - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)] - public partial class dataset - { - - private object[] itemsField; - - /// - [System.Xml.Serialization.XmlElementAttribute("Envelope", typeof(Envelope), Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - [System.Xml.Serialization.XmlElementAttribute("InclusiveNamespaces", typeof(InclusiveNamespaces), Namespace = "http://www.w3.org/2001/10/xml-exc-c14n#")] - public object[] Items - { - get - { - return this.itemsField; - } - set - { - this.itemsField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://schemas.xmlsoap.org/soap/envelope/", IsNullable = false)] - public partial class Envelope - { - - private EnvelopeHeader[] headerField; - - private EnvelopeBody[] bodyField; - - /// - [System.Xml.Serialization.XmlElementAttribute("Header")] - public EnvelopeHeader[] Header - { - get - { - return this.headerField; - } - set - { - this.headerField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("Body")] - public EnvelopeBody[] Body - { - get - { - return this.bodyField; - } - set - { - this.bodyField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - public partial class EnvelopeHeader - { - - private Security securityField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "")] - public Security Security - { - get - { - return this.securityField; - } - set - { - this.securityField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "", IsNullable = false)] - public partial class Security - { - - private Signature signatureField; - - private string mustUnderstandField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public Signature Signature - { - get - { - return this.signatureField; - } - set - { - this.signatureField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - public string mustUnderstand - { - get - { - return this.mustUnderstandField; - } - set - { - this.mustUnderstandField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2000/09/xmldsig#", IsNullable = false)] - public partial class Signature - { - - private string signatureValueField; - - private SignatureSignedInfo[] signedInfoField; - - private SignatureKeyInfo[] keyInfoField; - - private string idField; - - /// - public string SignatureValue - { - get - { - return this.signatureValueField; - } - set - { - this.signatureValueField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("SignedInfo")] - public SignatureSignedInfo[] SignedInfo - { - get - { - return this.signedInfoField; - } - set - { - this.signedInfoField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("KeyInfo")] - public SignatureKeyInfo[] KeyInfo - { - get - { - return this.keyInfoField; - } - set - { - this.keyInfoField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Id - { - get - { - return this.idField; - } - set - { - this.idField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfo - { - - private SignatureSignedInfoCanonicalizationMethod[] canonicalizationMethodField; - - private SignatureSignedInfoSignatureMethod[] signatureMethodField; - - private SignatureSignedInfoReference[] referenceField; - - /// - [System.Xml.Serialization.XmlElementAttribute("CanonicalizationMethod")] - public SignatureSignedInfoCanonicalizationMethod[] CanonicalizationMethod - { - get - { - return this.canonicalizationMethodField; - } - set - { - this.canonicalizationMethodField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("SignatureMethod")] - public SignatureSignedInfoSignatureMethod[] SignatureMethod - { - get - { - return this.signatureMethodField; - } - set - { - this.signatureMethodField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("Reference")] - public SignatureSignedInfoReference[] Reference - { - get - { - return this.referenceField; - } - set - { - this.referenceField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfoCanonicalizationMethod - { - - private InclusiveNamespaces inclusiveNamespacesField; - - private string algorithmField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://www.w3.org/2001/10/xml-exc-c14n#")] - public InclusiveNamespaces InclusiveNamespaces - { - get - { - return this.inclusiveNamespacesField; - } - set - { - this.inclusiveNamespacesField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Algorithm - { - get - { - return this.algorithmField; - } - set - { - this.algorithmField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2001/10/xml-exc-c14n#")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2001/10/xml-exc-c14n#", IsNullable = false)] - public partial class InclusiveNamespaces - { - - private string prefixListField; - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string PrefixList - { - get - { - return this.prefixListField; - } - set - { - this.prefixListField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfoSignatureMethod - { - - private string algorithmField; - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Algorithm - { - get - { - return this.algorithmField; - } - set - { - this.algorithmField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfoReference - { - - private string digestValueField; - - private SignatureSignedInfoReferenceTransformsTransform[][] transformsField; - - private SignatureSignedInfoReferenceDigestMethod[] digestMethodField; - - private string uRIField; - - /// - public string DigestValue - { - get - { - return this.digestValueField; - } - set - { - this.digestValueField = value; - } - } - - /// - [System.Xml.Serialization.XmlArrayItemAttribute("Transform", typeof(SignatureSignedInfoReferenceTransformsTransform), IsNullable = false)] - public SignatureSignedInfoReferenceTransformsTransform[][] Transforms - { - get - { - return this.transformsField; - } - set - { - this.transformsField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("DigestMethod")] - public SignatureSignedInfoReferenceDigestMethod[] DigestMethod - { - get - { - return this.digestMethodField; - } - set - { - this.digestMethodField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string URI - { - get - { - return this.uRIField; - } - set - { - this.uRIField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfoReferenceTransformsTransform - { - - private InclusiveNamespaces inclusiveNamespacesField; - - private string algorithmField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://www.w3.org/2001/10/xml-exc-c14n#")] - public InclusiveNamespaces InclusiveNamespaces - { - get - { - return this.inclusiveNamespacesField; - } - set - { - this.inclusiveNamespacesField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Algorithm - { - get - { - return this.algorithmField; - } - set - { - this.algorithmField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureSignedInfoReferenceDigestMethod - { - - private string algorithmField; - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Algorithm - { - get - { - return this.algorithmField; - } - set - { - this.algorithmField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class SignatureKeyInfo - { - - private SecurityTokenReference securityTokenReferenceField; - - private string idField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "")] - public SecurityTokenReference SecurityTokenReference - { - get - { - return this.securityTokenReferenceField; - } - set - { - this.securityTokenReferenceField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute()] - public string Id - { - get - { - return this.idField; - } - set - { - this.idField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" + - "", IsNullable = false)] - public partial class SecurityTokenReference - { - - private X509DataX509IssuerSerial[] x509DataField; - - private string idField; - - /// - [System.Xml.Serialization.XmlArrayAttribute(Namespace = "http://www.w3.org/2000/09/xmldsig#")] - [System.Xml.Serialization.XmlArrayItemAttribute("X509IssuerSerial", IsNullable = false)] - public X509DataX509IssuerSerial[] X509Data - { - get - { - return this.x509DataField; - } - set - { - this.x509DataField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xs" + - "d")] - public string Id - { - get - { - return this.idField; - } - set - { - this.idField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - public partial class X509DataX509IssuerSerial - { - - private string x509IssuerNameField; - - private string x509SerialNumberField; - - /// - public string X509IssuerName - { - get - { - return this.x509IssuerNameField; - } - set - { - this.x509IssuerNameField = value; - } - } - - /// - public string X509SerialNumber - { - get - { - return this.x509SerialNumberField; - } - set - { - this.x509SerialNumberField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - public partial class EnvelopeBody - { - - private VisitIdResponse visitIdResponseField; - - private VisitIdRequest visitIdRequestField; - - private string idField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/visitIdResponse")] - public VisitIdResponse VisitIdResponse - { - get - { - return this.visitIdResponseField; - } - set - { - this.visitIdResponseField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/visitIdRequest")] - public VisitIdRequest VisitIdRequest - { - get - { - return this.visitIdRequestField; - } - set - { - this.visitIdRequestField = value; - } - } - - /// - [System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xs" + - "d")] - public string Id - { - get - { - return this.idField; - } - set - { - this.idField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdResponse")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://api.national-single-window.de/visitIdResponse", IsNullable = false)] - public partial class VisitIdResponse - { - - private string clientRequestIdField; - - private string receivedAtField; - - private string visitIdField; - - private string notificationIdField; - - private string statusField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/receipt")] - public string ClientRequestId - { - get - { - return this.clientRequestIdField; - } - set - { - this.clientRequestIdField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/receipt")] - public string ReceivedAt - { - get - { - return this.receivedAtField; - } - set - { - this.receivedAtField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/receipt")] - public string VisitId - { - get - { - return this.visitIdField; - } - set - { - this.visitIdField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/receipt")] - public string NotificationId - { - get - { - return this.notificationIdField; - } - set - { - this.notificationIdField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/receipt")] - public string Status - { - get - { - return this.statusField; - } - set - { - this.statusField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdRequest")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://api.national-single-window.de/visitIdRequest", IsNullable = false)] - public partial class VisitIdRequest - { - - private string clientRequestIdField; - - private VisitIdRequestNotification[] notificationField; - - /// - public string ClientRequestId - { - get - { - return this.clientRequestIdField; - } - set - { - this.clientRequestIdField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("Notification")] - public VisitIdRequestNotification[] Notification - { - get - { - return this.notificationField; - } - set - { - this.notificationField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdRequest")] - public partial class VisitIdRequestNotification - { - - private VisitIdRequestNotificationHeader[] headerField; - - private VisitIdRequestNotificationReportingParty[] reportingPartyField; - - private VisitIdRequestNotificationDetails[] detailsField; - - /// - [System.Xml.Serialization.XmlElementAttribute("Header")] - public VisitIdRequestNotificationHeader[] Header - { - get - { - return this.headerField; - } - set - { - this.headerField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("ReportingParty")] - public VisitIdRequestNotificationReportingParty[] ReportingParty - { - get - { - return this.reportingPartyField; - } - set - { - this.reportingPartyField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute("Details")] - public VisitIdRequestNotificationDetails[] Details - { - get - { - return this.detailsField; - } - set - { - this.detailsField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdRequest")] - public partial class VisitIdRequestNotificationHeader - { - - private string sentAtField; - - /// - public string SentAt - { - get - { - return this.sentAtField; - } - set - { - this.sentAtField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdRequest")] - public partial class VisitIdRequestNotificationReportingParty - { - - private string rPTypeField; - - private string rPNameField; - - private string rPCountryField; - - private string rPLastNameField; - - private string rPPhoneField; - - private string rPEMailField; - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPType - { - get - { - return this.rPTypeField; - } - set - { - this.rPTypeField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPName - { - get - { - return this.rPNameField; - } - set - { - this.rPNameField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPCountry - { - get - { - return this.rPCountryField; - } - set - { - this.rPCountryField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPLastName - { - get - { - return this.rPLastNameField; - } - set - { - this.rPLastNameField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPPhone - { - get - { - return this.rPPhoneField; - } - set - { - this.rPPhoneField = value; - } - } - - /// - [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://api.national-single-window.de/rp")] - public string RPEMail - { - get - { - return this.rPEMailField; - } - set - { - this.rPEMailField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://api.national-single-window.de/visitIdRequest")] - public partial class VisitIdRequestNotificationDetails - { - - private string iMONumberField; - - private string portOfCallField; - - private string eTAPortOfCallField; - - /// - public string IMONumber - { - get - { - return this.iMONumberField; - } - set - { - this.iMONumberField = value; - } - } - - /// - public string PortOfCall - { - get - { - return this.portOfCallField; - } - set - { - this.portOfCallField = value; - } - } - - /// - public string ETAPortOfCall - { - get - { - return this.eTAPortOfCallField; - } - set - { - this.eTAPortOfCallField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2000/09/xmldsig#")] - [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2000/09/xmldsig#", IsNullable = false)] - public partial class X509Data - { - - private X509DataX509IssuerSerial[] x509IssuerSerialField; - - /// - [System.Xml.Serialization.XmlElementAttribute("X509IssuerSerial")] - public X509DataX509IssuerSerial[] X509IssuerSerial - { - get - { - return this.x509IssuerSerialField; - } - set - { - this.x509IssuerSerialField = value; - } - } - } - -} \ No newline at end of file