Home > Issues, Opalis > Opalis: Invoke WebService – connection refused

Opalis: Invoke WebService – connection refused

Let’s say you want to use a .NET webservice that works fine via Internet Explorer or SoapUI.
But when calling it from Opalis you get the error:  “Failed to invoke the Web Service method. The exception was “Unable to connect to the remote server. No connection could be made because the target machine actively refused it“” The 5000 is the port number so this can be anything.

Not much to find on the web but the answer is very easy. (once you know it)
You need to be sure that the endpoint address in your web.config is a valid DNS name instead of http://localhost/

 <endpoint address=”http://FQDN/MyWebService.asmx” … />

Don’t forget to restart the website/webservice and clear your cache in Opalis!

  1. No comments yet.
  1. No trackbacks yet.