Sha256: f866452b697d244315e3a07628248d0ca1f3d45089d9b5755fc70ca735b510ac

Contents?: true

Size: 930 Bytes

Versions: 11

Compression:

Stored size: 930 Bytes

Contents

module WashoutBuilder
  # The WashoutBuilder::Dispatcher module should be included in a controller acting
  # as a SOAP endpoint. It includes actions for generating WSDL and handling
  # SOAP requests.
  module Dispatcher
    
    def _generate_doc
      @document = WashoutBuilder::Document::Generator.new(
        :config => soap_config, 
        :service_class => self.class,  
        :soap_actions => self.class.soap_actions
      )
      
      render :template => "wash_with_html/doc", :layout => false,
        :content_type => 'text/html'
    end
     
    def self.included(controller)
      controller.send :helper,:washout_builder
      controller.send :before_filter, :_authenticate_wsse, :except => [
        :_generate_wsdl, :_generate_doc,:_invalid_action ]
      controller.send :before_filter, :_map_soap_parameters, :except => [
        :_generate_wsdl,:_generate_doc, :_invalid_action ]
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
washout_builder-0.11.8 lib/washout_builder/dispatcher.rb
washout_builder-0.11.7 lib/washout_builder/dispatcher.rb
washout_builder-0.11.5 lib/washout_builder/dispatcher.rb
washout_builder-0.11.4 lib/washout_builder/dispatcher.rb
washout_builder-0.11.3 lib/washout_builder/dispatcher.rb
washout_builder-0.11.2 lib/washout_builder/dispatcher.rb
washout_builder-0.11.1 lib/washout_builder/dispatcher.rb
washout_builder-0.10.4 lib/washout_builder/dispatcher.rb
washout_builder-0.10.3 lib/washout_builder/dispatcher.rb
washout_builder-0.10.2 lib/washout_builder/dispatcher.rb
washout_builder-0.10.1 lib/washout_builder/dispatcher.rb