Пример #1
0
        /// <summary>
        /// Bind document WS to the real endpoint
        /// </summary>
        private void BindDocumentPortClient()
        {
            string urlWsDocument = _Tenant.DTPcore_WS_Url;
            if (!urlWsDocument.EndsWith("/"))
            {
                urlWsDocument = urlWsDocument + "/";
            }
            urlWsDocument = string.Format("{0}document", urlWsDocument);

            //Bind to ws document port
            _DocumentPortClient = new DocumentPortClient("documentPort", urlWsDocument);
            _DocumentPortClient.ClientCredentials.ClientCertificate.Certificate = _CertificateKey;
        }
Пример #2
0
        /// <summary>
        /// Bind document WS to the real endpoint
        /// </summary>
        private void BindDocumentPortClient()
        {
            string urlWsDocument = _Tenant.FrontOfficeURL;
            if (!urlWsDocument.EndsWith("/"))
            {
                urlWsDocument = urlWsDocument + "/";
            }
            urlWsDocument = string.Format("{0}ws/v3/document", urlWsDocument);

            //Bind to ws document port
            _DocumentPortCli = new DocumentPortClient("documentPort", urlWsDocument);
            _DocumentPortCli.ClientCredentials.ClientCertificate.Certificate = _CertificateKey;
        }