I am trying to create develop a .net core application which needs to call a java webservice. On Visual Studio, when I directly run the application, It connects and gets the results from the webservice as expected. But when I run it through Docker, The line on which the service call called is, throws exception - 'One or more errors occurred. (There was no endpoint listening at (URI) that could accept the message. This is often caused by an incorrect address or SOAP action.)
Does anyone have any idea what could be the issue?