Module: ActionWebService::Dispatcher::ActionController::WsdlAction

Defined in:
lib/action_web_service/dispatcher/action_controller_dispatcher.rb

Overview

:nodoc:

Constant Summary collapse

XsdNs =
'http://www.w3.org/2001/XMLSchema'
WsdlNs =
'http://schemas.xmlsoap.org/wsdl/'
SoapNs =
'http://schemas.xmlsoap.org/wsdl/soap/'
SoapEncodingNs =
'http://schemas.xmlsoap.org/soap/encoding/'
SoapHttpTransport =
'http://schemas.xmlsoap.org/soap/http'

Instance Method Summary collapse

Instance Method Details

#wsdlObject



148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/action_web_service/dispatcher/action_controller_dispatcher.rb', line 148

def wsdl
  case request.method
  when :get
    begin
      options = { :type => 'text/xml', :disposition => 'inline' }
      send_data(to_wsdl, options)
    rescue Exception => e
      log_error(e) unless logger.nil?
    end
  when :post
    render_text('POST not supported', '500 POST not supported')
  end
end