public string ApiGetService(string ProviderCode, string ServiceCode, string CallType)
        {
            var metaServiceClient = new MetaServiceClient("BasicHttpBinding_IMetaService");
            var servicewsdl       = metaServiceClient.GetService(ProviderCode, ServiceCode, CallType);

            return(servicewsdl);
        }
        public HttpResponseMessage DownloadWsdl(string providerCode, string serviceCode, string callType)
        {
            var    metaServiceClient = new MetaServiceClient("BasicHttpBinding_IMetaService");
            string servicewsdl       = metaServiceClient.GetService(providerCode, serviceCode, callType);

            HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new StringContent(servicewsdl)
            };

            result.Content.Headers.ContentType =
                new MediaTypeHeaderValue("text/xml");
            result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
            return(result);
        }