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



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

def wsdl
  if request.get?
    begin
      options = { :type => 'text/xml', :disposition => 'inline' }
      send_data(to_wsdl, options)
    rescue Exception => e
      Rails.logger.error(e) unless logger.nil?
    end
  elsif request.post?
    render :status => 500, :text => 'POST not supported'
  end
end