pristupnatocka-tutorial-v2 / csharp / pristupnatocka-tutorial-csharp / PristupnaTockaSoapClient / ServiceReference / Reference.cs
Reference.cs
Raw
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ServiceReference
{
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class FaultDetail
    {
        
        private string codeField;
        
        private string messageField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public string code
        {
            get
            {
                return this.codeField;
            }
            set
            {
                this.codeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
        public string message
        {
            get
            {
                return this.messageField;
            }
            set
            {
                this.messageField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class PartInfo
    {
        
        private Property[] partPropertiesField;
        
        private string hrefField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
        public Property[] PartProperties
        {
            get
            {
                return this.partPropertiesField;
            }
            set
            {
                this.partPropertiesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string href
        {
            get
            {
                return this.hrefField;
            }
            set
            {
                this.hrefField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class Property
    {
        
        private string nameField;
        
        private string typeField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class Service
    {
        
        private string typeField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class AgreementRef
    {
        
        private string typeField;
        
        private string pmodeField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string pmode
        {
            get
            {
                return this.pmodeField;
            }
            set
            {
                this.pmodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class CollaborationInfo
    {
        
        private AgreementRef agreementRefField;
        
        private Service serviceField;
        
        private string actionField;
        
        private string conversationIdField;
        
        /// <remarks/>
        public AgreementRef AgreementRef
        {
            get
            {
                return this.agreementRefField;
            }
            set
            {
                this.agreementRefField = value;
            }
        }
        
        /// <remarks/>
        public Service Service
        {
            get
            {
                return this.serviceField;
            }
            set
            {
                this.serviceField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="token")]
        public string Action
        {
            get
            {
                return this.actionField;
            }
            set
            {
                this.actionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="token")]
        public string ConversationId
        {
            get
            {
                return this.conversationIdField;
            }
            set
            {
                this.conversationIdField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class To
    {
        
        private PartyId partyIdField;
        
        private string roleField;
        
        /// <remarks/>
        public PartyId PartyId
        {
            get
            {
                return this.partyIdField;
            }
            set
            {
                this.partyIdField = value;
            }
        }
        
        /// <remarks/>
        public string Role
        {
            get
            {
                return this.roleField;
            }
            set
            {
                this.roleField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class PartyId
    {
        
        private string typeField;
        
        private string valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string type
        {
            get
            {
                return this.typeField;
            }
            set
            {
                this.typeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string Value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class From
    {
        
        private PartyId partyIdField;
        
        private string roleField;
        
        /// <remarks/>
        public PartyId PartyId
        {
            get
            {
                return this.partyIdField;
            }
            set
            {
                this.partyIdField = value;
            }
        }
        
        /// <remarks/>
        public string Role
        {
            get
            {
                return this.roleField;
            }
            set
            {
                this.roleField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class PartyInfo
    {
        
        private From fromField;
        
        private To toField;
        
        /// <remarks/>
        public From From
        {
            get
            {
                return this.fromField;
            }
            set
            {
                this.fromField = value;
            }
        }
        
        /// <remarks/>
        public To To
        {
            get
            {
                return this.toField;
            }
            set
            {
                this.toField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class MessageInfo
    {
        
        private System.DateTime timestampField;
        
        private bool timestampFieldSpecified;
        
        private string messageIdField;
        
        private string refToMessageIdField;
        
        /// <remarks/>
        public System.DateTime Timestamp
        {
            get
            {
                return this.timestampField;
            }
            set
            {
                this.timestampField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool TimestampSpecified
        {
            get
            {
                return this.timestampFieldSpecified;
            }
            set
            {
                this.timestampFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public string MessageId
        {
            get
            {
                return this.messageIdField;
            }
            set
            {
                this.messageIdField = value;
            }
        }
        
        /// <remarks/>
        public string RefToMessageId
        {
            get
            {
                return this.refToMessageIdField;
            }
            set
            {
                this.refToMessageIdField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class UserMessage
    {
        
        private MessageInfo messageInfoField;
        
        private PartyInfo partyInfoField;
        
        private CollaborationInfo collaborationInfoField;
        
        private Property[] messagePropertiesField;
        
        private PartInfo[] payloadInfoField;
        
        private string mpcField;
        
        /// <remarks/>
        public MessageInfo MessageInfo
        {
            get
            {
                return this.messageInfoField;
            }
            set
            {
                this.messageInfoField = value;
            }
        }
        
        /// <remarks/>
        public PartyInfo PartyInfo
        {
            get
            {
                return this.partyInfoField;
            }
            set
            {
                this.partyInfoField = value;
            }
        }
        
        /// <remarks/>
        public CollaborationInfo CollaborationInfo
        {
            get
            {
                return this.collaborationInfoField;
            }
            set
            {
                this.collaborationInfoField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
        public Property[] MessageProperties
        {
            get
            {
                return this.messagePropertiesField;
            }
            set
            {
                this.messagePropertiesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
        public PartInfo[] PayloadInfo
        {
            get
            {
                return this.payloadInfoField;
            }
            set
            {
                this.payloadInfoField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="anyURI")]
        public string mpc
        {
            get
            {
                return this.mpcField;
            }
            set
            {
                this.mpcField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
    public partial class Messaging
    {
        
        private UserMessage userMessageField;
        
        private bool mustUnderstandField;
        
        private bool mustUnderstandFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Order=0)]
        public UserMessage UserMessage
        {
            get
            {
                return this.userMessageField;
            }
            set
            {
                this.userMessageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public bool mustUnderstand
        {
            get
            {
                return this.mustUnderstandField;
            }
            set
            {
                this.mustUnderstandField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool mustUnderstandSpecified
        {
            get
            {
                return this.mustUnderstandFieldSpecified;
            }
            set
            {
                this.mustUnderstandFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://org.ecodex.backend/1_1/")]
    public partial class errorResultImpl
    {
        
        private errorCode errorCodeField;
        
        private bool errorCodeFieldSpecified;
        
        private string errorDetailField;
        
        private string messageInErrorIdField;
        
        private mshRole mshRoleField;
        
        private bool mshRoleFieldSpecified;
        
        private System.DateTime notifiedField;
        
        private bool notifiedFieldSpecified;
        
        private System.DateTime timestampField;
        
        private bool timestampFieldSpecified;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public errorCode errorCode
        {
            get
            {
                return this.errorCodeField;
            }
            set
            {
                this.errorCodeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool errorCodeSpecified
        {
            get
            {
                return this.errorCodeFieldSpecified;
            }
            set
            {
                this.errorCodeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
        public string errorDetail
        {
            get
            {
                return this.errorDetailField;
            }
            set
            {
                this.errorDetailField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
        public string messageInErrorId
        {
            get
            {
                return this.messageInErrorIdField;
            }
            set
            {
                this.messageInErrorIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=3)]
        public mshRole mshRole
        {
            get
            {
                return this.mshRoleField;
            }
            set
            {
                this.mshRoleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool mshRoleSpecified
        {
            get
            {
                return this.mshRoleFieldSpecified;
            }
            set
            {
                this.mshRoleFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=4)]
        public System.DateTime notified
        {
            get
            {
                return this.notifiedField;
            }
            set
            {
                this.notifiedField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool notifiedSpecified
        {
            get
            {
                return this.notifiedFieldSpecified;
            }
            set
            {
                this.notifiedFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=5)]
        public System.DateTime timestamp
        {
            get
            {
                return this.timestampField;
            }
            set
            {
                this.timestampField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool timestampSpecified
        {
            get
            {
                return this.timestampFieldSpecified;
            }
            set
            {
                this.timestampFieldSpecified = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://org.ecodex.backend/1_1/")]
    public enum errorCode
    {
        
        /// <remarks/>
        EBMS_0001,
        
        /// <remarks/>
        EBMS_0002,
        
        /// <remarks/>
        EBMS_0003,
        
        /// <remarks/>
        EBMS_0004,
        
        /// <remarks/>
        EBMS_0005,
        
        /// <remarks/>
        EBMS_0006,
        
        /// <remarks/>
        EBMS_0007,
        
        /// <remarks/>
        EBMS_0008,
        
        /// <remarks/>
        EBMS_0009,
        
        /// <remarks/>
        EBMS_0010,
        
        /// <remarks/>
        EBMS_0011,
        
        /// <remarks/>
        EBMS_0101,
        
        /// <remarks/>
        EBMS_0102,
        
        /// <remarks/>
        EBMS_0103,
        
        /// <remarks/>
        EBMS_0201,
        
        /// <remarks/>
        EBMS_0202,
        
        /// <remarks/>
        EBMS_0301,
        
        /// <remarks/>
        EBMS_0302,
        
        /// <remarks/>
        EBMS_0303,
        
        /// <remarks/>
        EBMS_0020,
        
        /// <remarks/>
        EBMS_0021,
        
        /// <remarks/>
        EBMS_0022,
        
        /// <remarks/>
        EBMS_0023,
        
        /// <remarks/>
        EBMS_0030,
        
        /// <remarks/>
        EBMS_0031,
        
        /// <remarks/>
        EBMS_0040,
        
        /// <remarks/>
        EBMS_0041,
        
        /// <remarks/>
        EBMS_0042,
        
        /// <remarks/>
        EBMS_0043,
        
        /// <remarks/>
        EBMS_0044,
        
        /// <remarks/>
        EBMS_0045,
        
        /// <remarks/>
        EBMS_0046,
        
        /// <remarks/>
        EBMS_0047,
        
        /// <remarks/>
        EBMS_0048,
        
        /// <remarks/>
        EBMS_0049,
        
        /// <remarks/>
        EBMS_0050,
        
        /// <remarks/>
        EBMS_0051,
        
        /// <remarks/>
        EBMS_0052,
        
        /// <remarks/>
        EBMS_0053,
        
        /// <remarks/>
        EBMS_0054,
        
        /// <remarks/>
        EBMS_0055,
        
        /// <remarks/>
        EBMS_0060,
        
        /// <remarks/>
        EBMS_0065,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://org.ecodex.backend/1_1/")]
    public enum mshRole
    {
        
        /// <remarks/>
        SENDING,
        
        /// <remarks/>
        RECEIVING,
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://org.ecodex.backend/1_1/")]
    public partial class LargePayloadType
    {
        
        private byte[] valueField;
        
        private string payloadIdField;
        
        private string contentTypeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="base64Binary", Order=0)]
        public byte[] value
        {
            get
            {
                return this.valueField;
            }
            set
            {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType="token")]
        public string payloadId
        {
            get
            {
                return this.payloadIdField;
            }
            set
            {
                this.payloadIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string contentType
        {
            get
            {
                return this.contentTypeField;
            }
            set
            {
                this.contentTypeField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://org.ecodex.backend/1_1/", ConfigurationName="ServiceReference.BackendInterface")]
    public interface BackendInterface
    {
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Messaging))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LargePayloadType))]
        System.Threading.Tasks.Task<ServiceReference.listPendingMessagesResponse> listPendingMessagesAsync(ServiceReference.listPendingMessages request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Messaging))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LargePayloadType))]
        System.Threading.Tasks.Task<ServiceReference.getMessageErrorsResponse> getMessageErrorsAsync(ServiceReference.getMessageErrors request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.FaultContractAttribute(typeof(ServiceReference.FaultDetail), Action="", Name="FaultDetail")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Messaging))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LargePayloadType))]
        System.Threading.Tasks.Task<ServiceReference.getStatusResponse> getStatusAsync(ServiceReference.getStatus request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.FaultContractAttribute(typeof(ServiceReference.FaultDetail), Action="", Name="FaultDetail")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Messaging))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LargePayloadType))]
        System.Threading.Tasks.Task<ServiceReference.submitMessageResponse> submitMessageAsync(ServiceReference.submitMessage request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.FaultContractAttribute(typeof(ServiceReference.FaultDetail), Action="", Name="FaultDetail")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Messaging))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(LargePayloadType))]
        System.Threading.Tasks.Task<ServiceReference.retrieveMessageResponse1> retrieveMessageAsync(ServiceReference.retrieveMessage request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class listPendingMessages
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        public object listPendingMessagesRequest;
        
        public listPendingMessages()
        {
        }
        
        public listPendingMessages(object listPendingMessagesRequest)
        {
            this.listPendingMessagesRequest = listPendingMessagesRequest;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class listPendingMessagesResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="listPendingMessagesResponse", Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlArrayItemAttribute("messageID", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string[] listPendingMessagesResponse1;
        
        public listPendingMessagesResponse()
        {
        }
        
        public listPendingMessagesResponse(string[] listPendingMessagesResponse1)
        {
            this.listPendingMessagesResponse1 = listPendingMessagesResponse1;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class getErrorsRequest
    {
        
        private string messageIDField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public string messageID
        {
            get
            {
                return this.messageIDField;
            }
            set
            {
                this.messageIDField = value;
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getMessageErrors
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public ServiceReference.getErrorsRequest getErrorsRequest;
        
        public getMessageErrors()
        {
        }
        
        public getMessageErrors(ServiceReference.getErrorsRequest getErrorsRequest)
        {
            this.getErrorsRequest = getErrorsRequest;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getMessageErrorsResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getMessageErrorsResponse", Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
        [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public ServiceReference.errorResultImpl[] getMessageErrorsResponse1;
        
        public getMessageErrorsResponse()
        {
        }
        
        public getMessageErrorsResponse(ServiceReference.errorResultImpl[] getMessageErrorsResponse1)
        {
            this.getMessageErrorsResponse1 = getMessageErrorsResponse1;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class statusRequest
    {
        
        private string messageIDField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public string messageID
        {
            get
            {
                return this.messageIDField;
            }
            set
            {
                this.messageIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://org.ecodex.backend/1_1/")]
    public enum messageStatus
    {
        
        /// <remarks/>
        READY_TO_SEND,
        
        /// <remarks/>
        READY_TO_PULL,
        
        /// <remarks/>
        BEING_PULLED,
        
        /// <remarks/>
        SEND_ENQUEUED,
        
        /// <remarks/>
        SEND_IN_PROGRESS,
        
        /// <remarks/>
        WAITING_FOR_RECEIPT,
        
        /// <remarks/>
        ACKNOWLEDGED,
        
        /// <remarks/>
        ACKNOWLEDGED_WITH_WARNING,
        
        /// <remarks/>
        SEND_ATTEMPT_FAILED,
        
        /// <remarks/>
        SEND_FAILURE,
        
        /// <remarks/>
        NOT_FOUND,
        
        /// <remarks/>
        WAITING_FOR_RETRY,
        
        /// <remarks/>
        RECEIVED,
        
        /// <remarks/>
        RECEIVED_WITH_WARNINGS,
        
        /// <remarks/>
        DELETED,
        
        /// <remarks/>
        DOWNLOADED,
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getStatus
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public ServiceReference.statusRequest statusRequest;
        
        public getStatus()
        {
        }
        
        public getStatus(ServiceReference.statusRequest statusRequest)
        {
            this.statusRequest = statusRequest;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getStatusResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getStatusResponse", Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<messageStatus> getStatusResponse1;
        
        public getStatusResponse()
        {
        }
        
        public getStatusResponse(System.Nullable<messageStatus> getStatusResponse1)
        {
            this.getStatusResponse1 = getStatusResponse1;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class submitRequest
    {
        
        private LargePayloadType bodyloadField;
        
        private LargePayloadType[] payloadField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public LargePayloadType bodyload
        {
            get
            {
                return this.bodyloadField;
            }
            set
            {
                this.bodyloadField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("payload", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
        public LargePayloadType[] payload
        {
            get
            {
                return this.payloadField;
            }
            set
            {
                this.payloadField = value;
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class submitMessage
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
        public ServiceReference.Messaging Messaging;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        public ServiceReference.submitRequest submitRequest;
        
        public submitMessage()
        {
        }
        
        public submitMessage(ServiceReference.Messaging Messaging, ServiceReference.submitRequest submitRequest)
        {
            this.Messaging = Messaging;
            this.submitRequest = submitRequest;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class submitMessageResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        [System.Xml.Serialization.XmlArrayItemAttribute("messageID", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string[] submitResponse;
        
        public submitMessageResponse()
        {
        }
        
        public submitMessageResponse(string[] submitResponse)
        {
            this.submitResponse = submitResponse;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class retrieveMessageRequest
    {
        
        private string messageIDField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=0)]
        public string messageID
        {
            get
            {
                return this.messageIDField;
            }
            set
            {
                this.messageIDField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://org.ecodex.backend/1_1/")]
    public partial class retrieveMessageResponse
    {
        
        private LargePayloadType bodyloadField;
        
        private LargePayloadType[] payloadField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
        public LargePayloadType bodyload
        {
            get
            {
                return this.bodyloadField;
            }
            set
            {
                this.bodyloadField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("payload", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
        public LargePayloadType[] payload
        {
            get
            {
                return this.payloadField;
            }
            set
            {
                this.payloadField = value;
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class retrieveMessage
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        public ServiceReference.retrieveMessageRequest retrieveMessageRequest;
        
        public retrieveMessage()
        {
        }
        
        public retrieveMessage(ServiceReference.retrieveMessageRequest retrieveMessageRequest)
        {
            this.retrieveMessageRequest = retrieveMessageRequest;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class retrieveMessageResponse1
    {
        
        [System.ServiceModel.MessageHeaderAttribute(Namespace="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/")]
        public ServiceReference.Messaging Messaging;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://org.ecodex.backend/1_1/", Order=0)]
        public ServiceReference.retrieveMessageResponse retrieveMessageResponse;
        
        public retrieveMessageResponse1()
        {
        }
        
        public retrieveMessageResponse1(ServiceReference.Messaging Messaging, ServiceReference.retrieveMessageResponse retrieveMessageResponse)
        {
            this.Messaging = Messaging;
            this.retrieveMessageResponse = retrieveMessageResponse;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    public interface BackendInterfaceChannel : ServiceReference.BackendInterface, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
    public partial class BackendInterfaceClient : System.ServiceModel.ClientBase<ServiceReference.BackendInterface>, ServiceReference.BackendInterface
    {
        
        /// <summary>
        /// Implement this partial method to configure the service endpoint.
        /// </summary>
        /// <param name="serviceEndpoint">The endpoint to configure</param>
        /// <param name="clientCredentials">The client credentials</param>
        static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
        
        public BackendInterfaceClient() : 
                base(BackendInterfaceClient.GetDefaultBinding(), BackendInterfaceClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.BACKEND_PORT.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public BackendInterfaceClient(EndpointConfiguration endpointConfiguration) : 
                base(BackendInterfaceClient.GetBindingForEndpoint(endpointConfiguration), BackendInterfaceClient.GetEndpointAddress(endpointConfiguration))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public BackendInterfaceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : 
                base(BackendInterfaceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public BackendInterfaceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(BackendInterfaceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public BackendInterfaceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<ServiceReference.listPendingMessagesResponse> ServiceReference.BackendInterface.listPendingMessagesAsync(ServiceReference.listPendingMessages request)
        {
            return base.Channel.listPendingMessagesAsync(request);
        }
        
        public System.Threading.Tasks.Task<ServiceReference.listPendingMessagesResponse> listPendingMessagesAsync(object listPendingMessagesRequest)
        {
            ServiceReference.listPendingMessages inValue = new ServiceReference.listPendingMessages();
            inValue.listPendingMessagesRequest = listPendingMessagesRequest;
            return ((ServiceReference.BackendInterface)(this)).listPendingMessagesAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<ServiceReference.getMessageErrorsResponse> ServiceReference.BackendInterface.getMessageErrorsAsync(ServiceReference.getMessageErrors request)
        {
            return base.Channel.getMessageErrorsAsync(request);
        }
        
        public System.Threading.Tasks.Task<ServiceReference.getMessageErrorsResponse> getMessageErrorsAsync(ServiceReference.getErrorsRequest getErrorsRequest)
        {
            ServiceReference.getMessageErrors inValue = new ServiceReference.getMessageErrors();
            inValue.getErrorsRequest = getErrorsRequest;
            return ((ServiceReference.BackendInterface)(this)).getMessageErrorsAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<ServiceReference.getStatusResponse> ServiceReference.BackendInterface.getStatusAsync(ServiceReference.getStatus request)
        {
            return base.Channel.getStatusAsync(request);
        }
        
        public System.Threading.Tasks.Task<ServiceReference.getStatusResponse> getStatusAsync(ServiceReference.statusRequest statusRequest)
        {
            ServiceReference.getStatus inValue = new ServiceReference.getStatus();
            inValue.statusRequest = statusRequest;
            return ((ServiceReference.BackendInterface)(this)).getStatusAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<ServiceReference.submitMessageResponse> ServiceReference.BackendInterface.submitMessageAsync(ServiceReference.submitMessage request)
        {
            return base.Channel.submitMessageAsync(request);
        }
        
        public System.Threading.Tasks.Task<ServiceReference.submitMessageResponse> submitMessageAsync(ServiceReference.Messaging Messaging, ServiceReference.submitRequest submitRequest)
        {
            ServiceReference.submitMessage inValue = new ServiceReference.submitMessage();
            inValue.Messaging = Messaging;
            inValue.submitRequest = submitRequest;
            return ((ServiceReference.BackendInterface)(this)).submitMessageAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<ServiceReference.retrieveMessageResponse1> ServiceReference.BackendInterface.retrieveMessageAsync(ServiceReference.retrieveMessage request)
        {
            return base.Channel.retrieveMessageAsync(request);
        }
        
        public System.Threading.Tasks.Task<ServiceReference.retrieveMessageResponse1> retrieveMessageAsync(ServiceReference.retrieveMessageRequest retrieveMessageRequest)
        {
            ServiceReference.retrieveMessage inValue = new ServiceReference.retrieveMessage();
            inValue.retrieveMessageRequest = retrieveMessageRequest;
            return ((ServiceReference.BackendInterface)(this)).retrieveMessageAsync(inValue);
        }
        
        public virtual System.Threading.Tasks.Task OpenAsync()
        {
            return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
        }
        
        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.BACKEND_PORT))
            {
                System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding();
                System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
                textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None);
                result.Elements.Add(textBindingElement);
                System.ServiceModel.Channels.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement();
                httpBindingElement.AllowCookies = true;
                httpBindingElement.MaxBufferSize = int.MaxValue;
                httpBindingElement.MaxReceivedMessageSize = int.MaxValue;
                result.Elements.Add(httpBindingElement);
                return result;
            }
            throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
        }
        
        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.BACKEND_PORT))
            {
                return new System.ServiceModel.EndpointAddress("http://test.pristupnatocka.hr/domibus/services/backend");
            }
            throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
        }
        
        private static System.ServiceModel.Channels.Binding GetDefaultBinding()
        {
            return BackendInterfaceClient.GetBindingForEndpoint(EndpointConfiguration.BACKEND_PORT);
        }
        
        private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
        {
            return BackendInterfaceClient.GetEndpointAddress(EndpointConfiguration.BACKEND_PORT);
        }
        
        public enum EndpointConfiguration
        {
            
            BACKEND_PORT,
        }
    }
}