aka soap4r because the original author no longer maintain it.
gem install soap2r
SOAP4R is an implementation of SOAP 1.1 (W3C Note) for Ruby
Home Page: http://dev.ctor.org/soap4r
License: Other
Latest rubygems version is from 2007
Operating system is window7,when I use SOAP::WSDLDriverFactory to calling WSDL generated by .net WCF ,the Console show error as follows:
REXML::UndefinedNamespaceException (Undefined prefix s found)
require 'soap/wsdlDriver'
WSDL_URL = "http://10.68.2.17/PacsService/PacsService.svc?wsdl"
factory = SOAP::WSDLDriverFactory.new(WSDL_URL)
driver = factory.create_rpc_driver
puts driver.GetPatientInfo(:id=>'1')
WSDL as follows:
<wsdl:definitions name="PacsService" targetNamespace="http://tempuri.org/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://10.68.2.17/PacsService/PacsService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://10.68.2.17/PacsService/PacsService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import schemaLocation="http://10.68.2.17/PacsService/PacsService.svc?xsd=xsd2" namespace="http://schemas.microsoft.com/Message"/>
</xsd:schema>
</wsdl:types>
……
Getting the following error when trying to use your library (master):
NameError: uninitialized constant REXML::Element
from /Users/wprater/.rvm/gems/ruby-1.9.2-p180/bundler/gems/soap4r-733f7fba5521/lib/soap/mapping/mapping.rb:128:in `_obj2soap'
Requiring document in mapping.rb will subdue it
require 'rexml/document'
I've got the following error with soap2r gem:
/home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:341:in instance_variable_set': can't modify frozen NilClass (RuntimeError) from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:341:in
block in set_attributes'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:334:in each' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:334:in
set_attributes'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/factory.rb:88:in setiv2struct' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/factory.rb:35:in
setiv2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:413:in unknownstruct2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:373:in
unknowntype2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:229:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:381:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:309:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:154:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:355:in block in anytype2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/baseData.rb:620:in
each'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:353:in anytype2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:378:in
unknowntype2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:229:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:381:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:309:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:154:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:355:in block in anytype2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/baseData.rb:620:in
each'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:353:in anytype2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:378:in
unknowntype2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/rubytypeFactory.rb:229:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:381:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/encodedregistry.rb:309:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:154:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/wsdlencodedregistry.rb:64:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:154:in
_soap2obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:65:in block in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:559:in
block in protect_mapping'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:532:in protect_threadvars' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:548:in
protect_mapping'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/mapping/mapping.rb:64:in soap2obj' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/rpc/proxy.rb:536:in
response_rpc_enc'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/rpc/proxy.rb:519:in response_rpc' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/rpc/proxy.rb:420:in
response_obj'
from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/rpc/proxy.rb:163:in call' from /home/site/.rvm/gems/ruby-2.2.1@ruby22/gems/soap2r-1.5.8/lib/soap/rpc/driver.rb:151:in
call'
I noticed that you fixed the error with ruby 1.9 a while ago where the XML processor module was not found because a symbol was being downcased and compared to a string.
(f23143e)
Could you update the gem for rubygems.org so that installing the gem with 'gem install' (or via bundler) will pull down the new, correct version? For what it's worth, I'm using master with ruby 1.9 and I haven't run into any issues at all.
this happens if you call bundle show soap4r. I fixed it by taking out SPEC = and just used
Gem::Specification.new do |s| for line 5 in the gemspec file
I am getting this when i am trying to establish a request, ruby(1.9.2)
I was able to fix it by adding
"require 'continuation' in lib/soap/mapping/rubytypeFactory.rb
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.