<pre>WebServiceHost host = new WebServiceHost(typeof(Generat), new Uri("http://localhost:8800/GetClient")); ServiceMetadataBehavior smb = new Ser<code></code>viceMetadataBehavior(); smb.HttpGetEnabled = true; smb.MetadataExporter.PolicyVersion = PolicyVersion.Policy15; host.Description.Behaviors.Add(smb); host.Open();
$.ajax({ url: 'http://localhost:8800/BCon/GetClient', type: 'GET', contentType: 'application/json;charset-uf8', dataType: "json", }).success(function (data) { alert(data); }).error(function (error) { alert(error); });
Thanks its work for me
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)