Comments (6)
I tried defining the soap_action as:
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
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?
from wash_out.
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.
from wash_out.
Fixed in 0.3.2
from wash_out.
Hi,
I am stuck with couple of more issues. I am new to Ruby & Rails hence there are some other of problems too.
I took the gem update & have wash-out 0.3.2. However, my request xml is tightly coupled to the args defined for soap_action. As mentioned above, my request xml is a complex structure. I can have 1 or many program nodes with programmes. However, if I send a SOAP request with only 1 program node, it fails with the following error:
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.
from wash_out.
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.
from wash_out.
Apologies for the inconvenience. Added another issue.
-----Original Message-----
From: Boris Staal [mailto:[email protected]]
Sent: 14 March 2012 13:49
To: arrk-shoba
Subject: Re: [wash_out] How to define minOccurs from the soap_action? (#10)
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:
https://github.com/roundlake/wash_out/issues/10#issuecomment-4493839
from wash_out.
Related Issues (20)
- Please release 0.12.0 of gem HOT 2
- Duplicate use of `data` type name. Consider using classified types. HOT 2
- WSDL file not getting generated
- Append "Request" to the input name ?
- Map XML arguments (XSD) to ruby class HOT 1
- Handling duplicate elements in soap request HOT 3
- How to handle multiple namespaces in wash_out gem
- HTTPS protocol HOT 1
- Collection Type in Args HOT 1
- Enable MTOM
- Receive the value and attributes in the same label HOT 2
- Changing xsi:type for arrays
- Receive attachments with wash_out HOT 2
- WS Security support HOT 2
- Usability: Can we log the call XML?
- wsse_auth_callback: Code vs Documentation HOT 1
- Could not reach the SOAP API action through washout gem HOT 1
- Bad call to route formatter on Rails 5 (WashOut::Router.url)
- Does WashOut::SOAP not work on Rails 6? HOT 1
- How can I skip wsse_auth_callback on certain actions?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wash_out.