roundlake/wash_out — Issue #10: How to define minOccurs from the soap_action?
Author: arrk-shoba
Created: 2012-03-09 11:51:57+00:00
State: open

In my controller I have a method 'upload_program'. The soap action is defined as follows:
soap_action "upload_program",
:args => { :import_request => { :programmes => { :program => [{ :id => :string, :program_name => :string,
:jacs_code => :string, :school_name => :string, :faculty_name => :string,
:study_type => :string, :record_type => :string }] } } },
:return => :xml
def upload_program
...
end
I am testing using SoapUI and all the elements are treated as 'required=true'. I want to know how can I define any of the elements as non-mandatory. Foe example the 'faculty_name' might not be sent in the SOAP request