Module: ActionWebService::Dispatcher::ActionController::WsdlGeneration
- 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
#wsdl ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/action_web_service/dispatcher/action_controller_dispatcher.rb', line 116 def wsdl case @request.method when :get begin host_name = @request.env['HTTP_HOST'] || @request.env['SERVER_NAME'] uri = "http://#{host_name}/#{controller_name}/" soap_action_base = "/#{controller_name}" xml = to_wsdl(self, uri, soap_action_base) send_data(xml, :type => 'text/xml', :disposition => 'inline') rescue Exception => e log_error e unless logger.nil? render_text('', "500 #{e.}") end when :post render_text('', "500 POST not supported") end end |