UK ENS
This commit is contained in:
430
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/SuccessResponse-v2-0.Designer.vb
generated
Normal file
430
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/SuccessResponse-v2-0.Designer.vb
generated
Normal file
@@ -0,0 +1,430 @@
|
||||
'' ------------------------------------------------------------------------------
|
||||
'' <auto-generated>
|
||||
'' Generated by Xsd2Code++. Version 6.0.0.0. www.xsd2code.com
|
||||
'' {"TargetFramework":"Net48","NameSpace":"SuccessResponse_v2_0","Language":"VisualBasic","Properties":{},"XmlAttribute":{"Enabled":true},"ClassParams":{},"Serialization":{"ShouldSerialize":{},"AdditionalSerializers":{},"XmlSerializerEvent":{},"XmlOutput":{"Formating":true},"JsonOutput":{},"Enabled":true},"Miscellaneous":{}}
|
||||
'' </auto-generated>
|
||||
'' ------------------------------------------------------------------------------
|
||||
#Disable Warning
|
||||
Imports System
|
||||
Imports System.Diagnostics
|
||||
Imports System.Xml.Serialization
|
||||
Imports System.Runtime.Serialization
|
||||
Imports System.Collections
|
||||
Imports System.Xml.Schema
|
||||
Imports System.ComponentModel
|
||||
Imports System.Xml
|
||||
Imports System.IO
|
||||
Imports System.Text
|
||||
Imports System.Collections.Generic
|
||||
|
||||
Namespace SuccessResponse_v2_0
|
||||
|
||||
<System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
|
||||
System.Serializable,
|
||||
DebuggerStepThrough,
|
||||
DesignerCategoryAttribute("code"),
|
||||
XmlType(AnonymousType:=True, [Namespace]:="http://www.hmrc.gov.uk/successresponse/2"),
|
||||
XmlRoot([Namespace]:="http://www.hmrc.gov.uk/successresponse/2", IsNullable:=False)>
|
||||
Partial Public Class SuccessResponse
|
||||
|
||||
#Region "Private fields"
|
||||
Private _message As List(Of MessageType)
|
||||
|
||||
Private _acceptedTime As Date
|
||||
|
||||
Private _responseData As System.Xml.XmlElement
|
||||
|
||||
Private Shared _serializerXml As XmlSerializer
|
||||
#End Region
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New
|
||||
Me._message = New List(Of MessageType)()
|
||||
End Sub
|
||||
|
||||
<XmlElement("Message")>
|
||||
Public Property Message() As List(Of MessageType)
|
||||
Get
|
||||
Return Me._message
|
||||
End Get
|
||||
Set
|
||||
Me._message = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property AcceptedTime() As Date
|
||||
Get
|
||||
Return Me._acceptedTime
|
||||
End Get
|
||||
Set
|
||||
Me._acceptedTime = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property ResponseData() As System.Xml.XmlElement
|
||||
Get
|
||||
Return Me._responseData
|
||||
End Get
|
||||
Set
|
||||
Me._responseData = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared ReadOnly Property SerializerXml() As XmlSerializer
|
||||
Get
|
||||
If (_serializerXml Is Nothing) Then
|
||||
_serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(SuccessResponse))
|
||||
End If
|
||||
Return _serializerXml
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#Region "Serialize/Deserialize"
|
||||
''' <summary>
|
||||
''' Serialize SuccessResponse object
|
||||
''' </summary>
|
||||
''' <returns>XML value</returns>
|
||||
Public Overridable Function Serialize() As String
|
||||
Dim streamReader As StreamReader = Nothing
|
||||
Dim memoryStream As MemoryStream = Nothing
|
||||
Try
|
||||
memoryStream = New MemoryStream()
|
||||
Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
|
||||
xmlWriterSettings.Indent = True
|
||||
xmlWriterSettings.IndentChars = " "
|
||||
Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
|
||||
SerializerXml.Serialize(xmlWriter, Me)
|
||||
memoryStream.Seek(0, SeekOrigin.Begin)
|
||||
streamReader = New StreamReader(memoryStream)
|
||||
Return streamReader.ReadToEnd
|
||||
Finally
|
||||
If (Not (streamReader) Is Nothing) Then
|
||||
streamReader.Dispose()
|
||||
End If
|
||||
If (Not (memoryStream) Is Nothing) Then
|
||||
memoryStream.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes SuccessResponse object
|
||||
''' </summary>
|
||||
''' <param name="input">string to deserialize</param>
|
||||
''' <param name="obj">Output SuccessResponse object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As SuccessResponse, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, SuccessResponse)
|
||||
Try
|
||||
obj = Deserialize(input)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As SuccessResponse) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return Deserialize(input, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String) As SuccessResponse
|
||||
Dim stringReader As StringReader = Nothing
|
||||
Try
|
||||
stringReader = New StringReader(input)
|
||||
Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), SuccessResponse)
|
||||
Finally
|
||||
If (Not (stringReader) Is Nothing) Then
|
||||
stringReader.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal s As Stream) As SuccessResponse
|
||||
Return CType(SerializerXml.Deserialize(s), SuccessResponse)
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Serializes current SuccessResponse object into file
|
||||
''' </summary>
|
||||
''' <param name="fileName">full path of outupt xml file</param>
|
||||
''' <param name="exception">output Exception value if failed</param>
|
||||
''' <returns>true if can serialize and save into file; otherwise, false</returns>
|
||||
Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
Try
|
||||
SaveToFile(fileName)
|
||||
Return True
|
||||
Catch e As System.Exception
|
||||
exception = e
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
|
||||
Dim streamWriter As StreamWriter = Nothing
|
||||
Try
|
||||
Dim dataString As String = Serialize()
|
||||
Dim outputFile As FileInfo = New FileInfo(fileName)
|
||||
streamWriter = outputFile.CreateText
|
||||
streamWriter.WriteLine(dataString)
|
||||
streamWriter.Close()
|
||||
Finally
|
||||
If (Not (streamWriter) Is Nothing) Then
|
||||
streamWriter.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes xml markup from file into an SuccessResponse object
|
||||
''' </summary>
|
||||
''' <param name="fileName">File to load and deserialize</param>
|
||||
''' <param name="obj">Output SuccessResponse object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As SuccessResponse, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, SuccessResponse)
|
||||
Try
|
||||
obj = LoadFromFile(fileName)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As SuccessResponse) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return LoadFromFile(fileName, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As SuccessResponse
|
||||
Dim file As FileStream = Nothing
|
||||
Dim sr As StreamReader = Nothing
|
||||
Try
|
||||
file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
|
||||
sr = New StreamReader(file)
|
||||
Dim dataString As String = sr.ReadToEnd
|
||||
sr.Close()
|
||||
file.Close()
|
||||
Return Deserialize(dataString)
|
||||
Finally
|
||||
If (Not (file) Is Nothing) Then
|
||||
file.Dispose()
|
||||
End If
|
||||
If (Not (sr) Is Nothing) Then
|
||||
sr.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
End Class
|
||||
|
||||
<System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
|
||||
System.Serializable,
|
||||
DebuggerStepThrough,
|
||||
DesignerCategoryAttribute("code"),
|
||||
XmlType([Namespace]:="http://www.hmrc.gov.uk/successresponse/2")>
|
||||
Partial Public Class MessageType
|
||||
|
||||
#Region "Private fields"
|
||||
Private _code As String
|
||||
|
||||
Private _lang As String
|
||||
|
||||
Private _value As String
|
||||
|
||||
Private Shared _serializerXml As XmlSerializer
|
||||
#End Region
|
||||
|
||||
<XmlAttribute(DataType:="integer")>
|
||||
Public Property code() As String
|
||||
Get
|
||||
Return Me._code
|
||||
End Get
|
||||
Set
|
||||
Me._code = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Qualified, [Namespace]:="http://www.w3.org/XML/1998/namespace")>
|
||||
Public Property lang() As String
|
||||
Get
|
||||
Return Me._lang
|
||||
End Get
|
||||
Set
|
||||
Me._lang = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlText>
|
||||
Public Property Value() As String
|
||||
Get
|
||||
Return Me._value
|
||||
End Get
|
||||
Set
|
||||
Me._value = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared ReadOnly Property SerializerXml() As XmlSerializer
|
||||
Get
|
||||
If (_serializerXml Is Nothing) Then
|
||||
_serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(MessageType))
|
||||
End If
|
||||
Return _serializerXml
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#Region "Serialize/Deserialize"
|
||||
''' <summary>
|
||||
''' Serialize MessageType object
|
||||
''' </summary>
|
||||
''' <returns>XML value</returns>
|
||||
Public Overridable Function Serialize() As String
|
||||
Dim streamReader As StreamReader = Nothing
|
||||
Dim memoryStream As MemoryStream = Nothing
|
||||
Try
|
||||
memoryStream = New MemoryStream()
|
||||
Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
|
||||
xmlWriterSettings.Indent = True
|
||||
xmlWriterSettings.IndentChars = " "
|
||||
Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
|
||||
SerializerXml.Serialize(xmlWriter, Me)
|
||||
memoryStream.Seek(0, SeekOrigin.Begin)
|
||||
streamReader = New StreamReader(memoryStream)
|
||||
Return streamReader.ReadToEnd
|
||||
Finally
|
||||
If (Not (streamReader) Is Nothing) Then
|
||||
streamReader.Dispose()
|
||||
End If
|
||||
If (Not (memoryStream) Is Nothing) Then
|
||||
memoryStream.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes MessageType object
|
||||
''' </summary>
|
||||
''' <param name="input">string to deserialize</param>
|
||||
''' <param name="obj">Output MessageType object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As MessageType, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, MessageType)
|
||||
Try
|
||||
obj = Deserialize(input)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As MessageType) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return Deserialize(input, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String) As MessageType
|
||||
Dim stringReader As StringReader = Nothing
|
||||
Try
|
||||
stringReader = New StringReader(input)
|
||||
Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), MessageType)
|
||||
Finally
|
||||
If (Not (stringReader) Is Nothing) Then
|
||||
stringReader.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal s As Stream) As MessageType
|
||||
Return CType(SerializerXml.Deserialize(s), MessageType)
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Serializes current MessageType object into file
|
||||
''' </summary>
|
||||
''' <param name="fileName">full path of outupt xml file</param>
|
||||
''' <param name="exception">output Exception value if failed</param>
|
||||
''' <returns>true if can serialize and save into file; otherwise, false</returns>
|
||||
Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
Try
|
||||
SaveToFile(fileName)
|
||||
Return True
|
||||
Catch e As System.Exception
|
||||
exception = e
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
|
||||
Dim streamWriter As StreamWriter = Nothing
|
||||
Try
|
||||
Dim dataString As String = Serialize()
|
||||
Dim outputFile As FileInfo = New FileInfo(fileName)
|
||||
streamWriter = outputFile.CreateText
|
||||
streamWriter.WriteLine(dataString)
|
||||
streamWriter.Close()
|
||||
Finally
|
||||
If (Not (streamWriter) Is Nothing) Then
|
||||
streamWriter.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes xml markup from file into an MessageType object
|
||||
''' </summary>
|
||||
''' <param name="fileName">File to load and deserialize</param>
|
||||
''' <param name="obj">Output MessageType object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As MessageType, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, MessageType)
|
||||
Try
|
||||
obj = LoadFromFile(fileName)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As MessageType) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return LoadFromFile(fileName, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As MessageType
|
||||
Dim file As FileStream = Nothing
|
||||
Dim sr As StreamReader = Nothing
|
||||
Try
|
||||
file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
|
||||
sr = New StreamReader(file)
|
||||
Dim dataString As String = sr.ReadToEnd
|
||||
sr.Close()
|
||||
file.Close()
|
||||
Return Deserialize(dataString)
|
||||
Finally
|
||||
If (Not (file) Is Nothing) Then
|
||||
file.Dispose()
|
||||
End If
|
||||
If (Not (sr) Is Nothing) Then
|
||||
sr.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
End Class
|
||||
End Namespace
|
||||
#Enable Warning
|
||||
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema attributeFormDefault="unqualified"
|
||||
elementFormDefault="qualified" id="SuccessResponse"
|
||||
targetNamespace="http://www.hmrc.gov.uk/successresponse/2"
|
||||
version="2.0" xmlns="http://www.hmrc.gov.uk/successresponse/2"
|
||||
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
||||
<xsd:element name="SuccessResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element maxOccurs="unbounded" minOccurs="0"
|
||||
name="Message" type="MessageType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Service-specific advisory text messages (if
|
||||
any). It is possible for more than one
|
||||
message to be returned per response. Each
|
||||
message must be presented to the user.
|
||||
Service-specific message codes are carried
|
||||
in the "code" attribute (see
|
||||
Service-specific documentation for details). </xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element minOccurs="0" name="AcceptedTime" type="xsd:dateTime">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Placeholder for future use. </xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element minOccurs="0" name="ResponseData">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation> Container for
|
||||
service-specific response data if any (e.g.
|
||||
MSD returned payment reference). See
|
||||
additional service-specific response data
|
||||
Schema (if any) and documentation for
|
||||
details. </xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:any namespace="##other" processContents="lax"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="MessageType">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute name="code" type="xsd:integer" use="required"/>
|
||||
<xsd:attribute default="en-GB" ref="xml:lang" use="optional"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
667
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/errorresponse-v2.0.Designer.vb
generated
Normal file
667
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/errorresponse-v2.0.Designer.vb
generated
Normal file
@@ -0,0 +1,667 @@
|
||||
'' ------------------------------------------------------------------------------
|
||||
'' <auto-generated>
|
||||
'' Generated by Xsd2Code++. Version 6.0.0.0. www.xsd2code.com
|
||||
'' {"TargetFramework":"Net48","NameSpace":"errorresponse_v2_0","Language":"VisualBasic","Properties":{},"XmlAttribute":{"Enabled":true},"ClassParams":{},"Serialization":{"ShouldSerialize":{},"AdditionalSerializers":{},"XmlSerializerEvent":{},"XmlOutput":{"Formating":true},"JsonOutput":{},"Enabled":true},"Miscellaneous":{}}
|
||||
'' </auto-generated>
|
||||
'' ------------------------------------------------------------------------------
|
||||
#Disable Warning
|
||||
Imports System
|
||||
Imports System.Diagnostics
|
||||
Imports System.Xml.Serialization
|
||||
Imports System.Runtime.Serialization
|
||||
Imports System.Collections
|
||||
Imports System.Xml.Schema
|
||||
Imports System.ComponentModel
|
||||
Imports System.Xml
|
||||
Imports System.IO
|
||||
Imports System.Text
|
||||
Imports System.Collections.Generic
|
||||
|
||||
Namespace errorresponse_v2_0
|
||||
|
||||
<System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
|
||||
System.Serializable,
|
||||
DebuggerStepThrough,
|
||||
DesignerCategoryAttribute("code"),
|
||||
XmlType(AnonymousType:=True, [Namespace]:="http://www.govtalk.gov.uk/CM/errorresponse"),
|
||||
XmlRoot([Namespace]:="http://www.govtalk.gov.uk/CM/errorresponse", IsNullable:=False)>
|
||||
Partial Public Class ErrorResponse
|
||||
|
||||
#Region "Private fields"
|
||||
Private _application As Application
|
||||
|
||||
Private _error As List(Of ErrorResponseError)
|
||||
|
||||
Private _schemaVersion As String
|
||||
|
||||
Private Shared _serializerXml As XmlSerializer
|
||||
#End Region
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New
|
||||
Me._error = New List(Of ErrorResponseError)()
|
||||
Me._application = New Application()
|
||||
End Sub
|
||||
|
||||
Public Property Application() As Application
|
||||
Get
|
||||
Return Me._application
|
||||
End Get
|
||||
Set
|
||||
Me._application = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlElement("Error")>
|
||||
Public Property [Error]() As List(Of ErrorResponseError)
|
||||
Get
|
||||
Return Me._error
|
||||
End Get
|
||||
Set
|
||||
Me._error = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlAttribute>
|
||||
Public Property SchemaVersion() As String
|
||||
Get
|
||||
Return Me._schemaVersion
|
||||
End Get
|
||||
Set
|
||||
Me._schemaVersion = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared ReadOnly Property SerializerXml() As XmlSerializer
|
||||
Get
|
||||
If (_serializerXml Is Nothing) Then
|
||||
_serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(ErrorResponse))
|
||||
End If
|
||||
Return _serializerXml
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#Region "Serialize/Deserialize"
|
||||
''' <summary>
|
||||
''' Serialize ErrorResponse object
|
||||
''' </summary>
|
||||
''' <returns>XML value</returns>
|
||||
Public Overridable Function Serialize() As String
|
||||
Dim streamReader As StreamReader = Nothing
|
||||
Dim memoryStream As MemoryStream = Nothing
|
||||
Try
|
||||
memoryStream = New MemoryStream()
|
||||
Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
|
||||
xmlWriterSettings.Indent = True
|
||||
xmlWriterSettings.IndentChars = " "
|
||||
Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
|
||||
SerializerXml.Serialize(xmlWriter, Me)
|
||||
memoryStream.Seek(0, SeekOrigin.Begin)
|
||||
streamReader = New StreamReader(memoryStream)
|
||||
Return streamReader.ReadToEnd
|
||||
Finally
|
||||
If (Not (streamReader) Is Nothing) Then
|
||||
streamReader.Dispose()
|
||||
End If
|
||||
If (Not (memoryStream) Is Nothing) Then
|
||||
memoryStream.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes ErrorResponse object
|
||||
''' </summary>
|
||||
''' <param name="input">string to deserialize</param>
|
||||
''' <param name="obj">Output ErrorResponse object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ErrorResponse, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, ErrorResponse)
|
||||
Try
|
||||
obj = Deserialize(input)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ErrorResponse) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return Deserialize(input, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String) As ErrorResponse
|
||||
Dim stringReader As StringReader = Nothing
|
||||
Try
|
||||
stringReader = New StringReader(input)
|
||||
Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), ErrorResponse)
|
||||
Finally
|
||||
If (Not (stringReader) Is Nothing) Then
|
||||
stringReader.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal s As Stream) As ErrorResponse
|
||||
Return CType(SerializerXml.Deserialize(s), ErrorResponse)
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Serializes current ErrorResponse object into file
|
||||
''' </summary>
|
||||
''' <param name="fileName">full path of outupt xml file</param>
|
||||
''' <param name="exception">output Exception value if failed</param>
|
||||
''' <returns>true if can serialize and save into file; otherwise, false</returns>
|
||||
Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
Try
|
||||
SaveToFile(fileName)
|
||||
Return True
|
||||
Catch e As System.Exception
|
||||
exception = e
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
|
||||
Dim streamWriter As StreamWriter = Nothing
|
||||
Try
|
||||
Dim dataString As String = Serialize()
|
||||
Dim outputFile As FileInfo = New FileInfo(fileName)
|
||||
streamWriter = outputFile.CreateText
|
||||
streamWriter.WriteLine(dataString)
|
||||
streamWriter.Close()
|
||||
Finally
|
||||
If (Not (streamWriter) Is Nothing) Then
|
||||
streamWriter.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes xml markup from file into an ErrorResponse object
|
||||
''' </summary>
|
||||
''' <param name="fileName">File to load and deserialize</param>
|
||||
''' <param name="obj">Output ErrorResponse object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ErrorResponse, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, ErrorResponse)
|
||||
Try
|
||||
obj = LoadFromFile(fileName)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ErrorResponse) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return LoadFromFile(fileName, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As ErrorResponse
|
||||
Dim file As FileStream = Nothing
|
||||
Dim sr As StreamReader = Nothing
|
||||
Try
|
||||
file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
|
||||
sr = New StreamReader(file)
|
||||
Dim dataString As String = sr.ReadToEnd
|
||||
sr.Close()
|
||||
file.Close()
|
||||
Return Deserialize(dataString)
|
||||
Finally
|
||||
If (Not (file) Is Nothing) Then
|
||||
file.Dispose()
|
||||
End If
|
||||
If (Not (sr) Is Nothing) Then
|
||||
sr.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
End Class
|
||||
|
||||
<System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
|
||||
System.Serializable,
|
||||
DebuggerStepThrough,
|
||||
DesignerCategoryAttribute("code"),
|
||||
XmlType(AnonymousType:=True, [Namespace]:="http://www.govtalk.gov.uk/CM/errorresponse"),
|
||||
XmlRoot([Namespace]:="http://www.govtalk.gov.uk/CM/errorresponse", IsNullable:=False)>
|
||||
Partial Public Class Application
|
||||
|
||||
#Region "Private fields"
|
||||
Private _any As List(Of System.Xml.XmlElement)
|
||||
|
||||
Private _anyAttr As List(Of System.Xml.XmlAttribute)
|
||||
|
||||
Private Shared _serializerXml As XmlSerializer
|
||||
#End Region
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New
|
||||
Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
|
||||
Me._any = New List(Of System.Xml.XmlElement)()
|
||||
End Sub
|
||||
|
||||
<XmlAnyElementAttribute()>
|
||||
Public Property Any() As List(Of System.Xml.XmlElement)
|
||||
Get
|
||||
Return Me._any
|
||||
End Get
|
||||
Set
|
||||
Me._any = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlAnyAttributeAttribute()>
|
||||
Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
|
||||
Get
|
||||
Return Me._anyAttr
|
||||
End Get
|
||||
Set
|
||||
Me._anyAttr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared ReadOnly Property SerializerXml() As XmlSerializer
|
||||
Get
|
||||
If (_serializerXml Is Nothing) Then
|
||||
_serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(Application))
|
||||
End If
|
||||
Return _serializerXml
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#Region "Serialize/Deserialize"
|
||||
''' <summary>
|
||||
''' Serialize Application object
|
||||
''' </summary>
|
||||
''' <returns>XML value</returns>
|
||||
Public Overridable Function Serialize() As String
|
||||
Dim streamReader As StreamReader = Nothing
|
||||
Dim memoryStream As MemoryStream = Nothing
|
||||
Try
|
||||
memoryStream = New MemoryStream()
|
||||
Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
|
||||
xmlWriterSettings.Indent = True
|
||||
xmlWriterSettings.IndentChars = " "
|
||||
Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
|
||||
SerializerXml.Serialize(xmlWriter, Me)
|
||||
memoryStream.Seek(0, SeekOrigin.Begin)
|
||||
streamReader = New StreamReader(memoryStream)
|
||||
Return streamReader.ReadToEnd
|
||||
Finally
|
||||
If (Not (streamReader) Is Nothing) Then
|
||||
streamReader.Dispose()
|
||||
End If
|
||||
If (Not (memoryStream) Is Nothing) Then
|
||||
memoryStream.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes Application object
|
||||
''' </summary>
|
||||
''' <param name="input">string to deserialize</param>
|
||||
''' <param name="obj">Output Application object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As Application, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, Application)
|
||||
Try
|
||||
obj = Deserialize(input)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As Application) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return Deserialize(input, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String) As Application
|
||||
Dim stringReader As StringReader = Nothing
|
||||
Try
|
||||
stringReader = New StringReader(input)
|
||||
Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), Application)
|
||||
Finally
|
||||
If (Not (stringReader) Is Nothing) Then
|
||||
stringReader.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal s As Stream) As Application
|
||||
Return CType(SerializerXml.Deserialize(s), Application)
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Serializes current Application object into file
|
||||
''' </summary>
|
||||
''' <param name="fileName">full path of outupt xml file</param>
|
||||
''' <param name="exception">output Exception value if failed</param>
|
||||
''' <returns>true if can serialize and save into file; otherwise, false</returns>
|
||||
Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
Try
|
||||
SaveToFile(fileName)
|
||||
Return True
|
||||
Catch e As System.Exception
|
||||
exception = e
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
|
||||
Dim streamWriter As StreamWriter = Nothing
|
||||
Try
|
||||
Dim dataString As String = Serialize()
|
||||
Dim outputFile As FileInfo = New FileInfo(fileName)
|
||||
streamWriter = outputFile.CreateText
|
||||
streamWriter.WriteLine(dataString)
|
||||
streamWriter.Close()
|
||||
Finally
|
||||
If (Not (streamWriter) Is Nothing) Then
|
||||
streamWriter.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes xml markup from file into an Application object
|
||||
''' </summary>
|
||||
''' <param name="fileName">File to load and deserialize</param>
|
||||
''' <param name="obj">Output Application object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As Application, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, Application)
|
||||
Try
|
||||
obj = LoadFromFile(fileName)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As Application) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return LoadFromFile(fileName, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As Application
|
||||
Dim file As FileStream = Nothing
|
||||
Dim sr As StreamReader = Nothing
|
||||
Try
|
||||
file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
|
||||
sr = New StreamReader(file)
|
||||
Dim dataString As String = sr.ReadToEnd
|
||||
sr.Close()
|
||||
file.Close()
|
||||
Return Deserialize(dataString)
|
||||
Finally
|
||||
If (Not (file) Is Nothing) Then
|
||||
file.Dispose()
|
||||
End If
|
||||
If (Not (sr) Is Nothing) Then
|
||||
sr.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
End Class
|
||||
|
||||
<System.CodeDom.Compiler.GeneratedCode("System.Xml", "4.8.9037.0"),
|
||||
System.Serializable,
|
||||
DebuggerStepThrough,
|
||||
DesignerCategoryAttribute("code"),
|
||||
XmlType(AnonymousType:=True, [Namespace]:="http://www.govtalk.gov.uk/CM/errorresponse")>
|
||||
Partial Public Class ErrorResponseError
|
||||
|
||||
#Region "Private fields"
|
||||
Private _raisedBy As String
|
||||
|
||||
Private _number As String
|
||||
|
||||
Private _type As String
|
||||
|
||||
Private _text As List(Of String)
|
||||
|
||||
Private _location As String
|
||||
|
||||
Private _application As Application
|
||||
|
||||
Private Shared _serializerXml As XmlSerializer
|
||||
#End Region
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New
|
||||
Me._application = New Application()
|
||||
Me._text = New List(Of String)()
|
||||
End Sub
|
||||
|
||||
Public Property RaisedBy() As String
|
||||
Get
|
||||
Return Me._raisedBy
|
||||
End Get
|
||||
Set
|
||||
Me._raisedBy = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlElement(DataType:="integer")>
|
||||
Public Property Number() As String
|
||||
Get
|
||||
Return Me._number
|
||||
End Get
|
||||
Set
|
||||
Me._number = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Type() As String
|
||||
Get
|
||||
Return Me._type
|
||||
End Get
|
||||
Set
|
||||
Me._type = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<XmlElement("Text")>
|
||||
Public Property Text() As List(Of String)
|
||||
Get
|
||||
Return Me._text
|
||||
End Get
|
||||
Set
|
||||
Me._text = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Location() As String
|
||||
Get
|
||||
Return Me._location
|
||||
End Get
|
||||
Set
|
||||
Me._location = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Application() As Application
|
||||
Get
|
||||
Return Me._application
|
||||
End Get
|
||||
Set
|
||||
Me._application = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared ReadOnly Property SerializerXml() As XmlSerializer
|
||||
Get
|
||||
If (_serializerXml Is Nothing) Then
|
||||
_serializerXml = New XmlSerializerFactory().CreateSerializer(GetType(ErrorResponseError))
|
||||
End If
|
||||
Return _serializerXml
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#Region "Serialize/Deserialize"
|
||||
''' <summary>
|
||||
''' Serialize ErrorResponseError object
|
||||
''' </summary>
|
||||
''' <returns>XML value</returns>
|
||||
Public Overridable Function Serialize() As String
|
||||
Dim streamReader As StreamReader = Nothing
|
||||
Dim memoryStream As MemoryStream = Nothing
|
||||
Try
|
||||
memoryStream = New MemoryStream()
|
||||
Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
|
||||
xmlWriterSettings.Indent = True
|
||||
xmlWriterSettings.IndentChars = " "
|
||||
Dim xmlWriter As System.Xml.XmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings)
|
||||
SerializerXml.Serialize(xmlWriter, Me)
|
||||
memoryStream.Seek(0, SeekOrigin.Begin)
|
||||
streamReader = New StreamReader(memoryStream)
|
||||
Return streamReader.ReadToEnd
|
||||
Finally
|
||||
If (Not (streamReader) Is Nothing) Then
|
||||
streamReader.Dispose()
|
||||
End If
|
||||
If (Not (memoryStream) Is Nothing) Then
|
||||
memoryStream.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes ErrorResponseError object
|
||||
''' </summary>
|
||||
''' <param name="input">string to deserialize</param>
|
||||
''' <param name="obj">Output ErrorResponseError object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ErrorResponseError, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, ErrorResponseError)
|
||||
Try
|
||||
obj = Deserialize(input)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ErrorResponseError) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return Deserialize(input, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal input As String) As ErrorResponseError
|
||||
Dim stringReader As StringReader = Nothing
|
||||
Try
|
||||
stringReader = New StringReader(input)
|
||||
Return CType(SerializerXml.Deserialize(XmlReader.Create(stringReader)), ErrorResponseError)
|
||||
Finally
|
||||
If (Not (stringReader) Is Nothing) Then
|
||||
stringReader.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function Deserialize(ByVal s As Stream) As ErrorResponseError
|
||||
Return CType(SerializerXml.Deserialize(s), ErrorResponseError)
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Serializes current ErrorResponseError object into file
|
||||
''' </summary>
|
||||
''' <param name="fileName">full path of outupt xml file</param>
|
||||
''' <param name="exception">output Exception value if failed</param>
|
||||
''' <returns>true if can serialize and save into file; otherwise, false</returns>
|
||||
Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
Try
|
||||
SaveToFile(fileName)
|
||||
Return True
|
||||
Catch e As System.Exception
|
||||
exception = e
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
|
||||
Dim streamWriter As StreamWriter = Nothing
|
||||
Try
|
||||
Dim dataString As String = Serialize()
|
||||
Dim outputFile As FileInfo = New FileInfo(fileName)
|
||||
streamWriter = outputFile.CreateText
|
||||
streamWriter.WriteLine(dataString)
|
||||
streamWriter.Close()
|
||||
Finally
|
||||
If (Not (streamWriter) Is Nothing) Then
|
||||
streamWriter.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Deserializes xml markup from file into an ErrorResponseError object
|
||||
''' </summary>
|
||||
''' <param name="fileName">File to load and deserialize</param>
|
||||
''' <param name="obj">Output ErrorResponseError object</param>
|
||||
''' <param name="exception">output Exception value if deserialize failed</param>
|
||||
''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ErrorResponseError, ByRef exception As System.Exception) As Boolean
|
||||
exception = Nothing
|
||||
obj = CType(Nothing, ErrorResponseError)
|
||||
Try
|
||||
obj = LoadFromFile(fileName)
|
||||
Return True
|
||||
Catch ex As System.Exception
|
||||
exception = ex
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ErrorResponseError) As Boolean
|
||||
Dim exception As System.Exception = Nothing
|
||||
Return LoadFromFile(fileName, obj, exception)
|
||||
End Function
|
||||
|
||||
Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As ErrorResponseError
|
||||
Dim file As FileStream = Nothing
|
||||
Dim sr As StreamReader = Nothing
|
||||
Try
|
||||
file = New FileStream(fileName, FileMode.Open, FileAccess.Read)
|
||||
sr = New StreamReader(file)
|
||||
Dim dataString As String = sr.ReadToEnd
|
||||
sr.Close()
|
||||
file.Close()
|
||||
Return Deserialize(dataString)
|
||||
Finally
|
||||
If (Not (file) Is Nothing) Then
|
||||
file.Dispose()
|
||||
End If
|
||||
If (Not (sr) Is Nothing) Then
|
||||
sr.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
End Class
|
||||
End Namespace
|
||||
#Enable Warning
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema attributeFormDefault="unqualified"
|
||||
elementFormDefault="qualified" id="Error-Response"
|
||||
targetNamespace="http://www.govtalk.gov.uk/CM/errorresponse"
|
||||
version="2.0" xmlns:err="http://www.govtalk.gov.uk/CM/errorresponse"
|
||||
xmlns:gt="http://www.govtalk.gov.uk/CM/core" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This schema is used for errors returned by
|
||||
business systems. In these circumstances, the header
|
||||
contains a single Error element of type "business"
|
||||
and the Body contains further information.</xsd:documentation>
|
||||
<xsd:appinfo>
|
||||
<gt:KeyWords>business, error, response</gt:KeyWords>
|
||||
</xsd:appinfo>
|
||||
</xsd:annotation>
|
||||
<xsd:element name="ErrorResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element minOccurs="0" ref="err:Application"/>
|
||||
<xsd:element maxOccurs="unbounded" name="Error">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="RaisedBy" type="xsd:string"/>
|
||||
<xsd:element minOccurs="0" name="Number" type="xsd:integer"/>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element maxOccurs="unbounded"
|
||||
minOccurs="0" name="Text" type="xsd:string"/>
|
||||
<xsd:element minOccurs="0" name="Location" type="xsd:string"/>
|
||||
<xsd:element minOccurs="0" ref="err:Application"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="SchemaVersion" use="required"/>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="Application">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:any maxOccurs="unbounded" minOccurs="0"
|
||||
namespace="##any" processContents="lax"/>
|
||||
</xsd:sequence>
|
||||
<xsd:anyAttribute namespace="##any"/>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
286
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/xml.xsd
Normal file
286
VERAG_PROG_ALLGEMEIN/Schnittstellen/HMRC/Response/xml.xsd
Normal file
@@ -0,0 +1,286 @@
|
||||
|
||||
<?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
|
||||
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns ="http://www.w3.org/1999/xhtml"
|
||||
xml:lang="en">
|
||||
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
<h1>About the XML namespace</h1>
|
||||
|
||||
<div class="bodytext">
|
||||
<p>
|
||||
This schema document describes the XML namespace, in a form
|
||||
suitable for import by other schema documents.
|
||||
</p>
|
||||
<p>
|
||||
See <a href="http://www.w3.org/XML/1998/namespace.html">
|
||||
http://www.w3.org/XML/1998/namespace.html</a> and
|
||||
<a href="http://www.w3.org/TR/REC-xml">
|
||||
http://www.w3.org/TR/REC-xml</a> for information
|
||||
about this namespace.
|
||||
</p>
|
||||
<p>
|
||||
Note that local names in this namespace are intended to be
|
||||
defined only by the World Wide Web Consortium or its subgroups.
|
||||
The names currently defined in this namespace are listed below.
|
||||
They should not be used with conflicting semantics by any Working
|
||||
Group, specification, or document instance.
|
||||
</p>
|
||||
<p>
|
||||
See further below in this document for more information about <a
|
||||
href="#usage">how to refer to this schema document from your own
|
||||
XSD schema documents</a> and about <a href="#nsversioning">the
|
||||
namespace-versioning policy governing this schema document</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:attribute name="lang">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
|
||||
<h3>lang (as an attribute name)</h3>
|
||||
<p>
|
||||
denotes an attribute whose value
|
||||
is a language code for the natural language of the content of
|
||||
any element; its value is inherited. This name is reserved
|
||||
by virtue of its definition in the XML specification.</p>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<h4>Notes</h4>
|
||||
<p>
|
||||
Attempting to install the relevant ISO 2- and 3-letter
|
||||
codes as the enumerated possible values is probably never
|
||||
going to be a realistic possibility.
|
||||
</p>
|
||||
<p>
|
||||
See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
|
||||
http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
|
||||
and the IANA language subtag registry at
|
||||
<a href="http://www.iana.org/assignments/language-subtag-registry">
|
||||
http://www.iana.org/assignments/language-subtag-registry</a>
|
||||
for further information.
|
||||
</p>
|
||||
<p>
|
||||
The union allows for the 'un-declaration' of xml:lang with
|
||||
the empty string.
|
||||
</p>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:union memberTypes="xs:language">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value=""/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:union>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="space">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
|
||||
<h3>space (as an attribute name)</h3>
|
||||
<p>
|
||||
denotes an attribute whose
|
||||
value is a keyword indicating what whitespace processing
|
||||
discipline is intended for the content of the element; its
|
||||
value is inherited. This name is reserved by virtue of its
|
||||
definition in the XML specification.</p>
|
||||
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:NCName">
|
||||
<xs:enumeration value="default"/>
|
||||
<xs:enumeration value="preserve"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
|
||||
<h3>base (as an attribute name)</h3>
|
||||
<p>
|
||||
denotes an attribute whose value
|
||||
provides a URI to be used as the base for interpreting any
|
||||
relative URIs in the scope of the element on which it
|
||||
appears; its value is inherited. This name is reserved
|
||||
by virtue of its definition in the XML Base specification.</p>
|
||||
|
||||
<p>
|
||||
See <a
|
||||
href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
|
||||
for information about this attribute.
|
||||
</p>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="id" type="xs:ID">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
|
||||
<h3>id (as an attribute name)</h3>
|
||||
<p>
|
||||
denotes an attribute whose value
|
||||
should be interpreted as if declared to be of type ID.
|
||||
This name is reserved by virtue of its definition in the
|
||||
xml:id specification.</p>
|
||||
|
||||
<p>
|
||||
See <a
|
||||
href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
|
||||
for information about this attribute.
|
||||
</p>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attributeGroup name="specialAttrs">
|
||||
<xs:attribute ref="xml:base"/>
|
||||
<xs:attribute ref="xml:lang"/>
|
||||
<xs:attribute ref="xml:space"/>
|
||||
<xs:attribute ref="xml:id"/>
|
||||
</xs:attributeGroup>
|
||||
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div>
|
||||
|
||||
<h3>Father (in any context at all)</h3>
|
||||
|
||||
<div class="bodytext">
|
||||
<p>
|
||||
denotes Jon Bosak, the chair of
|
||||
the original XML Working Group. This name is reserved by
|
||||
the following decision of the W3C XML Plenary and
|
||||
XML Coordination groups:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
In appreciation for his vision, leadership and
|
||||
dedication the W3C XML Plenary on this 10th day of
|
||||
February, 2000, reserves for Jon Bosak in perpetuity
|
||||
the XML name "xml:Father".
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div xml:id="usage" id="usage">
|
||||
<h2><a name="usage">About this schema document</a></h2>
|
||||
|
||||
<div class="bodytext">
|
||||
<p>
|
||||
This schema defines attributes and an attribute group suitable
|
||||
for use by schemas wishing to allow <code>xml:base</code>,
|
||||
<code>xml:lang</code>, <code>xml:space</code> or
|
||||
<code>xml:id</code> attributes on elements they define.
|
||||
</p>
|
||||
<p>
|
||||
To enable this, such a schema must import this schema for
|
||||
the XML namespace, e.g. as follows:
|
||||
</p>
|
||||
<pre>
|
||||
<schema . . .>
|
||||
. . .
|
||||
<import namespace="http://www.w3.org/XML/1998/namespace"
|
||||
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
|
||||
</pre>
|
||||
<p>
|
||||
or
|
||||
</p>
|
||||
<pre>
|
||||
<import namespace="http://www.w3.org/XML/1998/namespace"
|
||||
schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
|
||||
</pre>
|
||||
<p>
|
||||
Subsequently, qualified reference to any of the attributes or the
|
||||
group defined below will have the desired effect, e.g.
|
||||
</p>
|
||||
<pre>
|
||||
<type . . .>
|
||||
. . .
|
||||
<attributeGroup ref="xml:specialAttrs"/>
|
||||
</pre>
|
||||
<p>
|
||||
will define a type which will schema-validate an instance element
|
||||
with any of those attributes.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
<div id="nsversioning" xml:id="nsversioning">
|
||||
<h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
|
||||
<div class="bodytext">
|
||||
<p>
|
||||
In keeping with the XML Schema WG's standard versioning
|
||||
policy, this schema document will persist at
|
||||
<a href="http://www.w3.org/2009/01/xml.xsd">
|
||||
http://www.w3.org/2009/01/xml.xsd</a>.
|
||||
</p>
|
||||
<p>
|
||||
At the date of issue it can also be found at
|
||||
<a href="http://www.w3.org/2001/xml.xsd">
|
||||
http://www.w3.org/2001/xml.xsd</a>.
|
||||
</p>
|
||||
<p>
|
||||
The schema document at that URI may however change in the future,
|
||||
in order to remain compatible with the latest version of XML
|
||||
Schema itself, or with the XML namespace itself. In other words,
|
||||
if the XML Schema or XML namespaces change, the version of this
|
||||
document at <a href="http://www.w3.org/2001/xml.xsd">
|
||||
http://www.w3.org/2001/xml.xsd
|
||||
</a>
|
||||
will change accordingly; the version at
|
||||
<a href="http://www.w3.org/2009/01/xml.xsd">
|
||||
http://www.w3.org/2009/01/xml.xsd
|
||||
</a>
|
||||
will not change.
|
||||
</p>
|
||||
<p>
|
||||
Previous dated (and unchanging) versions of this schema
|
||||
document are at:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="http://www.w3.org/2009/01/xml.xsd">
|
||||
http://www.w3.org/2009/01/xml.xsd</a></li>
|
||||
<li><a href="http://www.w3.org/2007/08/xml.xsd">
|
||||
http://www.w3.org/2007/08/xml.xsd</a></li>
|
||||
<li><a href="http://www.w3.org/2004/10/xml.xsd">
|
||||
http://www.w3.org/2004/10/xml.xsd</a></li>
|
||||
<li><a href="http://www.w3.org/2001/03/xml.xsd">
|
||||
http://www.w3.org/2001/03/xml.xsd</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,318 @@
|
||||
|
||||
<!DOCTYPE schema
|
||||
PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
|
||||
[
|
||||
<!ATTLIST schema
|
||||
xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
|
||||
<!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
|
||||
<!ENTITY % p ''>
|
||||
<!ENTITY % s ''>
|
||||
]>
|
||||
|
||||
<!-- Schema for XML Signatures
|
||||
http://www.w3.org/2000/09/xmldsig#
|
||||
$Revision: 1.2 $ on $Date: 2013-04-16 12:48:49 $ by $Author: denis $
|
||||
|
||||
Copyright 2001 The Internet Society and W3C (Massachusetts Institute
|
||||
of Technology, Institut National de Recherche en Informatique et en
|
||||
Automatique, Keio University). All Rights Reserved.
|
||||
http://www.w3.org/Consortium/Legal/
|
||||
|
||||
This document is governed by the W3C Software License [1] as described
|
||||
in the FAQ [2].
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
|
||||
[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
|
||||
-->
|
||||
|
||||
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
||||
targetNamespace="http://www.w3.org/2000/09/xmldsig#"
|
||||
version="0.1" elementFormDefault="qualified">
|
||||
|
||||
<!-- Basic Types Defined for Signatures -->
|
||||
|
||||
<simpleType name="CryptoBinary">
|
||||
<restriction base="base64Binary">
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
<!-- Start Signature -->
|
||||
|
||||
<element name="Signature" type="ds:SignatureType"/>
|
||||
<complexType name="SignatureType">
|
||||
<sequence>
|
||||
<element ref="ds:SignedInfo"/>
|
||||
<element ref="ds:SignatureValue"/>
|
||||
<element ref="ds:KeyInfo" minOccurs="0"/>
|
||||
<element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="SignatureValue" type="ds:SignatureValueType"/>
|
||||
<complexType name="SignatureValueType">
|
||||
<simpleContent>
|
||||
<extension base="base64Binary">
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</extension>
|
||||
</simpleContent>
|
||||
</complexType>
|
||||
|
||||
<!-- Start SignedInfo -->
|
||||
|
||||
<element name="SignedInfo" type="ds:SignedInfoType"/>
|
||||
<complexType name="SignedInfoType">
|
||||
<sequence>
|
||||
<element ref="ds:CanonicalizationMethod"/>
|
||||
<element ref="ds:SignatureMethod"/>
|
||||
<element ref="ds:Reference" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
|
||||
<complexType name="CanonicalizationMethodType" mixed="true">
|
||||
<sequence>
|
||||
<any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<!-- (0,unbounded) elements from (1,1) namespace -->
|
||||
</sequence>
|
||||
<attribute name="Algorithm" type="anyURI" use="required"/>
|
||||
</complexType>
|
||||
|
||||
<element name="SignatureMethod" type="ds:SignatureMethodType"/>
|
||||
<complexType name="SignatureMethodType" mixed="true">
|
||||
<sequence>
|
||||
<element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
|
||||
<any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<!-- (0,unbounded) elements from (1,1) external namespace -->
|
||||
</sequence>
|
||||
<attribute name="Algorithm" type="anyURI" use="required"/>
|
||||
</complexType>
|
||||
|
||||
<!-- Start Reference -->
|
||||
|
||||
<element name="Reference" type="ds:ReferenceType"/>
|
||||
<complexType name="ReferenceType">
|
||||
<sequence>
|
||||
<element ref="ds:Transforms" minOccurs="0"/>
|
||||
<element ref="ds:DigestMethod"/>
|
||||
<element ref="ds:DigestValue"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
<attribute name="URI" type="anyURI" use="optional"/>
|
||||
<attribute name="Type" type="anyURI" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="Transforms" type="ds:TransformsType"/>
|
||||
<complexType name="TransformsType">
|
||||
<sequence>
|
||||
<element ref="ds:Transform" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<element name="Transform" type="ds:TransformType"/>
|
||||
<complexType name="TransformType" mixed="true">
|
||||
<choice minOccurs="0" maxOccurs="unbounded">
|
||||
<any namespace="##other" processContents="lax"/>
|
||||
<!-- (1,1) elements from (0,unbounded) namespaces -->
|
||||
<element name="XPath" type="string"/>
|
||||
</choice>
|
||||
<attribute name="Algorithm" type="anyURI" use="required"/>
|
||||
</complexType>
|
||||
|
||||
<!-- End Reference -->
|
||||
|
||||
<element name="DigestMethod" type="ds:DigestMethodType"/>
|
||||
<complexType name="DigestMethodType" mixed="true">
|
||||
<sequence>
|
||||
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="Algorithm" type="anyURI" use="required"/>
|
||||
</complexType>
|
||||
|
||||
<element name="DigestValue" type="ds:DigestValueType"/>
|
||||
<simpleType name="DigestValueType">
|
||||
<restriction base="base64Binary"/>
|
||||
</simpleType>
|
||||
|
||||
<!-- End SignedInfo -->
|
||||
|
||||
<!-- Start KeyInfo -->
|
||||
|
||||
<element name="KeyInfo" type="ds:KeyInfoType"/>
|
||||
<complexType name="KeyInfoType" mixed="true">
|
||||
<choice maxOccurs="unbounded">
|
||||
<element ref="ds:KeyName"/>
|
||||
<element ref="ds:KeyValue"/>
|
||||
<element ref="ds:RetrievalMethod"/>
|
||||
<element ref="ds:X509Data"/>
|
||||
<element ref="ds:PGPData"/>
|
||||
<element ref="ds:SPKIData"/>
|
||||
<element ref="ds:MgmtData"/>
|
||||
<any processContents="lax" namespace="##other"/>
|
||||
<!-- (1,1) elements from (0,unbounded) namespaces -->
|
||||
</choice>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="KeyName" type="string"/>
|
||||
<element name="MgmtData" type="string"/>
|
||||
|
||||
<element name="KeyValue" type="ds:KeyValueType"/>
|
||||
<complexType name="KeyValueType" mixed="true">
|
||||
<choice>
|
||||
<element ref="ds:DSAKeyValue"/>
|
||||
<element ref="ds:RSAKeyValue"/>
|
||||
<any namespace="##other" processContents="lax"/>
|
||||
</choice>
|
||||
</complexType>
|
||||
|
||||
<element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
|
||||
<complexType name="RetrievalMethodType">
|
||||
<sequence>
|
||||
<element ref="ds:Transforms" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="URI" type="anyURI"/>
|
||||
<attribute name="Type" type="anyURI" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<!-- Start X509Data -->
|
||||
|
||||
<element name="X509Data" type="ds:X509DataType"/>
|
||||
<complexType name="X509DataType">
|
||||
<sequence maxOccurs="unbounded">
|
||||
<choice>
|
||||
<element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
|
||||
<element name="X509SKI" type="base64Binary"/>
|
||||
<element name="X509SubjectName" type="string"/>
|
||||
<element name="X509Certificate" type="base64Binary"/>
|
||||
<element name="X509CRL" type="base64Binary"/>
|
||||
<any namespace="##other" processContents="lax"/>
|
||||
</choice>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<complexType name="X509IssuerSerialType">
|
||||
<sequence>
|
||||
<element name="X509IssuerName" type="string"/>
|
||||
<element name="X509SerialNumber" type="integer"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<!-- End X509Data -->
|
||||
|
||||
<!-- Begin PGPData -->
|
||||
|
||||
<element name="PGPData" type="ds:PGPDataType"/>
|
||||
<complexType name="PGPDataType">
|
||||
<choice>
|
||||
<sequence>
|
||||
<element name="PGPKeyID" type="base64Binary"/>
|
||||
<element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
|
||||
<any namespace="##other" processContents="lax" minOccurs="0"
|
||||
maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<sequence>
|
||||
<element name="PGPKeyPacket" type="base64Binary"/>
|
||||
<any namespace="##other" processContents="lax" minOccurs="0"
|
||||
maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</choice>
|
||||
</complexType>
|
||||
|
||||
<!-- End PGPData -->
|
||||
|
||||
<!-- Begin SPKIData -->
|
||||
|
||||
<element name="SPKIData" type="ds:SPKIDataType"/>
|
||||
<complexType name="SPKIDataType">
|
||||
<sequence maxOccurs="unbounded">
|
||||
<element name="SPKISexp" type="base64Binary"/>
|
||||
<any namespace="##other" processContents="lax" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<!-- End SPKIData -->
|
||||
|
||||
<!-- End KeyInfo -->
|
||||
|
||||
<!-- Start Object (Manifest, SignatureProperty) -->
|
||||
|
||||
<element name="Object" type="ds:ObjectType"/>
|
||||
<complexType name="ObjectType" mixed="true">
|
||||
<sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<any namespace="##any" processContents="lax"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
<attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
|
||||
<attribute name="Encoding" type="anyURI" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="Manifest" type="ds:ManifestType"/>
|
||||
<complexType name="ManifestType">
|
||||
<sequence>
|
||||
<element ref="ds:Reference" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
|
||||
<complexType name="SignaturePropertiesType">
|
||||
<sequence>
|
||||
<element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<element name="SignatureProperty" type="ds:SignaturePropertyType"/>
|
||||
<complexType name="SignaturePropertyType" mixed="true">
|
||||
<choice maxOccurs="unbounded">
|
||||
<any namespace="##other" processContents="lax"/>
|
||||
<!-- (1,1) elements from (1,unbounded) namespaces -->
|
||||
</choice>
|
||||
<attribute name="Target" type="anyURI" use="required"/>
|
||||
<attribute name="Id" type="ID" use="optional"/>
|
||||
</complexType>
|
||||
|
||||
<!-- End Object (Manifest, SignatureProperty) -->
|
||||
|
||||
<!-- Start Algorithm Parameters -->
|
||||
|
||||
<simpleType name="HMACOutputLengthType">
|
||||
<restriction base="integer"/>
|
||||
</simpleType>
|
||||
|
||||
<!-- Start KeyValue Element-types -->
|
||||
|
||||
<element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
|
||||
<complexType name="DSAKeyValueType">
|
||||
<sequence>
|
||||
<sequence minOccurs="0">
|
||||
<element name="P" type="ds:CryptoBinary"/>
|
||||
<element name="Q" type="ds:CryptoBinary"/>
|
||||
</sequence>
|
||||
<element name="G" type="ds:CryptoBinary" minOccurs="0"/>
|
||||
<element name="Y" type="ds:CryptoBinary"/>
|
||||
<element name="J" type="ds:CryptoBinary" minOccurs="0"/>
|
||||
<sequence minOccurs="0">
|
||||
<element name="Seed" type="ds:CryptoBinary"/>
|
||||
<element name="PgenCounter" type="ds:CryptoBinary"/>
|
||||
</sequence>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
|
||||
<complexType name="RSAKeyValueType">
|
||||
<sequence>
|
||||
<element name="Modulus" type="ds:CryptoBinary"/>
|
||||
<element name="Exponent" type="ds:CryptoBinary"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<!-- End KeyValue Element-types -->
|
||||
|
||||
<!-- End Signature -->
|
||||
|
||||
</schema>
|
||||
Reference in New Issue
Block a user