Docker Community Forums

Share and learn in the Docker community.

Calling external webservice from containerised application


(Shwetabhdokerinfo) #1

Hi,
I am trying to call mockservice on my local system from containerised application .However,it is throwing error:

";A Web Service request has detected a SOCKET error whilst invoking a web service located at host &1, on port &2, on path

Host,Port and URI in containerised application is same as mentioned in the mockservice.
I think it is using bridge network and which is not having the ip of the host(my local system) system where mock service is deployed.Please help.

Issue type -Network
OSVersion/Build : 17.09.0-ce, build afdb6d4
Step to reproduce:
I have created webservice which takes input on particular host /port,transform it into the mockservice request and try to hit it.This application is deployed in the container which exposes the port for the incoming request to the host system.