I am trying to create a web page that contains a link that will attempt to retry an a message.
Below is a stubbed out (R&D - it is ugly, forgive me) call that attempts to retry a specific message. First is my url correct? I grabbed the guid from ServiceInsight and when I right click it in ServiceInsight it has the option to retry it. When I execute this code is comes back as successful and there is no payload, but when I refresh ServiceInsight the message is still there.
Any insight you can provide would be greatly appreciated. On a side note, it would be nice to get a return value of some nature. For example, what if the message is already processed successfully, in which case the retry should ack something back saying it can't be done. For example, if I right click an item in ServiceInsight that has a green icon in the status column, the retry option is not enabled.
function DoPost(){
alert("start");
jQuery.support.cors = true;
$.post( "http://localhost:33333/api/errors/97db46a9-dd22-488d-8ec3-a24770bbxdcf/retry",
function(data) { alert(data); alert( "success" );})
.done(function() { alert( "done" ); })
.fail(function(xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(thrownError); alert( "error" ); })
.always(function() { alert( "always" ); } );
alert("end");
}