lundi 7 avril 2014

c# - accéder à un webservice WCF hébergé sur une machine virtuelle AWS - Stack Overflow


I currently have a Web service deployed on a virtual machine hosted by Amazon Web Services (the free one) that access data in a SQL database on that same machine. Using my local test harness I am able to confirm the service is working as expected. It is able to connect to the database and interact as expected.


However, I am having difficulty accessing that web service from the internet. I was hoping somebody can confirm if that is even possible, and if so point me towards a solution that will allow external access. The Web Service is writen in C# using WCF and REST


Thank you in advance for your help!




Yes, it's possible. You have to attach an elastic public IP to the instance. Does the management console show a public IP? You'll also have to create a security group that allows http access from the internet (0.0.0.0/0).



I currently have a Web service deployed on a virtual machine hosted by Amazon Web Services (the free one) that access data in a SQL database on that same machine. Using my local test harness I am able to confirm the service is working as expected. It is able to connect to the database and interact as expected.


However, I am having difficulty accessing that web service from the internet. I was hoping somebody can confirm if that is even possible, and if so point me towards a solution that will allow external access. The Web Service is writen in C# using WCF and REST


Thank you in advance for your help!



Yes, it's possible. You have to attach an elastic public IP to the instance. Does the management console show a public IP? You'll also have to create a security group that allows http access from the internet (0.0.0.0/0).


0 commentaires:

Enregistrer un commentaire