>>
>>but I couldn't use binding way. My service references name is Sorgula, I put Sorgula ;
>>
>>var client = Sorgula(binding, new EndpointAddress("
http://www.nameofthewebsitehere.com"));
>>
>>gives error: 'TCKimlik.Sorgula' is a 'namespace' but is used like a 'variable'
>
>You're missing the "new" in front of it.
>
>
>var client = new Sorgula(binding, new EndpointAddress("http://www.nameofthewebsitehere.com"));
>
>
>Just be aware that the class name might not match what you're currently using; I usually just type: var client = new S - then wait for the intellisense to pop up, then I'll go through the list of class names that sound like what I want and have the constructor parameters I want to pass. So don't be surprised if you have to do something like var client = new SorgulaClient(binding, new EndpointAddress("
http://address.com"); or some other variant.
At last I got what you mean and solved mine service:
BasicHttpsBinding binding = new BasicHttpsBinding();
EndpointAddress address = new EndpointAddress("
https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
Sorgula.KPSPublicSoapClient servis = new Sorgula.KPSPublicSoapClient(binding, address);
Thank you again... :)
Update: I looked up your blog for C# things but found "Alternative to Modal VFP Forms" article. I don't use modal forms for this issue. I send an object reference from main form to child and update main form when drop child. But using bindevent better than that. You don't need to check if main form still alive and this's more eaiser. Thank you for this too... I put this binding way to my blog and mentioned you of course:
http://metinemre.blogspot.com.tr/2015/02/c-tc-kimlik-sorgulama-web-servisi.html