Connecting to Azure ServiceBus Queue -
i developing first azure implementation, have set azure business relationship , used nuget install proper dll's , configs application. when set wcf client point service bus queue , run method exception:
microsoft.servicebus.servererrorexception
@ microsoft.servicebus.relayedsocketinitiator.connect(uri uri, timespan timeout) @ microsoft.servicebus.connectivitymodeconnectioninitiator.connect(uri uri, timespan timeout) @ microsoft.servicebus.channels.bufferedconnectioninitiator.connect(uri uri, timespan timeout) @ microsoft.servicebus.channels.connectionpoolhelper.establishconnection(timespan timeout) @ microsoft.servicebus.channels.clientframingduplexsessionchannel.onopen(timespan timeout) @ system.servicemodel.channels.communicationobject.open(timespan timeout) @ microsoft.servicebus.channels.layeredchannel`1.onopen(timespan timeout) @ system.servicemodel.channels.communicationobject.open(timespan timeout) @ system.servicemodel.channels.servicechannel.onopen(timespan timeout) @ system.servicemodel.channels.communicationobject.open(timespan timeout)
my endpoint config is:
<endpoint address="sb://myservice.servicebus.windows.net/myservicequeue" binding="nettcprelaybinding" contract="paperlessimportservicewcf.paperlessimportservicesoap" name="myserviceservicesoap" behaviorconfiguration="sbtokenprovider"/>
my endpoint
behavior is:
the error message generic , not sure first place should look
i think have few misunderstandings how relay service works. configuration show, you're using nettcprelaybinding, meant request-replay connectivity. however, in endpoint, seems you're using queue address endpoint.
a) if meant utilize service/client in request-reply fashion, need create service bus relay endpoint, , utilize address in endpoint. this tutorial starting point servicebus feature.
b) if meant utilize queue, need netmessagingbinding. this post starting point on how perform said scenario.
in either case, seems you're using wrong base of operations address. 'myservice' name of servicebus namespace? if it's not, should replace name of namespace. format of base of operations servicebus address is: protocol://your_namespace.servicebus.windows.net
azure servicebus azureservicebus
No comments:
Post a Comment