So I'm new to WCF ...
I created a ServiceLibrary project and a website that used ServiceLibrary. I can access the service by creating a proxy class from WSDL , which was generated using svcutil.exe, and then used this class to access the methods in my service. All this was good on my local machine.
Then I transferred the service to my test development server (not to the domain, so I get access through the IP address) and added the site to IIS . I was able to access the service through //ip/ServiceSite/Service.svc and WSDL via //ip/ServiceSite/Service.svc?wsdl.
However, trying to use this service, I got an error about invalid links. When I look at //ip/ServiceSite/Service.svc, the link that is provided to create the proxy class contains the server computer name in the address, and when I look at WSDL, the links to the schemes also contain the machine name in the URL. This machine name cannot be accessed over the network because it is not in a domain.
Is there a way, instead of the machine name, to host the server in those links that it will use the IP address? Or are there other solutions for accessing the service by IP address?
source share