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



151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/action_web_service/dispatcher/action_controller_dispatcher.rb', line 151

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 :status => 500, :text => 'POST not supported'
  end
end