We are trying to communicate with an external WCF service.
The WCF services are exposed via svc files. It appears that there are 2 interfaces exposed via the same svc file.
How can we configure this in the web.config file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand your question correctly, you have a single class that implements 2 WCF service contracts. In your web.config, you configure an endpoint for each service contract, but under the same
<service>node. I’ve only done this when self-hosting WCF services, not in IIS, but I think if you specify a value foraddressin your endpoint configuration, it will make it relative to the location of the .svc file:You would then setup your client proxies for each service contract to point to
http://YourServer/YourServicePath/YourServiceClass.svc/Service1andhttp://YourServer/YourServicePath/YourServiceClass.svc/Service2