I understand that there are other similar questions, but I could not find a working answer.
I create the default WCF service from the template [which comes with GetData () and GetDataUsingDataContract ()]. A.
It works fine in the browser.
I have a separate website to which I am adding this new WCF service:
I do "Add a link to a service", enter your URL, a service will appear and click "OK" to add it.
In the "App_WebReferences" section, I see the namespace of my added service: "ServiceReference1", under it "References.svcmap" and a couple of .svcinfo / .wsdl / .xsd files.
No proxy files are created, but the <system.serviceModel>
element has been added to my web.config so that it seems to be the correct information.
However, without a proxy server, I cannot access / call any methods in my service (i.e. ServiceReference1.WCFMethod1()
)
I can call svcutil, generate a proxy, add it to my App_Code, and everything will work as it should. My question is: why my proxy is not created using the "Add service link"?
Everything is in the target environment: .NET Framework 4.
EDIT:
Just created a console application and added a link to the service, and she created a proxy. So the problem is that my website is not creating a proxy server ...
eych
source share