Connect Azure Service Bus On Android By Rest Api
Solution 1:
According to your code in Azure Java SDK, the issue was caused by using incorrect namespace
, sasKeyName
& sasKey
. In the reference doc, the namespace HowToSample
& SAS key SAS_key_value
were created by the author, that be different from yours.
So you need to replace them with the namespace & SAS key value of your service bus created. You can find them on Azure portal or new portal.
For the Service Bus REST API, try to add the api-version
in the query string for the Peek-Lock Message
API, please note the content from the reference doc https://msdn.microsoft.com/en-us/library/azure/hh780771.aspx.
Version and server overview
Following Azure guidelines, REST APIs now support versioning. By default, passing no version indicates current service behavior. Any changes in existing REST APIs require providing an api-version value as the query string.
Version “2012-03”,“2012-08”,“2013-04”,“2013-07”,“2013-08”,“2013-10”,“2014-01”,“2015-01”
Post a Comment for "Connect Azure Service Bus On Android By Rest Api"