I have created a rest service and hosted it on azure vm’s IIS server.I tested the service with postman rest client,its working fine. I created the client to access the service having proper Address,Binding(webHttp),contract(Shared interface between
service and client). I am able to access the service through mvc webapp using the client when its getting hosted on IIS Express. But when i deployed the same web app package to IIS server its unable to get response from service.it is failing with the error
:There was no endpoint listening athttp://xxx.cloudapp.net:3439/api/yyyService/GetUser?emailIdemail@example.com that could accept the message.
This is often caused by an incorrect address or SOAP action
most likely you need to change the server firewall settings. by default the port is blocked.
Thanks for your post.
Check the HTTPERR log and the Failed Request Trace (FRT) log,please check this:http://blog.leansentry.com/2013/07/the-server-logs-you-need-to-know-to-fix-any-iis-aspnet-error/
And try to add a port(3439) in Windows Firewall ,please check this:http://windows.microsoft.com/en-in/windows/open-port-windows-firewall#1TC=windows-7
There’s a similar thread:
Hope this can be helpful.