New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to define minOccurs from the soap_action? #10
Comments
I tried defining the soap_action as: The wsdl showed minOccurs=0 correctly as expected. However, I still get fault response Server Required SOAP parameter 'program_name' is missingWhat else I need to declare in soap_action to get rid of the fault messages? |
The latter case will define all the parameters as arrays. There's no way to define non-required parameter in wash_out atm 😢. Let me allow that for you. |
Fixed in 0.3.2 |
Hi, I am stuck with couple of more issues. I am new to Ruby & Rails hence there are some other of problems too. NoMethodError (undefined method `with_indifferent_access' for ["id", "1001"]:Array): When I send request with multiple program nodes, it works well. Second issue is, I had raised Issue 10 - you have closed it - however, if a tag is missing in the request, it still throws Required SOAP parameter 'program_name' is missing Only if the data is missing within the tag, it passes and reaches my controller code. |
Please don't post to closed issues with additional requests. Create new issues. For the first part I'll need some of your code to reproduce it. For the last part we've got a unit test and it's green. So I'll probably need a code too. |
Apologies for the inconvenience. Added another issue. -----Original Message----- Please don't post to closed issues with additional requests. Create new issues. For the first part I'll need some of your code to reproduce it. For the last part we've got a unit test and it's green. So I'll probably need a code too. Reply to this email directly or view it on GitHub: |
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
The text was updated successfully, but these errors were encountered: