# File subscriber/subscriber.rb, line 47 def requestSubscriptionContents(subscriptionId) payload = makeRequestPackage(subscriptionId) reply = sendPayload(payload, Rice::SyndicatorProps.instance().listenerURL) begin content = retrieveContentFrom(reply, payload.requestId) if @confirmationRequested sendConfirmation(payload.requestId, Rice::SyndicatorProps.instance().listenerURL) # retrieve reply that the confirmation was received # FIX: implement # FIX: what if reply says confirmation not received? end return content rescue # DEBUG: Ruby compile-time or runtime errors will be captured # here. eRuby returns the error messages as an HTML document. str = "#{$!}: #{reply}" Log::log(Log::ERROR, 'sub', str) return str end end