protected override void RenderOperation(System.Web.UI.HtmlTextWriter writer, IRequest httpReq, string operationName, string requestMessage, string responseMessage, string metadataHtml)
        {
            var operationControl = new Soap11OperationControl
            {
                HttpRequest = httpReq,
                MetadataConfig = HostContext.Config.ServiceEndpointsMetadataConfig,
                Title = HostContext.ServiceName,
                Format = this.Format,
                OperationName = operationName,
                HostName = httpReq.GetUrlHostName(),
                RequestMessage = requestMessage,
                ResponseMessage = responseMessage,
                MetadataHtml = metadataHtml,
            };
            if (!this.ContentType.IsNullOrEmpty())
            {
                operationControl.ContentType = this.ContentType;
            }
            if (!this.ContentFormat.IsNullOrEmpty())
            {
                operationControl.ContentFormat = this.ContentFormat;
            }

            operationControl.Render(writer);
        }
        protected override void RenderOperation(System.Web.UI.HtmlTextWriter writer, IRequest httpReq, string operationName, string requestMessage, string responseMessage, string metadataHtml, ServiceStack.Host.Operation operation)
        {
            var operationControl = new Soap11OperationControl
            {
                HttpRequest     = httpReq,
                MetadataConfig  = HostContext.Config.ServiceEndpointsMetadataConfig,
                Title           = HostContext.ServiceName,
                Format          = this.Format,
                OperationName   = operationName,
                HostName        = httpReq.GetUrlHostName(),
                RequestMessage  = requestMessage,
                ResponseMessage = responseMessage,
                MetadataHtml    = metadataHtml,
            };

            if (!this.ContentType.IsNullOrEmpty())
            {
                operationControl.ContentType = this.ContentType;
            }
            if (!this.ContentFormat.IsNullOrEmpty())
            {
                operationControl.ContentFormat = this.ContentFormat;
            }

            operationControl.Render(writer);
        }
        protected override Task RenderOperationAsync(Stream output, IRequest httpReq, string operationName, string requestMessage, string responseMessage, string metadataHtml, ServiceStack.Host.Operation operation)
        {
            var operationControl = new Soap11OperationControl
            {
                HttpRequest     = httpReq,
                MetadataConfig  = HostContext.Config.ServiceEndpointsMetadataConfig,
                Title           = HostContext.ServiceName,
                Format          = this.Format,
                OperationName   = operationName,
                HostName        = httpReq.GetUrlHostName(),
                RequestMessage  = requestMessage,
                ResponseMessage = responseMessage,
                MetadataHtml    = metadataHtml,
            };

            if (!this.ContentType.IsNullOrEmpty())
            {
                operationControl.ContentType = this.ContentType;
            }
            if (!this.ContentFormat.IsNullOrEmpty())
            {
                operationControl.ContentFormat = this.ContentFormat;
            }

            return(operationControl.RenderAsync(output));
        }