Git Product home page Git Product logo

Comments (11)

whitequark avatar whitequark commented on May 18, 2024

No, 1.8 is currently not a target for WashOut.

I have looked into the problem, through, and while you can just comment out the force_encoding line (or, better, append if soap_action.respond_to? :force_encoding to it), it still dies somewhere deep in Rails internals.

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

What's really broken in 1.8.7 it's the way we handle our specs. In some unknown (yet) reason mocking technique we use to test lib dies deep at rails internals at "render :anything" call. I'm currently investigating it.

Anyway, new build (0.2.3) comes with fix to "force_encoding". Quick look over sources didn't show me any more incompatibility points. So you can try it and give us feedback while we are working on that weird problem.

from wash_out.

alishutc avatar alishutc commented on May 18, 2024

I tried this myself the other day - can now successfully generate the wsdl, however it now fails when calling any action.
The problem seems to be in the dispatcher, in the line xml_data = params[:envelope][:body][soap_action.underscore.to_sym]
The actual params hash however seems to be keyed with strings, including the xml namespace e.g "soapenv:Envelope" - although I also see this behaviour if I switch to using 1.9.2.

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

What do you use as a client? Can you please provide full dump of XML going as request?

from wash_out.

alishutc avatar alishutc commented on May 18, 2024

SoapUI. Just pointed it at the WSDL. XML looks like this:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:WashOut"> <soapenv:Header/> <soapenv:Body> <urn:integer_to_string soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <value xsi:type="xsd:integer">1</value> </urn:integer_to_string> </soapenv:Body> </soapenv:Envelope>
I'll write a client using savon when I have time and see if the behaviour is the same.

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

7c854b9 should fix it. Give it a try please, use the :git feature of bundler it's not yet released.

from wash_out.

alishutc avatar alishutc commented on May 18, 2024

Still no joy - tried Rails 3.0.11\Ruby 1.8.7 and Rails 3.1.3\Ruby 1.9.2.
Fails on line 21 of dispatcher.rb in both cases.

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

We've just pushed new version (0.2.4) to ruby gems. It fixes a lot of stuff about WSDL and dispatcher handling. Give it a try please. It's supposed to solve your problem.

To ensure your usage is well please compare it to sample project I've created: https://github.com/roundlake/wash_out-sample. I tried it with both SoapUI and Savon actually and it works like a charm. It either works well with ruby 1.8.7.

from wash_out.

venticco avatar venticco commented on May 18, 2024

I just tested version 0.2.4 with git path for Gemfile from sample app - works only under 1.9.2, in 1.8.7 it fails - tested both with included savon rake and SoapUI. WSDL file is generated, but still there is action error.

NoMethodError
in RumbasController#_action
undefined method `[]' for :"@soapenv:encoding_style":Symbol

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

@venticco indeed I did small typo out there in dispatcher. Fixed in HEAD. Thank you.

from wash_out.

inossidabile avatar inossidabile commented on May 18, 2024

e9a2ec0 is the revision where it finally works properly.

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.