I am trying to write a custom delivery service for my Trading Networks documents. It will be exactly like the http delivery service except for the fact that I want to kick of an email when the service fails and the number of retries is exhausted. I cannot use the standard http delivery service because
It expects the data in the xmldata content part, which is not true in my case.
It does not send any email notifications on task failure.
I have built the custom delivery service and it works fine except for the fact that it does not send out the email. In my service I branch on the variable “retriesRemaining” and when it equals the number of retries I send out an email. The problem I am running into is that the variable “retriesRemaining” that is expected by the delivery service specification is not there in the pipeline. The webMethods documents also mention that the delivery engine sets this value on each run. But it never does.
Does anybody know why this happens ? Is this a bug ? And is there a fix for this ?
Any input is appreciated.