From 642713358400c186a41856c5464a232a20d0ebd1 Mon Sep 17 00:00:00 2001
From: Leon Breedt
Date: Tue, 5 Apr 2005 22:29:01 +0000
Subject: support SOAP invocation of layered services in scaffolding too, fix
bug when method takes no parameters
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
---
.../lib/action_web_service/templates/scaffolds/parameters.rhtml | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'actionwebservice/lib/action_web_service/templates')
diff --git a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
index f06b0986b4..e7b5f47f03 100644
--- a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
+++ b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
@@ -9,6 +9,8 @@
<%= select_tag 'protocol', options_for_select([['SOAP', 'soap'], ['XML-RPC', 'xmlrpc']], @params['protocol']) %>
+<% if @scaffold_method.expects %>
+
Method Parameters:
<% @scaffold_method.expects.each do |type| %>
@@ -17,6 +19,8 @@
<% end %>
+<% end %>
+
<%= submit_tag "Invoke" %>
--
cgit v1.2.3