如何通过端口80将消息发送到Azure Service Bus?
据我所知,Azure服务总线使用端口9350、9353等发送消息.在我的组织中,由于防火墙策略的原因,我们无法打开这些端口.因此,每当我尝试将消息发送到Azure中的队列时,我都会收到错误消息
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
主机mycloudsevice.servicebus.windows.net没有DNS条目."
No DNS entries exist for host mycloudsevice.servicebus.windows.net".
有没有办法通过端口80/443发送这些消息,因为它们始终处于打开状态?
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.
您可以通过声明以下内容来强制Service Bus库使用HTTP:
You can force the Service Bus library to use HTTP by declaring the following:
ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;
但是,看起来好像有DNS问题而不是TCP端口问题,您可能需要检查是否已正确输入服务总线名称空间.
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.