Giter VIP home page Giter VIP logo

Comments (6)

arrk-shoba avatar arrk-shoba commented on May 15, 2024

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 missing

What else I need to declare in soap_action to get rid of the fault messages?

from wash_out.

inossidabile avatar inossidabile commented on May 15, 2024

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.

inossidabile avatar inossidabile commented on May 15, 2024

Fixed in 0.3.2

from wash_out.

arrk-shoba avatar arrk-shoba commented on May 15, 2024

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.

inossidabile avatar inossidabile commented on May 15, 2024

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.

arrk-shoba avatar arrk-shoba commented on May 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.