lib/openwfe/participants/soapparticipants.rb in openwferu-0.9.2 vs lib/openwfe/participants/soapparticipants.rb in openwferu-0.9.3

- old
+ new

@@ -39,18 +39,30 @@ # John Mettraux at openwfe.org # require 'soap/rpc/driver' -require 'openwfe/participants/participants' +require 'openwfe/participants/participant' module OpenWFE # - # Stores the incoming workitem into an 'atom feed' + # Wrapping a simple web service call within an OpenWFEru participant. # - class SoapParticipant < LocalParticipant + # quote_service = OpenWFE::SoapParticipant.new( + # "http://services.xmethods.net/soap", # service URI + # "urn:xmethods-delayed-quotes", # namespace + # "getQuote", # operation name + # [ "symbol" ]) # param arrays (workitem fields) + # + # engine.register_participant("quote_service", quote_service) + # + # TODO #8425 : use blocks as hooks for the mapping (pre/post) + # of workitems into webservice operation params. + # + class SoapParticipant + include LocalParticipant def initialize \ (endpoint_url, namespace, method_name, params, param_prefix="") super()