Click here to Skip to main content
15,887,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am new to WCF. I need to consume one Rest WCF service in the Console Application. The WCF Service is already running on my computer e.g. http://localhost:1004/REService.
I need to access REService.IREService.GetReports method.


Kindly help.

Thanks in advance.

What I have tried:

I have already tried but getting below error message:

Could not find endpoint element with name 'http://localhost:1004/REService' and contract 'REService.IREService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.


I have defined required configuration in app.config of the console application (same as the WCF service).
Posted
Updated 13-Nov-19 1:49am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900