<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>Okai. I got the url with hub.challenge=<token> as a
querystring.</DIV>
<DIV>How should i return this challenge token back to webserver?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Currently i tried with</DIV>
<DIV> </DIV>
<DIV>// Retrieves challengetoken </DIV>
<DIV>string challenge = request.QueryString["hub.challenge"];</DIV>
<DIV> </DIV>
<DIV>// Converting the text to byteArray</DIV>
<DIV>byte[] challengeBuffer = Encoding.UTF8.GetBytes(challenge);</DIV>
<DIV> </DIV>
<DIV>// Writes buffer into the response body.</DIV>
<DIV>Response.Body.Write(challengeBuffer, 0, challengeBuffer.Length);</DIV>
<DIV> </DIV>
<DIV>But this is the result i got..</DIV>
<DIV> </DIV>
<DIV><STRONG>* upload completely sent off: 117 out of 117 bytes</STRONG></DIV>
<DIV><STRONG>< <FONT color=#ff0000>HTTP/1.1 500 Internal Server
Error</FONT></STRONG></DIV>
<DIV><STRONG>< Server: nginx/1.1.19</STRONG></DIV>
<DIV><STRONG>< Date: Wed, 13 Nov 2013 05:15:09 GMT</STRONG></DIV>
<DIV><STRONG>< Content-Length: 0</STRONG></DIV>
<DIV><STRONG>< Connection: keep-alive</STRONG></DIV>
<DIV><STRONG><</STRONG></DIV>
<DIV><STRONG>* Connection #0 to host xxxx.yyyy.com left intact</STRONG></DIV>
<DIV><STRONG>* Closing connection #0</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>What could be the possible error here?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV
style="FONT-FAMILY: 'Segoe UI'; COLOR: #000000; FONT-SIZE: 10pt"><BR>Regards,
<BR>Lijo Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com">Brett Cameron</A> </DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 10:07 AM</DIV>
<DIV><B>To:</B> <A title=rabbitmq-discuss@lists.rabbitmq.com
href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss</A> </DIV>
<DIV><B>Subject:</B> Re: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<P dir=ltr>That's correct. As per the documentation you can also specify a
duration for the subscription (after which it will be expired), etc.</P>
<P dir=ltr>Just be sure to note that the initial challenge is a GET; messages
are then forwarded to the URL using POST.</P>
<DIV class=gmail_quote>On 13/11/2013 5:31 PM, "Lijo Sebastian" <<A
href="mailto:lijo@citrusinformatics.com">lijo@citrusinformatics.com</A>>
wrote:<BR type="attribution">
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Oh, so can i specify any url as a callback url and satisfy request
verification.</DIV>
<DIV>any client url that can do verification on this request right?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards, <BR>Lijo
Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=brett.r.cameron@gmail.com
href="mailto:brett.r.cameron@gmail.com" target=_blank>Brett Cameron</A> </DIV>
<DIV><B>Sent:</B> Wednesday, November 13, 2013 2:05 AM</DIV>
<DIV><B>To:</B> <A title=rabbitmq-discuss@lists.rabbitmq.com
href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target=_blank>Discussions
about RabbitMQ</A> </DIV>
<DIV><B>Subject:</B> Re: [rabbitmq-discuss] Subscribing an Exchange with
RabbitHub</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>
<DIV>
<DIV>Lijo,<BR><BR></DIV>The error indicates that your web server at <A
href="http://rabbitmq.citrus.com" target=_blank>rabbitmq.citrus.com</A> did
not respond correctly to the initial challenge request. When a subscription is
requested, RabbitHub sends a challenge request (HTTP GET) to the specified
URL. The challenge request sends a token and the web server is expected to
respond to the challenge request by sending back the same token in the
response body. Assuming this process completes successfully the subscription
will be activated. Once the subscription has been activated, RabbitHub will
send to the subscription URL any messages matching the subscription (note that
messages are sent using HTTP POST, not GET).<BR><BR></DIV>Brett<BR><BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, Nov 13, 2013 at 1:43 AM, Lijo Sebastian <SPAN
dir=ltr><<A href="mailto:lijo@citrusinformatics.com"
target=_blank>lijo@citrusinformatics.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt">
<DIV>Hi,</DIV>
<DIV> Please guide me through.
</DIV>
<DIV> I am
using RabbitHub plugin for RESTish way of publishing messages.</DIV>
<DIV>
Creating and Deleting Exchanges or Queues are working fine. </DIV>
<DIV> Also
able to publish message with http post method to queues subscribed through
amqp. </DIV>
<DIV> </DIV>
<DIV>But how to achieve subscribe with RabbitHub.</DIV>
<DIV> </DIV>
<DIV>I tried the example available with RabbitHub tutorial. Added my
call back url . Got Error.</DIV>
<DIV> </DIV>
<DIV>What could be the possibilities of the below shown error?</DIV>
<DIV> </DIV>
<DIV>Thanks in Advance!!!</DIV>
<DIV> </DIV>
<DIV>Error : </DIV>
<DIV> </DIV>
<DIV>Request verification failed: challenge_mismatch* Connection #0 to host
rabbitmq</DIV>
<DIV><A href="http://citrus.com" target=_blank>citrus.com</A> left
intact</DIV>
<DIV>* Closing connection #0</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Segoe UI'; FONT-SIZE: 10pt"><BR>Regards, <BR>Lijo
Sebastian<BR>Senior Software Engineer<BR>Citrus Informatics (India) Pvt
Ltd.</DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR><BR></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV>
<P>
<HR>
_______________________________________________<BR>rabbitmq-discuss mailing
list<BR><A href="mailto:rabbitmq-discuss@lists.rabbitmq.com"
target=_blank>rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rabbitmq-discuss
mailing list<BR><A
href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</A><BR><A
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target=_blank>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</A><BR><BR></BLOCKQUOTE></DIV>
<P>
<HR>
_______________________________________________<BR>rabbitmq-discuss mailing
list<BR>rabbitmq-discuss@lists.rabbitmq.com<BR>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<BR></DIV></DIV></DIV></BODY></HTML>