How to send messages to Azure Service Bus over Port 80?

爷,独闯天下 提交于 2019-12-10 12:16:35

问题


As per I know Azure Service bus uses port 9350, 9353 etc. to send messages. In my organization because of firewall policy we can't open these ports. So whenever I try to send messages to my queue in Azure I get error saying

No DNS entries exist for host mycloudsevice.servicebus.windows.net".

Is there a way I can send these over port 80/443, as they are always open?

Let me know if any examples or code changes I can do.


回答1:


You can force the Service Bus library to use HTTP by declaring the following:

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

However it looks like you have a DNS problem not a TCP port problem, you might want to check that you have entered your service bus namespace correctly.



来源:https://stackoverflow.com/questions/20132003/how-to-send-messages-to-azure-service-bus-over-port-80

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!