Peek and Lock with Offset for Service Bus Queue in REST API

In .NET library, the QueueClient has an API
QueueClient.Peek(Int64), which accept an offset for the queue as starting point.
Does the REST api
also can pass this parameter? I didn't find one.

hi mmsz_jbn,
Thanks for your posting!
It seems that REST API Peek-Lock message don't support pass the SequenceNumber.
http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath}/messages/head
http{s}://{serviceNamespace}.servicebus.windows.net/{topicPath}/subscriptions/{subscriptionName}/messages/head
From the API structure, we don't see the sequence number as a parameter.
But in unlock method, we can use this number:
http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath}/messages/{messageId|sequenceNumber}/{lockToken}
I suggest you could submit a feature request in this page:
http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Service Bus Send/Receive - REST API

    I need to use the Azure Service Bus REST API for sending messages to Service Bus Topics. On the receiving side I'm using the Azure Service Bus SDK.
    Message on the sender side:
    POST https://your-namespace.servicebus.windows.net/HttpClientSampleQueue/messages?timeout=60 HTTP/1.1
    Authorization: SharedAccessSignature sr=your-namespace&sig=Fg8yUyR4MOmXfHfj55f5hY4jGb8x2Yc%2b3%2fULKZYxKZk%3d&se=1404256819&skn=RootManageSharedAccessKey
    BrokerProperties: {"Label":"M1","State":"Active"}
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Host: your-namespace.servicebus.windows.net
    This is a message.
    When reading the message body as message.GetBody<string> an error message is given  serialization exception.
    I already searched the web and found a possible solution:
    Stream stream = message.GetBody<Stream>();
    StreamReader reader = new StreamReader(stream);
    string str = reader.ReadToEnd();
    or as an alternative (instead of converting to string) converting the stream into an XmlDocument
    Are hese recommended ways to handle this issue?
    Thanks.

    @Serkant & Paolo: Thanks for the answers.
    The client I use is Postman (Chrome plug-in).
    The message below works fine, but as I mentioned on the server side (.NET with Azure Service Bus SDK/API) until now I used:
    Stream stream = message.GetBody<Stream>();
    StreamReader reader = new StreamReader(stream);
    string str = reader.ReadToEnd();
    But I'll now try with 
    var body = msg.GetBody<string>(new DataContractSerializer(typeof(string)));
    POST /testtopic/messages HTTP/1.1
    Host: namespace.servicebus.windows.net
    Authorization: SharedAccessSignature sr=https%3a%2f%2namespace.servicebus.windows.net%2ftesttopic&sig=HUl2y3BTw%2bx3tSmUYZtpnfmzyxKfK1lqwIudfVY1UJg%3d&se=65025728850&skn=ManageAccessKey
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    BrokerProperties: {"Label":"M1","State":"Active"}
    MessageNumber: 1
    Cache-Control: no-cache
    Postman-Token: bf68bdef-2b5a-70ed-5fc3-96dbce720a7c
    {"temp":40}

  • "There is a problem with your device,We're sorry the device you connected may be damaged and cannot be activated for service. "

    My problem is after i did a restore on my 32gb ipod touch i now get a error on itunes that says "There is a problem with your device,We're sorry the device you connected may be damaged and cannot be activated for service. " Please help

    In the ipad discussion forums there apparently is a HUGE problem with people not being able to update to ios 4.3.3, it apparently locks up their devices and they are also getting the error "there is a problem with your device".... some are reporting the same problem with their ipod touch as well... it looks like it's a global issue
    The forum is in the ipad section under the title of "There is a problem with your device".
    I have dodged a bullet on this one since i have not updated my ipod's or ipad in the last couple of days.... i will hold off syncing to itunes until this issue is fixed... good luck, and spread the word if you can to get apple to listen

  • IPhone 4s not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help

    iPhone not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help.
    When I connect iPhone to USB iTunes is giving me the above message. Please advise if you know the fix.
    Thanks,
    Lina1116

    did you find a fix?

  • I imported about 300 RAW images yesterday and worked with them for about an hour. iPhoto locked up on me and I rebooted. After I did the event icon is now gray and it says there are no photos. I know the photos are there. Any idea how I can recover them?

    I imported about 300 RAW images yesterday and worked with them for about an hour. iPhoto locked up on me and I rebooted. After I did the event icon for that event is now gray and it says there are no photos. I know the photos are there. Any idea how I can recover them?

    a best practice to is to never have any computer program (including iPhoto) delete the photos from the card but to import the photos and keep them and then after at least one successful backup cycle has completed and then reformat the card --  I use three very large (32 GB) cards in rotation so I do not reformat for typically a year or more giving me one more long term backup of my photos
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

  • 'Iphone may be damaged and cannot be activated for service'

    Ive just bought a used iphone4. it arrived having been cleared and reset.
    I connected to itunes and upgraded to the new software. Then it worked for half a day. Then a message came up saying i need ot restore the phone.
    So i plugged it in again and at the end of the uprgrade sequence it comes up with-
    'Problem with the iphone - may be damaged and cannot be activated for service' - please visit apple store.
    Its obviously out of warranty and the apple store is a long way away. Ive only had it a day and im assured its never been jailbroken, dropped or water damaged.
    I know loads of people have had this message come up and people have recommened going to the apple store. But before i make the long trek i just wanted to know if anyone ever came up with a solution to fix this and use the phone again.
    Any help much appreciated. back on sh+tty blackberry!!

    Thanks for the replies guys!
    I cant access the phone it just stays on 'connect to itunes'
    Could someone quickly explain how jailbraking an iphone could cause it problems? I want to email the person I bought this from and tell them why I think they have damaged it by jailbraking it.
    I really appreciate this help bacuase ive shelled out £160 for this paperweight, Thanks.

  • The iPad you connected is not recognized and cannot be activated for servic

    Hi there,
    Today I've received a replacement iPad (from Apple), and surprise surprise, when I connected it to iTunes for proceed with the initial setup, the following message arised
    We're sorry, the iPad you connected is not recognized and cannot be activated for service.
    We recommend you visit your nearest Apple Store for more information.
    I've contacted with my local apple support, and they told me to try to reinstall the iPad entering in DFU mode. I did it twice, and both times the procedure went perfectly but once finished the above message appeared once again.
    They have told me to send it once again for repair, but, someone knows how to resolve this ? I've sent my previous iPad ten days ago, and now, I will have to wait other ten and I'm a little bit dissapointed.
    Well, thanks in advance and merry christmas for all of you.
    julio

    They should pay to overnight pickup and overnight delivery back to you since it's their screwup. Ask them!

  • We're sorry, the device you connected may be damaged and cannot be activated for service. We recommend you visit your nearest Apple Store for more information. To find your nearest Apple Store, click here.

    I needed to restore my phone to an earlier restore point because my notes were deleted after I restored I recieved this message
    "We’re sorry, the device you connected may be damaged and cannot be activated for service. We recommend you visit your nearest Apple Store for more information. To find your nearest Apple Store, click here."
    I need to get phone running asap abd do not want to go to Apple to talk with Genius.

    That message will occur when you put in a NON-AT&T sim
    just get the sim out and try again

  • Any help regarding iphone 4 and locks with o2

    any help regarding iphone 4 and locks with o2
    i just got my second hand iphone4
    and a friend of a friend said it was factory unlocked
    and received txt from o2 saying it was unlocked
    however when i got home i put my micro sim into it
    and
    itunes said
    "this sim card appears to be unsupported" or something similer
    it is factory unlocked because the model number in the settings is
    MC603B
    i rang o2 to ask for unlock. gave them the imei code and they said they have to send the request off to apple for a code

    i rang o2 to ask for unlock. gave them the imei code and they said they have to send the request off to apple for a code
    Obviously the iPhone was/is not unlocked or this would not be required, and there is your answer, which can take up to two weeks.

  • I upgraded my 3gs to 5.01 and now I get the message "iPhone may be damaged and cannot be activated for service." Whats going on?

    I upgraded my 3gs to 5.01 and now I get the message "iPhone may be damaged and cannot be activated for service." Whats going on? I can't activate my device. It is essentially bricked at this point

    Same issue c'mon apple.

  • My serial number is C38JL043DTWD but lose from last 3 week and 28 October expire for service and support coverage how can I claim?

    My serial number is C38JL043DTWD but lose from last 3 week and 28 October expire for service and support coverage how can I claim?

    Sorry, but I don't understand your question. If you are questioning the stated expiration date of your warranty, when did you buy the iPhone and from what dealer? You may wish to post in your native language if you are uncomfortable posting in English.
    Regards.

  • How to i lock with password for my contacts folder in ipad3

    how to i lock with password for my contacts folder in ipad3

    You cannot lock specific applications or folders, but you can set a passcode on your iPad:
    Setting a Passcode on an iOS Device

  • Total Planned and Total Actual Hours for service order

    Hi,
    Is there is any table in which I can directly find the Total Planned and Total Actual Hours for service order.Pl suggest.
    Regards
    SB

    Sorry SB, didn't read your post properly... I thought it was costs you were after...
    AFVV holds the total actual work at operation level.
    PeteA

  • HOW TO RECOVER MY PHOTO ON MY IPHONE BROKEN and locked with a password

    HOW TO RECOVER MY PHOTO ON MY IPHONE BROKEN and locked with a password?

    I JUST SOLVED MY PROBLEM!

  • Unable to send message in Service bus queue through Webrole which are connected to Azure VPN

    I have created two Azure VPN and two cloud services(deployed webrole) and one service bus queue
    First Azure VPN and cloud service(deployed webrole) is created in same affinity group.
    Second Azure VPN and cloud service is created in West US
    Service bus queue is also created in West US.
    When I send message in service bus queue from first cloud service (same affinity group) then message sends successfuly
    but when I send message in same service bus queue from second service(West US- Webrole) then unable to send message and not throwing any exception.
    I don't know, whats happening?
    Its very urgent..... client is waiting.
    Please help me... Thanks.
    hema

    Thanks for reply. Got the cause but still looking for solution.
    Actually we have created Azure VPN using Express route and
    all are configured for Private Peering.
    Try to access service bus queue from Web role which is attached to Express route network.
    I am unable to access service bus queue and send message...because cloud services deployed in virtual networks are supported over the private peering path.
    There are 3 types: public, private and default route (forced tunneling). 
    How  can be configured for all 3 which will force all traffic through the tunnel except for Azure public service?
    Do you have any idea on this scenario?
    Thanks.
    hema

Maybe you are looking for