call from web service to another wcf service throwing an error -


I have a console application (i.e. Project 1 / Solution 1). I called a web service (. The separate project (the Project 1 / Solauton 2) via a web project, there are two separate business class management (ie Project 2 / Solauton 2) console application, which is called two different external WCO services. I programmed manner closing'm building point and binding elements to call WCF methods.

  s Dpoint address ed = new Andpointadres (rtd.WebServiceUrl); BasicHttpBinding binding = new BasicHttpBinding ( "BasicHttpBinding_TestService"); Srviscleint client = new Srviskliant (binding, Ed); String response = ClientkGetdetails (string input 1, string input 2) < / code> 

do not get me elements that match "is getting error" key 'BasicHttpBinding_TestService' configuration element collection "although I've added config in my app.config file Registration

My app.config file section

  & lt; binding name = "Basic HttpBinding_TestService" closeTimeout = "00:00:05" openTimeout = "00:00 : 05 "ReceiveTimeout =" 00:00:15 "Cookies" = "false" BypassProxy ONOLOKAL = "FALSE" hostname COMPRISONDODE = "Strongwoldcard" MAXBFERSICES = "2047487456" MaxBerfarposSys = "524288" matrixxaxmusicism = "2047487456" message encoding = "text" text Encoding = "UTF-8" transfer mode = "buffer" default webpage = "true" & gt; & Lt; readerQuotas maxDepth = "32" maxStringContentLength = "2047487456" Maksarere lang = "16384" Maksbaitspiyr Reed = "4096" Adiktmnamtablkaskount = "16384" / & gt; & Lt; Safety Mode = "Transportation" & gt; & Lt; Transport Customer Credential Type = "None" Proxy Credential Type = "None" realm = "" /> & Lt; Message client credentials type = "user name" algorithm site = "default" /> & Lt; / Safety & gt; & Lt; / Binding & gt;  

Even I have it on the web The config file is added to where my web method (i.e. Project 1 / Soloutone 2) and the Calling Console app's app Located in the config file.

From your web wcf service to your web See binding in config files. Web of WCF application In the Configure Binding and Client application, app.config should work for that binding configuration.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -