Comments (11)
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.
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.
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.
What do you use as a client? Can you please provide full dump of XML going as request?
from wash_out.
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.
7c854b9 should fix it. Give it a try please, use the :git feature of bundler it's not yet released.
from wash_out.
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.
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.
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.
@venticco indeed I did small typo out there in dispatcher. Fixed in HEAD. Thank you.
from wash_out.
e9a2ec0 is the revision where it finally works properly.
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.