Search code examples
c#web-servicesport-number

Can not add web service reference to my project using port number


I can access serverIP:7075//webservice from a web browser but I cannot add it to Visual Studio. It throws an exception.


Solution

  • Try appending ?wsdl at the end of the URL when adding a reference in Visual Studio

    Eg:

    serverIP:7075/webservice?wsdl