mumboe / soap4r Goto Github PK
View Code? Open in Web Editor NEWThis project forked from swalterd/soap4r
Modified soap4r library to run on Ruby 1.9
License: Other
This project forked from swalterd/soap4r
Modified soap4r library to run on Ruby 1.9
License: Other
After installing gem soap4:
ruby -r xmlparser -r soap/wsdlDriver -e '0'
libxmlparser.rb:18:in `class:LibXMLParser': uninitialized constant XML::SaxParser
Regards
#@driver is a httpclient obj.
def close_ssl_verify
@driver.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE
end
def set_timeout(timeout = 30)
puts @driver.options['protocol.http.receive_timeout']
@driver.options['protocol.http.receive_timeout'] = timeout * 60
end
then connecting to https:// server, the error as the title appears.
But when I switch to Root user, It's all ok. But I think it's not need for root privige. So plz fix it .
ENV:
ruby1.9.2
ubuntu10.10
httpclient: 2.2.3
soap4r-ruby1.9 dependency on it.
Thx.
file soap/mapping/mapping.rb needs some fixes:
obj.instance_variables inclusion is checked used strings. In ruby 1.9 Object#instance_variables returns an array of symbols so using Array#include? with a string parameter will always return false.
I suggest the following fixes that will work in both ruby 1.9 and 1.8:
@line 254
ivars = obj.instance_variables.collect{|t| t.to_s}
@line 314
iv = obj.instance_variables.collect{|t| t.to_s}
I get a deprecation warning on Ruby 1.9.3:
mumboe-soap4r-1.5.8.5/lib/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
when I try to use a moudle_path option:
wsdl2ruby.rb.bat --force --module_path ModuleName --type client --wsdl wsdlFile.wsdl
I'm gettinng this error:
FATAL -- app: Detected an exception. Stopping ... undefined method 'each' for "ModuleName":String (NoMethodError)
D:/Ruby193/lib/ruby/gems/1.9.1/gems/mumboe-soap4r-1.5.8.7/lib/wsdl/soap/driverCreator.rb:36:in 'dump'
D:/Ruby193/lib/ruby/gems/1.9.1/gems/mumboe-soap4r-1.5.8.7/lib/wsdl/soap/wsdl2ruby.rb:162:in 'block in create_driver'
Using ruby 1.9.3 I get the following when loading soap4r:
soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u
soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u
soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.