when i deploy my WCF service, the wsdl shows up with
import http://hostname/servicename/xsd
how can i make it have IP address instead of the host name.
same with the wsdl url that is listed when you browse to svc file.
when i deploy my WCF service, the wsdl shows up with import http://hostname/servicename/xsd how
Share
Some things you can do:
1. Change the address of the endpoint to use ip instead of host name – this will work when hosting outside of iis.
2. If the purpose of this change is to allow users to add a reference by using the server’s IP, you can add the useRequestHeadersForMetadataAddress service behavior that will allow the wsdl to be changed according to the address the client uses to get the WSDL