164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
# File 'lib/action_service/router/wsdl.rb', line 164
def wsdl
case @request.method
when :get
begin
uri = "http://#{@request.env['HTTP_HOST']||@request.env['SERVER_NAME']}/#{controller_name}/"
soap_action_base = "/#{controller_name}"
xml = self.class.to_wsdl(self, uri, soap_action_base)
send_data(xml, :type => 'text/xml', :disposition => 'inline')
rescue Exception => e
render_text('', "500 #{e.message}")
end
when :post
render_text('', "500 POST not supported")
end
end
|