mumboe-soap4r 1.5.8.6 → 1.5.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/soap/mapping/mapping.rb +3 -3
- metadata +35 -66
- data/test/wsdl/marshal/Person.rb +0 -1
- data/test/wsdl/simpletype/rpc/echo_version.rb +0 -1
- data/test/wsdl/simpletype/rpc/echo_versionDriver.rb +0 -10
- data/test/wsdl/simpletype/rpc/echo_versionMappingRegistry.rb +0 -4
- data/test/wsdl/simpletype/rpc/echo_versionServant.rb +0 -3
- data/test/wsdl/simpletype/rpc/echo_version_service.rb +0 -3
- data/test/wsdl/simpletype/rpc/echo_version_serviceClient.rb +0 -34
- data/test/wsdl/soap/wsdl2ruby/echo_version.rb +0 -1
- data/test/wsdl/soap/wsdl2ruby/echo_versionDriver.rb +0 -10
- data/test/wsdl/soap/wsdl2ruby/echo_versionMappingRegistry.rb +0 -4
- data/test/wsdl/soap/wsdl2ruby/echo_versionServant.rb +0 -3
- data/test/wsdl/soap/wsdl2ruby/echo_version_service.cgi +0 -3
- data/test/wsdl/soap/wsdl2ruby/echo_version_service.rb +0 -7
- data/test/wsdl/soap/wsdl2ruby/echo_version_serviceClient.rb +0 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9c101041ebcf02f846e58f901d55cf058fa88c30
|
4
|
+
data.tar.gz: 43c14f2cd1f4c993a7a3b875fa922f2bcbab7811
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 265b17ace70f8f09c3b317afb0de46b62128d1e433fbbb69fcd40e9e5cb96db0fd8cd79710e7775a906cfc470cec076bd6550dc85eef376e7fb292040d0efad5
|
7
|
+
data.tar.gz: 212429e5f95f0ee352eedeeb0011f086df5e263a85f4160a100a0cdbbfaa039f45840c408663f794e4ef220c84c8ddd2d4734756d2e9eee50fb548b392f1ada5
|
data/lib/soap/mapping/mapping.rb
CHANGED
@@ -251,7 +251,7 @@ module Mapping
|
|
251
251
|
|
252
252
|
def self.obj2element(obj)
|
253
253
|
name = namespace = nil
|
254
|
-
ivars = obj.instance_variables
|
254
|
+
ivars = obj.instance_variables.collect{|t| t.to_s}
|
255
255
|
if ivars.include?('@schema_type')
|
256
256
|
name = obj.instance_variable_get('@schema_type')
|
257
257
|
end
|
@@ -286,7 +286,7 @@ module Mapping
|
|
286
286
|
else
|
287
287
|
rs = {}
|
288
288
|
obj.instance_variables.each do |ele|
|
289
|
-
rs[ele.sub(/^@/, '')] = obj.instance_variable_get(ele)
|
289
|
+
rs[ele.to_s.sub(/^@/, '')] = obj.instance_variable_get(ele)
|
290
290
|
end
|
291
291
|
rs
|
292
292
|
end
|
@@ -311,7 +311,7 @@ module Mapping
|
|
311
311
|
if obj.respond_to?(attr_name)
|
312
312
|
return obj.__send__(attr_name)
|
313
313
|
end
|
314
|
-
iv = obj.instance_variables
|
314
|
+
iv = obj.instance_variables.collect{|t| t.to_s}
|
315
315
|
name = Mapping.safevarname(attr_name)
|
316
316
|
if iv.include?("@#{name}")
|
317
317
|
return obj.instance_variable_get("@#{name}")
|
metadata
CHANGED
@@ -1,47 +1,37 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumboe-soap4r
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 1
|
7
|
-
- 5
|
8
|
-
- 8
|
9
|
-
- 6
|
10
|
-
version: 1.5.8.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.8.7
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- 'Scott Diedrick (modifier: swalterd)'
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: httpclient
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 1
|
31
|
-
- 1
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
32
19
|
version: 2.1.1
|
33
20
|
type: :runtime
|
34
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.1.1
|
35
27
|
description:
|
36
28
|
email: swalterd@gmail.com
|
37
|
-
executables:
|
29
|
+
executables:
|
38
30
|
- wsdl2ruby.rb
|
39
31
|
- xsd2ruby.rb
|
40
32
|
extensions: []
|
41
|
-
|
42
33
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
34
|
+
files:
|
45
35
|
- bin/wsdl2ruby.rb
|
46
36
|
- bin/xsd2ruby.rb
|
47
37
|
- lib/soap/attachment.rb
|
@@ -393,7 +383,6 @@ files:
|
|
393
383
|
- test/wsdl/map/map.wsdl
|
394
384
|
- test/wsdl/map/map.xml
|
395
385
|
- test/wsdl/map/test_map.rb
|
396
|
-
- test/wsdl/marshal/Person.rb
|
397
386
|
- test/wsdl/marshal/person.wsdl
|
398
387
|
- test/wsdl/marshal/person_org.rb
|
399
388
|
- test/wsdl/marshal/test_wsdlmarshal.rb
|
@@ -427,12 +416,6 @@ files:
|
|
427
416
|
- test/wsdl/rpc/test_rpc_lit.rb
|
428
417
|
- test/wsdl/simplecontent/simplecontent.wsdl
|
429
418
|
- test/wsdl/simplecontent/test_simplecontent.rb
|
430
|
-
- test/wsdl/simpletype/rpc/echo_version.rb
|
431
|
-
- test/wsdl/simpletype/rpc/echo_version_service.rb
|
432
|
-
- test/wsdl/simpletype/rpc/echo_version_serviceClient.rb
|
433
|
-
- test/wsdl/simpletype/rpc/echo_versionDriver.rb
|
434
|
-
- test/wsdl/simpletype/rpc/echo_versionMappingRegistry.rb
|
435
|
-
- test/wsdl/simpletype/rpc/echo_versionServant.rb
|
436
419
|
- test/wsdl/simpletype/rpc/expectedClient.rb
|
437
420
|
- test/wsdl/simpletype/rpc/expectedDriver.rb
|
438
421
|
- test/wsdl/simpletype/rpc/expectedEchoVersion.rb
|
@@ -445,13 +428,6 @@ files:
|
|
445
428
|
- test/wsdl/simpletype/test_simpletype.rb
|
446
429
|
- test/wsdl/soap/soapbodyparts.wsdl
|
447
430
|
- test/wsdl/soap/test_soapbodyparts.rb
|
448
|
-
- test/wsdl/soap/wsdl2ruby/echo_version.rb
|
449
|
-
- test/wsdl/soap/wsdl2ruby/echo_version_service.cgi
|
450
|
-
- test/wsdl/soap/wsdl2ruby/echo_version_service.rb
|
451
|
-
- test/wsdl/soap/wsdl2ruby/echo_version_serviceClient.rb
|
452
|
-
- test/wsdl/soap/wsdl2ruby/echo_versionDriver.rb
|
453
|
-
- test/wsdl/soap/wsdl2ruby/echo_versionMappingRegistry.rb
|
454
|
-
- test/wsdl/soap/wsdl2ruby/echo_versionServant.rb
|
455
431
|
- test/wsdl/soap/wsdl2ruby/expectedClassdef.rb
|
456
432
|
- test/wsdl/soap/wsdl2ruby/expectedClient.rb
|
457
433
|
- test/wsdl/soap/wsdl2ruby/expectedDriver.rb
|
@@ -484,35 +460,28 @@ files:
|
|
484
460
|
- test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
|
485
461
|
- test/xsd/xsd2ruby/section.xsd
|
486
462
|
- test/xsd/xsd2ruby/test_xsd2ruby.rb
|
487
|
-
has_rdoc: true
|
488
463
|
homepage: https://github.com/mumboe/soap4r
|
489
464
|
licenses: []
|
490
|
-
|
465
|
+
metadata: {}
|
491
466
|
post_install_message:
|
492
467
|
rdoc_options: []
|
493
|
-
|
494
|
-
require_paths:
|
468
|
+
require_paths:
|
495
469
|
- lib
|
496
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
497
|
-
requirements:
|
498
|
-
- -
|
499
|
-
- !ruby/object:Gem::Version
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
- !ruby/object:Gem::Version
|
507
|
-
segments:
|
508
|
-
- 0
|
509
|
-
version: "0"
|
470
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
471
|
+
requirements:
|
472
|
+
- - '>='
|
473
|
+
- !ruby/object:Gem::Version
|
474
|
+
version: '0'
|
475
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
476
|
+
requirements:
|
477
|
+
- - '>='
|
478
|
+
- !ruby/object:Gem::Version
|
479
|
+
version: '0'
|
510
480
|
requirements: []
|
511
|
-
|
512
481
|
rubyforge_project:
|
513
|
-
rubygems_version:
|
482
|
+
rubygems_version: 2.0.3
|
514
483
|
signing_key:
|
515
|
-
specification_version:
|
484
|
+
specification_version: 4
|
516
485
|
summary: An implementation of SOAP 1.1 for Ruby.
|
517
|
-
test_files:
|
486
|
+
test_files:
|
518
487
|
- test/runner.rb
|
data/test/wsdl/marshal/Person.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'echo_version.rb'
|
2
|
-
require 'echo_versionMappingRegistry.rb'
|
3
|
-
require 'soap/rpc/driver'
|
4
|
-
|
5
|
-
classEcho_version_port_type<::SOAP::RPC::Driver DefaultEndpointUrl="http://localhost:10080"NsSimpletypeRpc="urn:example.com:simpletype-rpc"
|
6
|
-
Methods=[[XSD::QName.new(NsSimpletypeRpc,"echo_version"),"urn:example.com:simpletype-rpc","echo_version",[[:in,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]],[:retval,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}],[XSD::QName.new(NsSimpletypeRpc,"echo_version_r"),"urn:example.com:simpletype-rpc","echo_version_r",[[:in,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]],[:retval,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}]]
|
7
|
-
definitialize(endpoint_url=nil)endpoint_url||=DefaultEndpointUrlsuper(endpoint_url,nil)self.mapping_registry=Echo_versionMappingRegistry::EncodedRegistryself.literal_mapping_registry=Echo_versionMappingRegistry::LiteralRegistryinit_methodsend
|
8
|
-
private
|
9
|
-
|
10
|
-
definit_methodsMethods.eachdo|definitions|opt=definitions.lastifopt[:request_style]==:documentadd_document_operation(*definitions)elseadd_rpc_operation(*definitions)qname=definitions[0]name=definitions[2]ifqname.name!=nameandqname.name.capitalize==name.capitalize::SOAP::Mapping.define_singleton_method(self,qname.name)do|*arg|__send__(name,*arg)endendendendendend
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'echo_versionDriver.rb'
|
3
|
-
|
4
|
-
endpoint_url = ARGV.shift
|
5
|
-
obj = Echo_version_port_type.new(endpoint_url)
|
6
|
-
|
7
|
-
# run ruby with -d to see SOAP wiredumps.
|
8
|
-
obj.wiredump_dev = STDERR if $DEBUG
|
9
|
-
|
10
|
-
# SYNOPSIS
|
11
|
-
# echo_version(version)
|
12
|
-
#
|
13
|
-
# ARGS
|
14
|
-
# version Version - {urn:example.com:simpletype-rpc-type}version
|
15
|
-
#
|
16
|
-
# RETURNS
|
17
|
-
# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct
|
18
|
-
#
|
19
|
-
version = nil
|
20
|
-
puts obj.echo_version(version)
|
21
|
-
|
22
|
-
# SYNOPSIS
|
23
|
-
# echo_version_r(version_struct)
|
24
|
-
#
|
25
|
-
# ARGS
|
26
|
-
# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct
|
27
|
-
#
|
28
|
-
# RETURNS
|
29
|
-
# version Version - {urn:example.com:simpletype-rpc-type}version
|
30
|
-
#
|
31
|
-
version_struct = nil
|
32
|
-
puts obj.echo_version_r(version_struct)
|
33
|
-
|
34
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'echo_version.rb'
|
2
|
-
require 'echo_versionMappingRegistry.rb'
|
3
|
-
require 'soap/rpc/driver'
|
4
|
-
|
5
|
-
classEcho_version_port_type<::SOAP::RPC::Driver DefaultEndpointUrl="http://localhost:10080"NsSimpletypeRpc="urn:example.com:simpletype-rpc"
|
6
|
-
Methods=[[XSD::QName.new(NsSimpletypeRpc,"echo_version"),"urn:example.com:simpletype-rpc","echo_version",[[:in,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]],[:retval,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}],[XSD::QName.new(NsSimpletypeRpc,"echo_version_r"),"urn:example.com:simpletype-rpc","echo_version_r",[[:in,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]],[:retval,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}]]
|
7
|
-
definitialize(endpoint_url=nil)endpoint_url||=DefaultEndpointUrlsuper(endpoint_url,nil)self.mapping_registry=Echo_versionMappingRegistry::EncodedRegistryself.literal_mapping_registry=Echo_versionMappingRegistry::LiteralRegistryinit_methodsend
|
8
|
-
private
|
9
|
-
|
10
|
-
definit_methodsMethods.eachdo|definitions|opt=definitions.lastifopt[:request_style]==:documentadd_document_operation(*definitions)elseadd_rpc_operation(*definitions)qname=definitions[0]name=definitions[2]ifqname.name!=nameandqname.name.capitalize==name.capitalize::SOAP::Mapping.define_singleton_method(self,qname.name)do|*arg|__send__(name,*arg)endendendendendend
|
@@ -1,7 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'echo_versionServant.rb'
|
3
|
-
require 'echo_versionMappingRegistry.rb'
|
4
|
-
require'soap/rpc/standaloneServer'
|
5
|
-
classEcho_version_port_type NsSimpletypeRpc="urn:example.com:simpletype-rpc"
|
6
|
-
Methods=[[XSD::QName.new(NsSimpletypeRpc,"echo_version"),"urn:example.com:simpletype-rpc","echo_version",[[:in,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]],[:retval,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}],[XSD::QName.new(NsSimpletypeRpc,"echo_version_r"),"urn:example.com:simpletype-rpc","echo_version_r",[[:in,"version_struct",["Version_struct","urn:example.com:simpletype-rpc-type","version_struct"]],[:retval,"version",[nil,"urn:example.com:simpletype-rpc-type","version"]]],{:request_style=>:rpc,:request_use=>:encoded,:response_style=>:rpc,:response_use=>:encoded,:faults=>{}}]]end
|
7
|
-
classEcho_version_port_typeApp<::SOAP::RPC::StandaloneServer definitialize(*arg)super(*arg)servant=Echo_version_port_type.newEcho_version_port_type::Methods.eachdo|definitions|opt=definitions.lastifopt[:request_style]==:document@router.add_document_operation(servant,*definitions)else@router.add_rpc_operation(servant,*definitions)endendself.mapping_registry=Echo_versionMappingRegistry::EncodedRegistryself.literal_mapping_registry=Echo_versionMappingRegistry::LiteralRegistryendendif$0==__FILE__#Changelistenport.server=Echo_version_port_typeApp.new('app',nil,'0.0.0.0',10080)trap(:INT)doserver.shutdownendserver.startend
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'echo_versionDriver.rb'
|
3
|
-
|
4
|
-
endpoint_url = ARGV.shift
|
5
|
-
obj = Echo_version_port_type.new(endpoint_url)
|
6
|
-
|
7
|
-
# run ruby with -d to see SOAP wiredumps.
|
8
|
-
obj.wiredump_dev = STDERR if $DEBUG
|
9
|
-
|
10
|
-
# SYNOPSIS
|
11
|
-
# echo_version(version)
|
12
|
-
#
|
13
|
-
# ARGS
|
14
|
-
# version Version - {urn:example.com:simpletype-rpc-type}version
|
15
|
-
#
|
16
|
-
# RETURNS
|
17
|
-
# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct
|
18
|
-
#
|
19
|
-
version = nil
|
20
|
-
puts obj.echo_version(version)
|
21
|
-
|
22
|
-
# SYNOPSIS
|
23
|
-
# echo_version_r(version_struct)
|
24
|
-
#
|
25
|
-
# ARGS
|
26
|
-
# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct
|
27
|
-
#
|
28
|
-
# RETURNS
|
29
|
-
# version Version - {urn:example.com:simpletype-rpc-type}version
|
30
|
-
#
|
31
|
-
version_struct = nil
|
32
|
-
puts obj.echo_version_r(version_struct)
|
33
|
-
|
34
|
-
|