aboutsummaryrefslogblamecommitdiffstats
path: root/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
blob: e7b5f47f03a0809a85f0fa98716313048fe0c6eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                                                            




                                                              




                                                                                                                

                                 
                                         
                                             
     

                                                                           
      

         

         




                                                       
<h4>Method Invocation Details for <em><%= @scaffold_service %>#<%= @scaffold_method.public_name %></em></h4>

<%= form_tag :action => @scaffold_action_name + '_submit'  %>
<%= hidden_field_tag "service", @scaffold_service.name %>
<%= hidden_field_tag "method", @scaffold_method.public_name %>

<p>
<label for="protocol">Protocol:</label><br />
<%= select_tag 'protocol', options_for_select([['SOAP', 'soap'], ['XML-RPC', 'xmlrpc']], @params['protocol']) %>
</p>

<% if @scaffold_method.expects %>

<strong>Method Parameters:</strong><br />
<% @scaffold_method.expects.each do |type| %>
  <p>
  <label for="method_params[]"><%= type.name.to_s.camelize %></label><br />
  <%= method_parameter_input_fields(@scaffold_method, type) %>
  </p>
<% end %>

<% end %>

<%= submit_tag "Invoke" %>

<p>
<%= link_to "Back", :action => @scaffold_action_name %>
</p>