diff --git a/vendor/gems/soap4r-1.5.8/bin/wsdl2ruby.rb b/vendor/gems/soap4r-1.5.8/bin/wsdl2ruby.rb deleted file mode 100644 index 37bae513..00000000 --- a/vendor/gems/soap4r-1.5.8/bin/wsdl2ruby.rb +++ /dev/null @@ -1,137 +0,0 @@ -#!/usr/bin/env ruby - -require 'getoptlong' -require 'logger' -require 'wsdl/soap/wsdl2ruby' - - -class WSDL2RubyApp < Logger::Application -private - - OptSet = [ - ['--wsdl','-w', GetoptLong::REQUIRED_ARGUMENT], - ['--module_path','-m', GetoptLong::REQUIRED_ARGUMENT], - ['--type','-t', GetoptLong::REQUIRED_ARGUMENT], - ['--classdef','-e', GetoptLong::OPTIONAL_ARGUMENT], - ['--mapping_registry','-r', GetoptLong::NO_ARGUMENT], - ['--client_skelton','-c', GetoptLong::OPTIONAL_ARGUMENT], - ['--servant_skelton','-s', GetoptLong::OPTIONAL_ARGUMENT], - ['--cgi_stub','-g', GetoptLong::OPTIONAL_ARGUMENT], - ['--servlet_stub','-l', GetoptLong::OPTIONAL_ARGUMENT], - ['--standalone_server_stub','-a', GetoptLong::OPTIONAL_ARGUMENT], - ['--driver','-d', GetoptLong::OPTIONAL_ARGUMENT], - ['--drivername_postfix','-n', GetoptLong::REQUIRED_ARGUMENT], - ['--force','-f', GetoptLong::NO_ARGUMENT], - ['--quiet','-q', GetoptLong::NO_ARGUMENT], - ] - - def initialize - super('app') - STDERR.sync = true - self.level = Logger::FATAL - end - - def run - @worker = WSDL::SOAP::WSDL2Ruby.new - @worker.logger = @log - location, opt = parse_opt(GetoptLong.new(*OptSet)) - usage_exit unless location - @worker.location = location - if opt['quiet'] - self.level = Logger::FATAL - else - self.level = Logger::INFO - end - @worker.opt.update(opt) - @worker.run - 0 - end - - def usage_exit - puts <<__EOU__ -Usage: #{ $0 } --wsdl wsdl_location [options] - wsdl_location: filename or URL - -Example: - For server side: - #{ $0 } --wsdl myapp.wsdl --type server - For client side: - #{ $0 } --wsdl myapp.wsdl --type client - -Options: - --wsdl wsdl_location - --type server|client - --type server implies; - --classdef --mapping_registry --servant_skelton --standalone_server_stub - --type client implies; - --classdef --mapping_registry --client_skelton --driver - --classdef [filenameprefix] - --mapping_registry - --client_skelton [servicename] - --servant_skelton [porttypename] - --cgi_stub [servicename] - --servlet_stub [servicename] - --standalone_server_stub [servicename] - --driver [porttypename] - --drivername_postfix driver_classname_postfix - --module_path Module::Path::Name - --force - --quiet - -Terminology: - Client <-> Driver <-(SOAP)-> Stub <-> Servant - - Driver and Stub: Automatically generated - Client and Servant: Skelton generated (you should change) -__EOU__ - exit 1 - end - - def parse_opt(getoptlong) - opt = {} - wsdl = nil - begin - getoptlong.each do |name, arg| - case name - when "--wsdl" - wsdl = arg - when "--module_path" - opt['module_path'] = arg - when "--type" - case arg - when "server" - opt['classdef'] ||= nil - opt['mapping_registry'] ||= nil - opt['servant_skelton'] ||= nil - opt['standalone_server_stub'] ||= nil - when "client" - opt['classdef'] ||= nil - opt['mapping_registry'] ||= nil - opt['driver'] ||= nil - opt['client_skelton'] ||= nil - else - raise ArgumentError.new("Unknown type #{ arg }") - end - when "--classdef", "--mapping_registry", - "--client_skelton", "--servant_skelton", - "--cgi_stub", "--servlet_stub", "--standalone_server_stub", - "--driver" - opt[name.sub(/^--/, '')] = arg.empty? ? nil : arg - when "--drivername_postfix" - opt['drivername_postfix'] = arg - when "--force" - opt['force'] = true - when "--quiet" - opt['quiet'] = true - else - raise ArgumentError.new("Unknown type #{ arg }") - end - end - rescue - usage_exit - end - return wsdl, opt - end -end - -WSDL2RubyApp.new.start diff --git a/vendor/gems/soap4r-1.5.8/bin/xsd2ruby.rb b/vendor/gems/soap4r-1.5.8/bin/xsd2ruby.rb deleted file mode 100644 index 26dfc135..00000000 --- a/vendor/gems/soap4r-1.5.8/bin/xsd2ruby.rb +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env ruby - -require 'getoptlong' -require 'logger' -require 'wsdl/xmlSchema/xsd2ruby' - - -class XSD2RubyApp < Logger::Application -private - - OptSet = [ - ['--xsd','-x', GetoptLong::REQUIRED_ARGUMENT], - ['--module_path','-m', GetoptLong::REQUIRED_ARGUMENT], - ['--classdef','-e', GetoptLong::OPTIONAL_ARGUMENT], - ['--mapping_registry','-r', GetoptLong::NO_ARGUMENT], - ['--mapper','-p', GetoptLong::NO_ARGUMENT], - ['--force','-f', GetoptLong::NO_ARGUMENT], - ['--quiet','-q', GetoptLong::NO_ARGUMENT], - ] - - def initialize - super('app') - STDERR.sync = true - self.level = Logger::FATAL - end - - def run - @worker = WSDL::XMLSchema::XSD2Ruby.new - @worker.logger = @log - location, opt = parse_opt(GetoptLong.new(*OptSet)) - usage_exit unless location - @worker.location = location - if opt['quiet'] - self.level = Logger::FATAL - else - self.level = Logger::INFO - end - @worker.opt.update(opt) - @worker.run - 0 - end - - def usage_exit - puts <<__EOU__ -Usage: #{ $0 } --xsd xsd_location [options] - xsd_location: filename or URL - -Example: - #{ $0 } --xsd myapp.xsd --classdef foo - -Options: - --xsd xsd_location - --classdef [filenameprefix] - --mapping_registry - --mapper - --module_path [Module::Path::Name] - --force - --quiet -__EOU__ - exit 1 - end - - def parse_opt(getoptlong) - opt = {} - xsd = nil - begin - getoptlong.each do |name, arg| - case name - when "--xsd" - xsd = arg - when "--module_path" - opt['module_path'] = arg - when "--classdef", "--mapping_registry", "--mapper" - opt[name.sub(/^--/, '')] = arg.empty? ? nil : arg - when "--force" - opt['force'] = true - when "--quiet" - opt['quiet'] = true - else - raise ArgumentError.new("Unknown type #{ arg }") - end - end - rescue - usage_exit - end - return xsd, opt - end -end - -XSD2RubyApp.new.start diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes.rb b/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes.rb deleted file mode 100644 index 481f5523..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes.rb +++ /dev/null @@ -1,9 +0,0 @@ -# soap/XMLSchemaDatatypes.rb: SOAP4R - XML Schema Datatype implementation. -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'xsd/datatypes' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes1999.rb b/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes1999.rb deleted file mode 100644 index 928b40f4..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/XMLSchemaDatatypes1999.rb +++ /dev/null @@ -1,10 +0,0 @@ -# soap/XMLSchemaDatatypes1999.rb: SOAP4R - XML Schema Datatype 1999 support -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'xsd/datatypes1999' -load 'soap/mapping/typeMap.rb' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/attrproxy.rb b/vendor/gems/soap4r-1.5.8/lib/soap/attrproxy.rb new file mode 100644 index 00000000..0c25bf50 --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/soap/attrproxy.rb @@ -0,0 +1,34 @@ +# SOAP4R - attribute proxy interface. +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +module SOAP + + +module AttrProxy + def self.included(klass) + klass.extend(AttrProxyClassSupport) + end + + module AttrProxyClassSupport + def attr_proxy(symbol, assignable = false) + name = symbol.to_s + define_method(name) { + attrproxy.__send__(name) + } + if assignable + aname = name + '=' + define_method(aname) { |rhs| + attrproxy.__send__(aname, rhs) + } + end + end + end +end + + +end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/baseData.rb b/vendor/gems/soap4r-1.5.8/lib/soap/baseData.rb index 1b028fa7..562fed1b 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/baseData.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/baseData.rb @@ -48,6 +48,7 @@ module SOAPType attr_accessor :position attr_reader :extraattr attr_accessor :definedtype + attr_accessor :force_typed def initialize(*arg) super @@ -60,6 +61,7 @@ module SOAPType @position = nil @definedtype = nil @extraattr = {} + @force_typed = false end def inspect @@ -1020,7 +1022,7 @@ private if rank < @rank and data[idx] traverse_data(data[idx], rank + 1) do |*v| v[1, 0] = idx - yield(*v) + yield(*v) end else yield(data[idx], idx) @@ -1077,7 +1079,7 @@ private "#{typename}[" << ',' * (rank - 1) << ']' end - TypeParseRegexp = Regexp.new('^(.+)\[([\d,]*)\]$', nil, 'NONE') + TypeParseRegexp = Regexp.new('^(.+)\[([\d,]*)\]$') def self.parse_type(string) TypeParseRegexp =~ string diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/charset.rb b/vendor/gems/soap4r-1.5.8/lib/soap/charset.rb deleted file mode 100644 index b201a808..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/charset.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - Charset encoding handler. -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/compat.rb b/vendor/gems/soap4r-1.5.8/lib/soap/compat.rb deleted file mode 100644 index feb5e389..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/compat.rb +++ /dev/null @@ -1,182 +0,0 @@ -# SOAP4R - Compatibility definitions. -# Copyright (C) 2003 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -STDERR.puts "Loading compatibility library..." - - -require 'xsd/qname' -require 'xsd/ns' -require 'xsd/charset' -require 'soap/mapping' -require 'soap/rpc/rpc' -require 'soap/rpc/element' -require 'soap/rpc/driver' -require 'soap/rpc/cgistub' -require 'soap/rpc/router' -require 'soap/rpc/standaloneServer' - - -module SOAP - - -module RPC - RubyTypeNamespace = Mapping::RubyTypeNamespace - RubyTypeInstanceNamespace = Mapping::RubyTypeInstanceNamespace - RubyCustomTypeNamespace = Mapping::RubyCustomTypeNamespace - ApacheSOAPTypeNamespace = Mapping::ApacheSOAPTypeNamespace - - DefaultMappingRegistry = Mapping::DefaultRegistry - - def self.obj2soap(*arg); Mapping.obj2soap(*arg); end - def self.soap2obj(*arg); Mapping.soap2obj(*arg); end - def self.ary2soap(*arg); Mapping.ary2soap(*arg); end - def self.ary2md(*arg); Mapping.ary2md(*arg); end - def self.fault2exception(*arg); Mapping.fault2exception(*arg); end - - def self.defined_methods(obj) - if obj.is_a?(Module) - obj.methods - Module.methods - else - obj.methods - Kernel.instance_methods(true) - end - end -end - - -NS = XSD::NS -Charset = XSD::Charset -RPCUtils = RPC -RPCServerException = RPC::ServerException -RPCRouter = RPC::Router - - -class StandaloneServer < RPC::StandaloneServer - def initialize(*arg) - super - @router = @soaplet.app_scope_router - methodDef if respond_to?('methodDef') - end - - alias addServant add_servant - alias addMethod add_method - alias addMethodAs add_method_as -end - - -class CGIStub < RPC::CGIStub - def initialize(*arg) - super - methodDef if respond_to?('methodDef') - end - - alias addServant add_servant - - def addMethod(receiver, methodName, *paramArg) - addMethodWithNSAs(@default_namespace, receiver, methodName, methodName, *paramArg) - end - - def addMethodAs(receiver, methodName, methodNameAs, *paramArg) - addMethodWithNSAs(@default_namespace, receiver, methodName, methodNameAs, *paramArg) - end - - def addMethodWithNS(namespace, receiver, methodName, *paramArg) - addMethodWithNSAs(namespace, receiver, methodName, methodName, *paramArg) - end - - def addMethodWithNSAs(namespace, receiver, methodName, methodNameAs, *paramArg) - add_method_with_namespace_as(namespace, receiver, methodName, methodNameAs, *paramArg) - end -end - - -class Driver < RPC::Driver - include Logger::Severity - - attr_accessor :logdev - alias logDev= logdev= - alias logDev logdev - alias setWireDumpDev wiredump_dev= - alias setDefaultEncodingStyle default_encodingstyle= - alias mappingRegistry= mapping_registry= - alias mappingRegistry mapping_registry - - def initialize(log, logid, namespace, endpoint_url, httpproxy = nil, soapaction = nil) - super(endpoint_url, namespace, soapaction) - @logdev = log - @logid = logid - @logid_prefix = "<#{ @logid }> " - self.httpproxy = httpproxy if httpproxy - log(INFO) { 'initialize: initializing SOAP driver...' } - end - - def invoke(headers, body) - log(INFO) { "invoke: invoking message '#{ body.type }'." } - super - end - - def call(name, *params) - log(INFO) { "call: calling method '#{ name }'." } - log(DEBUG) { "call: parameters '#{ params.inspect }'." } - log(DEBUG) { - params = Mapping.obj2soap(params, @mapping_registry).to_a - "call: parameters '#{ params.inspect }'." - } - super - end - - def addMethod(name, *params) - addMethodWithSOAPActionAs(name, name, nil, *params) - end - - def addMethodAs(name_as, name, *params) - addMethodWithSOAPActionAs(name_as, name, nil, *params) - end - - def addMethodWithSOAPAction(name, soapaction, *params) - addMethodWithSOAPActionAs(name, name, soapaction, *params) - end - - def addMethodWithSOAPActionAs(name_as, name, soapaction, *params) - add_method_with_soapaction_as(name, name_as, soapaction, *params) - end - - def setLogDev(logdev) - self.logdev = logdev - end - -private - - def log(sev) - @logdev.add(sev, nil, self.class) { @logid_prefix + yield } if @logdev - end -end - - -module RPC - class MappingRegistry < SOAP::Mapping::Registry - def initialize(*arg) - super - end - - def add(obj_class, soap_class, factory, info = nil) - if (info.size > 1) - raise RuntimeError.new("Parameter signature changed. [namespace, name] should be { :type => XSD::QName.new(namespace, name) } from 1.5.0.") - end - @map.add(obj_class, soap_class, factory, { :type => info[0] }) - end - alias set add - end - - class Router - alias mappingRegistry mapping_registry - alias mappingRegistry= mapping_registry= - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/driver.rb b/vendor/gems/soap4r-1.5.8/lib/soap/driver.rb deleted file mode 100644 index beefaa61..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/driver.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - SOAP driver -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/literalHandler.rb b/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/literalHandler.rb index b8353703..6327edb0 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/literalHandler.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/literalHandler.rb @@ -29,8 +29,11 @@ class LiteralHandler < Handler def encode_data(generator, ns, data, parent) attrs = {} name = generator.encode_name(ns, data, attrs) + if data.type and data.type.name and + (@generate_explicit_type or data.force_typed) + data.extraattr[XSD::AttrTypeName] = data.type + end data.extraattr.each do |key, value| - next if !@generate_explicit_type and key == XSD::AttrTypeName keytag = key if key.is_a?(XSD::QName) keytag = encode_attr_key(attrs, ns, key) diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/soapHandler.rb b/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/soapHandler.rb index c4662bde..a14f533d 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/soapHandler.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/encodingstyle/soapHandler.rb @@ -284,7 +284,7 @@ private if data.is_a?(SOAPArray) if data.arytype.namespace Generator.assign_ns(attrs, ns, data.arytype.namespace) - end + end Generator.assign_ns(attrs, ns, EncodingNamespace) attrs[ns.name(AttrArrayTypeName)] = ns.name(create_arytype(ns, data)) if data.type.name @@ -542,7 +542,7 @@ private false elsif o = ref.rootnode.external_content[ref.refid] ref.__setobj__(o) - false + false else raise EncodingStyleError.new("unresolved reference: #{ref.refid}") end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/generator.rb b/vendor/gems/soap4r-1.5.8/lib/soap/generator.rb index d7326bf2..3968410d 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/generator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/generator.rb @@ -141,11 +141,8 @@ public @reftarget = nil else if obj.is_a?(SOAPEnvelope) - # xsi:nil="true" can appear even if dumping without explicit type. Generator.assign_ns(attrs, ns, XSD::InstanceNamespace) - if @generate_explicit_type - Generator.assign_ns(attrs, ns, XSD::Namespace) - end + Generator.assign_ns(attrs, ns, XSD::Namespace) end obj.encode(self, ns, attrs) do |child| indent_backup, @indent = @indent, @indent + @indentstr @@ -179,7 +176,7 @@ public def encode_tag(elename, attrs = nil) if attrs.nil? or attrs.empty? @buf << "\n#{ @indent }<#{ elename }>" - return + return end ary = [] attrs.each do |key, value| @@ -273,7 +270,7 @@ private def get_encode_char_regexp ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= - Regexp.new("[#{EncodeMap.keys.join}]", nil, XSD::Charset.encoding) + Regexp.new("[#{EncodeMap.keys.join}]") end def find_handler(encodingstyle) @@ -298,7 +295,5 @@ private end end -SOAPGenerator = Generator # for backward compatibility - end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb index 88651739..4acd69fc 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb @@ -337,7 +337,7 @@ private return base2soap(obj, type) end cause = nil - begin + begin if definition = schema_definition_from_class(obj.class) return stubobj2soap(obj, definition) end @@ -390,7 +390,7 @@ private cause = $! end end - raise MappingError.new("Cannot map #{ node.type.name } to Ruby object.", cause) + raise MappingError.new("Cannot map #{ node.type } to Ruby object.", cause) end def addiv2obj(obj, attr) @@ -402,21 +402,10 @@ private Mapping.set_attributes(obj, vars) end - if RUBY_VERSION >= '1.8.0' - def addextend2obj(obj, attr) - return unless attr - attr.split(/ /).reverse_each do |mstr| - obj.extend(Mapping.module_from_name(mstr)) - end - end - else - # (class < false; self; end).ancestors includes "TrueClass" under 1.6... - def addextend2obj(obj, attr) - return unless attr - attr.split(/ /).reverse_each do |mstr| - m = Mapping.module_from_name(mstr) - obj.extend(m) - end + def addextend2obj(obj, attr) + return unless attr + attr.split(/ /).reverse_each do |mstr| + obj.extend(Mapping.module_from_name(mstr)) end end @@ -427,8 +416,8 @@ private node.extraattr[RubyExtendName] = list.collect { |c| name = c.name if name.nil? or name.empty? - raise TypeError.new("singleton can't be dumped #{ obj }") - end + raise TypeError.new("singleton can't be dumped #{ obj }") + end name }.join(" ") end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/factory.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/factory.rb index 1bd10670..c4967a8b 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/factory.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/factory.rb @@ -42,7 +42,7 @@ class Factory else # should we sort instance_variables? how? obj.instance_variables.each do |var| - name = var.sub(/^@/, '') + name = var.to_s.sub(/^@/, '').to_sym elename = Mapping.name2elename(name) node.add(elename, Mapping._obj2soap(obj.instance_variable_get(var), map)) diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/literalregistry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/literalregistry.rb index 36dbdefb..06d16c66 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/literalregistry.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/literalregistry.rb @@ -136,9 +136,12 @@ private ele = SOAPElement.new(qname) end ele.qualified = definition.qualified - if definition.type and (definition.basetype or Mapping.root_type_hint) - Mapping.reset_root_type_hint - ele.extraattr[XSD::AttrTypeName] = definition.type + if definition.type + ele.type = definition.type + if definition.basetype or Mapping.root_type_hint + Mapping.reset_root_type_hint + ele.force_typed = true + end end if qname.nil? and definition.elename ele.elename = definition.elename @@ -243,7 +246,7 @@ private obj = nil if obj_class == ::String obj = node.text - elsif obj_class < ::String + elsif obj_class < ::String and node.respond_to?(:text) obj = obj_class.new(node.text) else obj = Mapping.create_empty_object(obj_class) diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb index 62f215ed..bd20534a 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb @@ -91,11 +91,15 @@ module Mapping def self.fault2exception(fault, registry = nil) registry ||= Mapping::DefaultRegistry - detail = if fault.detail - soap2obj(fault.detail, registry) || "" - else - "" + detail = "" + if fault.detail + begin + fault.detail.type ||= XSD::QName::EMPTY + detail = soap2obj(fault.detail, registry) || "" + rescue MappingError + detail = fault.detail end + end if detail.is_a?(Mapping::SOAPException) begin e = detail.to_e @@ -150,37 +154,8 @@ module Mapping return registry.soap2obj(node, klass) end - if Object.respond_to?(:allocate) - # ruby/1.7 or later. - def self.create_empty_object(klass) - klass.allocate - end - else - MARSHAL_TAG = { - String => ['"', 1], - Regexp => ['/', 2], - Array => ['[', 1], - Hash => ['{', 1] - } - def self.create_empty_object(klass) - if klass <= Struct - name = klass.name - return ::Marshal.load(sprintf("\004\006S:%c%s\000", name.length + 5, name)) - end - if MARSHAL_TAG.has_key?(klass) - tag, terminate = MARSHAL_TAG[klass] - return ::Marshal.load(sprintf("\004\006%s%s", tag, "\000" * terminate)) - end - MARSHAL_TAG.each do |k, v| - if klass < k - name = klass.name - tag, terminate = v - return ::Marshal.load(sprintf("\004\006C:%c%s%s%s", name.length + 5, name, tag, "\000" * terminate)) - end - end - name = klass.name - ::Marshal.load(sprintf("\004\006o:%c%s\000", name.length + 5, name)) - end + def self.create_empty_object(klass) + klass.allocate end # Allow only (Letter | '_') (Letter | Digit | '-' | '_')* here. @@ -190,9 +165,10 @@ module Mapping # ex. a.b => a.2eb # def self.name2elename(name) + name = name.to_s name.gsub(/([^a-zA-Z0-9:_\-]+)/n) { '.' << $1.unpack('H2' * $1.size).join('.') - }.gsub(/::/n, '..') + }.gsub(/::/n, '..').to_sym end def self.elename2name(name) @@ -469,12 +445,6 @@ module Mapping schema_type = definition[:schema_type] is_anonymous = definition[:is_anonymous] schema_basetype = definition[:schema_basetype] - # wrap if needed for backward compatibility - if schema_ns - schema_name = Mapping.to_qname(schema_name, schema_ns) if schema_name - schema_type = Mapping.to_qname(schema_type, schema_ns) if schema_type - # no need for schema_basetype bacause it's introduced later - end schema_qualified = definition[:schema_qualified] schema_element = definition[:schema_element] schema_attributes = definition[:schema_attribute] @@ -497,7 +467,6 @@ module Mapping definition end - # for backward compatibility # returns SchemaComplexTypeDefinition def self.parse_schema_definition(schema_element, default_ns) definition = nil @@ -526,7 +495,6 @@ module Mapping if occurrence minoccurs, maxoccurs = occurrence else - # for backward compatibility minoccurs, maxoccurs = 1, 1 end as_any = as_array = false diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/registry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/registry.rb index b083fc98..09ad8a70 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/registry.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/registry.rb @@ -20,7 +20,7 @@ end module Mapping - + module MappedException; end @@ -226,7 +226,7 @@ module RegistrySupport schema_definition_from_class(obj_class) end end - + def add_attributes2soap(obj, ele) if definition = Mapping.schema_definition_classdef(obj.class) add_definedattributes2soap(obj, ele, definition) diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/rubytypeFactory.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/rubytypeFactory.rb index bb57d935..8b5f7c04 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/rubytypeFactory.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/rubytypeFactory.rb @@ -5,6 +5,7 @@ # redistribute it and/or modify it under the same terms of Ruby's license; # either the dual license version in 2003, or any later version. +#require 'continuation' module SOAP module Mapping @@ -124,30 +125,7 @@ class RubytypeFactory < Factory param.extraattr[RubyTypeName] = obj.class.name end param.add('source', SOAPBase64.new(obj.source)) - if obj.respond_to?('options') - # Regexp#options is from Ruby/1.7 - options = obj.options - else - options = 0 - obj.inspect.sub(/^.*\//, '').each_byte do |c| - options += case c - when ?i - 1 - when ?x - 2 - when ?m - 4 - when ?n - 16 - when ?e - 32 - when ?s - 48 - when ?u - 64 - end - end - end + options = obj.options param.add('options', SOAPInt.new(options)) addiv2soapattr(param, obj, map) when ::Range @@ -216,8 +194,8 @@ class RubytypeFactory < Factory addiv2soapattr(param, obj, map) end when ::IO, ::Binding, ::Continuation, ::Data, ::Dir, ::File::Stat, - ::MatchData, Method, ::Proc, ::Thread, ::ThreadGroup - # from 1.8: Process::Status, UnboundMethod + ::MatchData, Method, ::Proc, ::Process::Status, ::Thread, + ::ThreadGroup, ::UnboundMethod return nil when ::SOAP::Mapping::Object param = SOAPStruct.new(XSD::AnyTypeName) @@ -266,7 +244,7 @@ private raise TypeError.new("can't dump anonymous class #{obj}") end singleton_class = class << obj; self; end - if !singleton_methods_true(obj).empty? or + if !obj.singleton_methods(true).empty? or !singleton_class.instance_variables.empty? raise TypeError.new("singleton can't be dumped #{obj}") end @@ -282,16 +260,6 @@ private param end - if RUBY_VERSION >= '1.8.0' - def singleton_methods_true(obj) - obj.singleton_methods(true) - end - else - def singleton_methods_true(obj) - obj.singleton_methods - end - end - def rubytype2obj(node, info, map, rubytype) klass = rubytype ? Mapping.class_from_name(rubytype) : nil obj = nil diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/typeMap.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/typeMap.rb index f06e5441..691c4d49 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/typeMap.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/typeMap.rb @@ -102,5 +102,4 @@ TypeMap = { SOAP::SOAPPositiveInteger::SOAPENCType => SOAPPositiveInteger, } - end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlencodedregistry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlencodedregistry.rb index 19fce1c5..d12e44d8 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlencodedregistry.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlencodedregistry.rb @@ -123,8 +123,8 @@ private end def simpleobj2soap(obj, type) + return SOAPNil.new unless obj type.check_lexical_format(obj) - return SOAPNil.new if obj.nil? # TODO: check nillable. if type.base ele = base2soap(obj, TypeMap[type.base]) ele.type = type.name diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb index 91a6f944..1c4b4f2e 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb @@ -110,6 +110,11 @@ private else ele = complexobj2soap(obj, type) end + ele.type = type.name + if type.base or Mapping.root_type_hint + Mapping.reset_root_type_hint + ele.force_typed = true + end add_definedattributes2soap(obj, ele, type) end ele diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mappingRegistry.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mappingRegistry.rb deleted file mode 100644 index 50b0d220..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mappingRegistry.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - RPC utility -- Mapping registry. -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/mimemessage.rb b/vendor/gems/soap4r-1.5.8/lib/soap/mimemessage.rb index 06686b99..f3f26c9b 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/mimemessage.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/mimemessage.rb @@ -67,7 +67,7 @@ class MIMEMessage def parse_line(line) if /^\A([^\: \t]+):\s*(.+)\z/ =~ line - header = parse_rhs($2.strip) + header = parse_rhs($2.strip) header.key = $1.strip self[header.key.downcase] = header else @@ -120,7 +120,7 @@ class MIMEMessage end def parse(str) - headers, body = str.split(/\r\n\r\n/s, 2) + headers, body = str.split(/\r\n\r\n/, 2) if headers != nil and body != nil @headers = Headers.parse(headers) @body = body.sub(/\r\n\z/, '') diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/namespace.rb b/vendor/gems/soap4r-1.5.8/lib/soap/namespace.rb deleted file mode 100644 index adc4f28e..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/namespace.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - Namespace library -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/netHttpClient.rb b/vendor/gems/soap4r-1.5.8/lib/soap/netHttpClient.rb index bbd5aa27..acaaf2b1 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/netHttpClient.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/netHttpClient.rb @@ -43,7 +43,7 @@ class NetHttpClient @no_proxy = @ssl_config = @protocol_version = nil @connect_timeout = @send_timeout = @receive_timeout = nil end - + def proxy=(proxy) if proxy.nil? @proxy = nil @@ -137,10 +137,10 @@ private http.post(url.request_uri, req_body, extra) } case res - when Net::HTTPRedirection + when Net::HTTPRedirection if redirect_count > 0 post_redirect(res['location'], req_body, header, - redirect_count - 1) + redirect_count - 1) else raise ArgumentError.new("Too many redirects") end @@ -176,13 +176,13 @@ private http.open_timeout = @connect_timeout if @connect_timeout http.read_timeout = @receive_timeout if @receive_timeout case url - when URI::HTTPS + when URI::HTTPS then if SSLEnabled - http.use_ssl = true + http.use_ssl = true else - raise RuntimeError.new("Cannot connect to #{url} (OpenSSL is not installed.)") + raise RuntimeError.new("Cannot connect to #{url} (OpenSSL is not installed.)") end - when URI::HTTP + when URI::HTTP then # OK else raise RuntimeError.new("Cannot connect to #{url} (Not HTTP.)") diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/property.rb b/vendor/gems/soap4r-1.5.8/lib/soap/property.rb index 23633ade..7008a224 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/property.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/property.rb @@ -65,12 +65,12 @@ class Property KEY_REGSRC = '([^=:\\\\]*(?:\\\\.[^=:\\\\]*)*)' DEF_REGSRC = '\\s*' + KEY_REGSRC + '\\s*[=:]\\s*(.*)' - COMMENT_REGEXP = Regexp.new('^(?:#.*|)$', nil, 'u') - CATDEF_REGEXP = Regexp.new("^\\[\\s*#{KEY_REGSRC}\\s*\\]$", nil, 'u') - LINE_REGEXP = Regexp.new("^#{DEF_REGSRC}$", nil, 'u') + COMMENT_REGEXP = Regexp.new("^(?:#.*|)$") + CATDEF_REGEXP = Regexp.new("^\\[\\s*#{KEY_REGSRC}\\s*\\]$") + LINE_REGEXP = Regexp.new("^#{DEF_REGSRC}$") def load(stream) key_prefix = "" - stream.each_with_index do |line, lineno| + stream.readlines.each_with_index do |line, lineno| line.sub!(/\r?\n\z/u, '') case line when COMMENT_REGEXP @@ -320,12 +320,12 @@ end # for ruby/1.6. -unless Enumerable.instance_methods.include?('inject') +unless Enumerable.method_defined?(:inject) module Enumerable def inject(init) result = init each do |item| - result = yield(result, item) + result = yield(result, item) end result end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/qname.rb b/vendor/gems/soap4r-1.5.8/lib/soap/qname.rb deleted file mode 100644 index e0f91523..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/qname.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - XML QName definition. -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/cgistub.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/cgistub.rb index 65f9dd86..233f59f6 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/cgistub.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/cgistub.rb @@ -113,7 +113,7 @@ class CGIStub < Logger::Application @soaplet = ::SOAP::RPC::SOAPlet.new(@router) on_init end - + def on_init # do extra initialization in a derived class if needed. end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb index 7e221e0b..30c595c0 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb @@ -7,6 +7,7 @@ require 'soap/soap' +require 'soap/attrproxy' require 'soap/mapping' require 'soap/rpc/rpc' require 'soap/rpc/proxy' @@ -21,52 +22,21 @@ module RPC class Driver - class << self - if RUBY_VERSION >= "1.7.0" - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - define_method(name) { - @proxy.__send__(name) - } - if assignable - aname = name + '=' - define_method(aname) { |rhs| - @proxy.__send__(aname, rhs) - } - end - end - else - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @proxy.#{name} - end - EOS - if assignable - module_eval <<-EOS - def #{name}=(value) - @proxy.#{name} = value - end - EOS - end - end - end - end + include AttrProxy - __attr_proxy :endpoint_url, true - __attr_proxy :mapping_registry, true - __attr_proxy :literal_mapping_registry, true - __attr_proxy :allow_unqualified_element, true - __attr_proxy :default_encodingstyle, true - __attr_proxy :generate_explicit_type, true - __attr_proxy :use_default_namespace, true - __attr_proxy :return_response_as_xml, true - __attr_proxy :headerhandler - __attr_proxy :filterchain - __attr_proxy :streamhandler - __attr_proxy :test_loopback_response - __attr_proxy :reset_stream + attr_proxy :endpoint_url, true + attr_proxy :mapping_registry, true + attr_proxy :literal_mapping_registry, true + attr_proxy :allow_unqualified_element, true + attr_proxy :default_encodingstyle, true + attr_proxy :generate_explicit_type, true + attr_proxy :use_default_namespace, true + attr_proxy :return_response_as_xml, true + attr_proxy :headerhandler + attr_proxy :filterchain + attr_proxy :streamhandler + attr_proxy :test_loopback_response + attr_proxy :reset_stream attr_reader :proxy attr_reader :options @@ -183,6 +153,10 @@ class Driver private + def attrproxy + @proxy + end + def set_wiredump_file_base(name) if @wiredump_file_base @proxy.set_wiredump_file_base("#{@wiredump_file_base}_#{name}") diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb index 4a78aca0..9c4c5a52 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb @@ -7,6 +7,7 @@ require 'soap/baseData' +require 'soap/rpc/methodDef' module SOAP @@ -69,10 +70,10 @@ class MethodDefinitionError < RPCError; end class ParameterError < RPCError; end class SOAPMethod < SOAPStruct - RETVAL = 'retval' - IN = 'in' - OUT = 'out' - INOUT = 'inout' + RETVAL = :retval + IN = :in + OUT = :out + INOUT = :inout attr_reader :param_def attr_reader :inparam @@ -97,7 +98,7 @@ class SOAPMethod < SOAPStruct @retval_name = nil @retval_class_name = nil - init_param(@param_def) if @param_def + init_params(@param_def) if @param_def end def have_member @@ -151,8 +152,9 @@ class SOAPMethod < SOAPStruct def SOAPMethod.param_count(param_def, *type) count = 0 - param_def.each do |io_type, name, param_type| - if type.include?(io_type) + param_def.each do |param| + param = MethodDef.to_param(param) + if type.include?(param.io_type.to_sym) count += 1 end end @@ -217,38 +219,41 @@ private names end - def init_param(param_def) - param_def.each do |io_type, name, param_type| - mapped_class, nsdef, namedef = SOAPMethod.parse_param_type(param_type) - if nsdef && namedef - type_qname = XSD::QName.new(nsdef, namedef) - elsif mapped_class - type_qname = TypeMap.index(mapped_class) - end - case io_type - when IN - @signature.push([IN, name, type_qname]) - @inparam_names.push(name) - when OUT - @signature.push([OUT, name, type_qname]) - @outparam_names.push(name) - when INOUT - @signature.push([INOUT, name, type_qname]) - @inoutparam_names.push(name) - when RETVAL - if @retval_name - raise MethodDefinitionError.new('duplicated retval') - end - @retval_name = name - @retval_class_name = mapped_class - else - raise MethodDefinitionError.new("unknown type: #{io_type}") - end + def init_params(param_def) + param_def.each do |param| + param = MethodDef.to_param(param) + init_param(param) end end - def self.parse_param_type(param_type) - mapped_class, nsdef, namedef = param_type + def init_param(param) + mapped_class = SOAPMethod.parse_mapped_class(param.mapped_class) + qname = param.qname + if qname.nil? and mapped_class + qname = TypeMap.key(mapped_class) + end + case param.io_type + when IN + @signature.push([IN, param.name, qname]) + @inparam_names.push(param.name) + when OUT + @signature.push([OUT, param.name, qname]) + @outparam_names.push(param.name) + when INOUT + @signature.push([INOUT, param.name, qname]) + @inoutparam_names.push(param.name) + when RETVAL + if @retval_name + raise MethodDefinitionError.new('duplicated retval') + end + @retval_name = param.name + @retval_class_name = mapped_class + else + raise MethodDefinitionError.new("unknown type: #{param.io_type}") + end + end + + def self.parse_mapped_class(mapped_class) # the first element of typedef in param_def can be a String like # "::SOAP::SOAPStruct" or "CustomClass[]". turn this String to a class if # we can. @@ -260,7 +265,7 @@ private mapped_class = Mapping.class_from_name(mapped_class) end end - [mapped_class, nsdef, namedef] + mapped_class end end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb.orig b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb.orig new file mode 100644 index 00000000..93b019a5 --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/element.rb.orig @@ -0,0 +1,374 @@ +# SOAP4R - RPC element definition. +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +require 'soap/baseData' +require 'soap/rpc/methodDef' + + +module SOAP + +# Add method definitions for RPC to common definition in element.rb +class SOAPBody < SOAPStruct + public + + def request + root_node + end + + def response + root = root_node + if !@is_fault + if root.nil? + nil + elsif root.is_a?(SOAPBasetype) + root + else + # Initial element is [retval]. + root[0] + end + else + root + end + end + + def outparams + root = root_node + if !@is_fault and !root.nil? and !root.is_a?(SOAPBasetype) + op = root[1..-1] + op = nil if op && op.empty? + op + else + nil + end + end + + def fault + if @is_fault + self['fault'] + else + nil + end + end + + def fault=(fault) + @is_fault = true + add('fault', fault) + end +end + + +module RPC + + +class RPCError < Error; end +class MethodDefinitionError < RPCError; end +class ParameterError < RPCError; end + +class SOAPMethod < SOAPStruct + RETVAL = :retval + IN = :in + OUT = :out + INOUT = :inout + + attr_reader :param_def + attr_reader :inparam + attr_reader :outparam + attr_reader :retval_name + attr_reader :retval_class_name + + def initialize(qname, param_def = nil) + super(nil) + @elename = qname + @encodingstyle = nil + + @param_def = param_def + + @signature = [] + @inparam_names = [] + @inoutparam_names = [] + @outparam_names = [] + + @inparam = {} + @outparam = {} + @retval_name = nil + @retval_class_name = nil + + init_params(@param_def) if @param_def + end + + def have_member + true + end + + def have_outparam? + @outparam_names.size > 0 + end + + def input_params + collect_params(IN, INOUT) + end + + def output_params + collect_params(OUT, INOUT) + end + + def input_param_types + collect_param_types(IN, INOUT) + end + + def output_param_types + collect_param_types(OUT, INOUT) + end + + def set_param(params) + params.each do |param, data| + @inparam[param] = data + data.elename = XSD::QName.new(data.elename.namespace, param) + data.parent = self + end + end + + def set_outparam(params) + params.each do |param, data| + @outparam[param] = data + data.elename = XSD::QName.new(data.elename.namespace, param) + end + end + + def get_paramtypes(names) + types = [] + @signature.each do |io_type, name, type_qname| + if type_qname && idx = names.index(name) + types[idx] = type_qname + end + end + types + end + + def SOAPMethod.param_count(param_def, *type) + count = 0 + param_def.each do |param| + param = MethodDef.to_param(param) + if type.include?(param.io_type.to_sym) + count += 1 + end + end + count + end + + def SOAPMethod.derive_rpc_param_def(obj, name, *param) + if param.size == 1 and param[0].is_a?(Array) + return param[0] + end + if param.empty? + method = obj.method(name) + param_names = (1..method.arity.abs).collect { |i| "p#{i}" } + else + param_names = param + end + create_rpc_param_def(param_names) + end + + def SOAPMethod.create_rpc_param_def(param_names) + param_def = [] + param_names.each do |param_name| + param_def.push([IN, param_name, nil]) + end + param_def.push([RETVAL, 'return', nil]) + param_def + end + + def SOAPMethod.create_doc_param_def(req_qnames, res_qnames) + req_qnames = [req_qnames] if req_qnames.is_a?(XSD::QName) + res_qnames = [res_qnames] if res_qnames.is_a?(XSD::QName) + param_def = [] + # req_qnames and res_qnames can be nil + if req_qnames + req_qnames.each do |qname| + param_def << [IN, qname.name, [nil, qname.namespace, qname.name]] + end + end + if res_qnames + res_qnames.each do |qname| + param_def << [OUT, qname.name, [nil, qname.namespace, qname.name]] + end + end + param_def + end + +private + + def collect_param_types(*type) + names = [] + @signature.each do |io_type, name, type_qname| + names << type_qname if type.include?(io_type) + end + names + end + + def collect_params(*type) + names = [] + @signature.each do |io_type, name, type_qname| + names << name if type.include?(io_type) + end + names + end + + def init_params(param_def) + param_def.each do |param| + param = MethodDef.to_param(param) + init_param(param) + end + end + + def init_param(param) + mapped_class = SOAPMethod.parse_mapped_class(param.mapped_class) + qname = param.qname + if qname.nil? and mapped_class + qname = TypeMap.index(mapped_class) + end + case param.io_type + when IN + @signature.push([IN, param.name, qname]) + @inparam_names.push(param.name) + when OUT + @signature.push([OUT, param.name, qname]) + @outparam_names.push(param.name) + when INOUT + @signature.push([INOUT, param.name, qname]) + @inoutparam_names.push(param.name) + when RETVAL + if @retval_name + raise MethodDefinitionError.new('duplicated retval') + end + @retval_name = param.name + @retval_class_name = mapped_class + else + raise MethodDefinitionError.new("unknown type: #{param.io_type}") + end + end + + def self.parse_mapped_class(mapped_class) + # the first element of typedef in param_def can be a String like + # "::SOAP::SOAPStruct" or "CustomClass[]". turn this String to a class if + # we can. + if mapped_class.is_a?(String) + if /\[\]\Z/ =~ mapped_class + # when '[]' is added, ignore this. + mapped_class = nil + else + mapped_class = Mapping.class_from_name(mapped_class) + end + end + mapped_class + end +end + + +class SOAPMethodRequest < SOAPMethod + attr_accessor :soapaction + + def SOAPMethodRequest.create_request(qname, *params) + param_def = [] + param_value = [] + i = 0 + params.each do |param| + param_name = "p#{i}" + i += 1 + param_def << [IN, param_name, nil] + param_value << [param_name, param] + end + param_def << [RETVAL, 'return', nil] + o = new(qname, param_def) + o.set_param(param_value) + o + end + + def initialize(qname, param_def = nil, soapaction = nil) + super(qname, param_def) + @soapaction = soapaction + end + + def each + input_params.each do |name| + unless @inparam[name] + raise ParameterError.new("parameter: #{name} was not given") + end + yield(name, @inparam[name]) + end + end + + def dup + req = self.class.new(@elename.dup, @param_def, @soapaction) + req.encodingstyle = @encodingstyle + req + end + + def create_method_response(response_name = nil) + response_name ||= + XSD::QName.new(@elename.namespace, @elename.name + 'Response') + SOAPMethodResponse.new(response_name, @param_def) + end +end + + +class SOAPMethodResponse < SOAPMethod + + def initialize(qname, param_def = nil) + super(qname, param_def) + @retval = nil + end + + def retval + @retval + end + + def retval=(retval) + @retval = retval + @retval.elename = @retval.elename.dup_name(@retval_name || 'return') + retval.parent = self + retval + end + + def each + if @retval_name and !@retval.is_a?(SOAPVoid) + yield(@retval_name, @retval) + end + + output_params.each do |name| + unless @outparam[name] + raise ParameterError.new("parameter: #{name} was not given") + end + yield(name, @outparam[name]) + end + end +end + + +# To return(?) void explicitly. +# def foo(input_var) +# ... +# return SOAP::RPC::SOAPVoid.new +# end +class SOAPVoid < XSD::XSDAnySimpleType + include SOAPBasetype + extend SOAPModuleUtils + Name = XSD::QName.new(Mapping::RubyCustomTypeNamespace, nil) + +public + def initialize() + @elename = Name + @id = nil + @precedents = [] + @parent = nil + end +end + + +end +end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/httpserver.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/httpserver.rb index 26eb55e2..41e8f398 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/httpserver.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/httpserver.rb @@ -7,6 +7,7 @@ require 'logger' +require 'soap/attrproxy' require 'soap/rpc/soaplet' require 'soap/streamHandler' require 'webrick' @@ -17,46 +18,15 @@ module RPC class HTTPServer < Logger::Application + include AttrProxy + attr_reader :server attr_accessor :default_namespace - class << self - if RUBY_VERSION >= "1.7.0" - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - define_method(name) { - @router.__send__(name) - } - if assignable - aname = name + '=' - define_method(aname) { |rhs| - @router.__send__(aname, rhs) - } - end - end - else - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @router.#{name} - end - EOS - if assignable - module_eval <<-EOS - def #{name}=(value) - @router.#{name} = value - end - EOS - end - end - end - end - - __attr_proxy :mapping_registry, true - __attr_proxy :literal_mapping_registry, true - __attr_proxy :generate_explicit_type, true - __attr_proxy :use_default_namespace, true + attr_proxy :mapping_registry, true + attr_proxy :literal_mapping_registry, true + attr_proxy :generate_explicit_type, true + attr_proxy :use_default_namespace, true def initialize(config) actor = config[:SOAPHTTPServerApplicationName] || self.class.name @@ -74,7 +44,6 @@ class HTTPServer < Logger::Application if wsdldir = config[:WSDLDocumentDirectory] @server.mount('/wsdl', WEBrick::HTTPServlet::FileHandler, wsdldir) end - # for backward compatibility @server.mount('/', @soaplet) end @@ -107,7 +76,7 @@ class HTTPServer < Logger::Application def add_rpc_servant(obj, namespace = @default_namespace) @router.add_rpc_servant(obj, namespace) end - + def add_request_headerhandler(factory) @router.add_request_headerhandler(factory) end @@ -159,6 +128,10 @@ class HTTPServer < Logger::Application private + def attrproxy + @router + end + def run @server.start end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/methodDef.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/methodDef.rb new file mode 100644 index 00000000..3878a815 --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/methodDef.rb @@ -0,0 +1,68 @@ +# SOAP4R - A method definition +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +module SOAP +module RPC + + +class MethodDef + attr_reader :name + attr_reader :soapaction + attr_reader :qname + attr_accessor :style + attr_accessor :inputuse + attr_accessor :outputuse + attr_reader :parameters + attr_reader :faults + + def initialize(name, soapaction, qname) + @name = name + @soapaction = soapaction + @qname = qname + @style = @inputuse = @outputuse = nil + @parameters = [] + @faults = {} + end + + def add_parameter(io_type, name, qname, mapped_class) + @parameters << Parameter.new(io_type, name, qname, mapped_class) + end + + def self.to_param(param) + if param.respond_to?(:io_type) + param + else + io_type, name, param_type = param + mapped_class_str, nsdef, namedef = param_type + if nsdef && namedef + qname = XSD::QName.new(nsdef, namedef) + else + qname = nil + end + MethodDef::Parameter.new(io_type.to_sym, name, qname, mapped_class_str) + end + end + + class Parameter + attr_reader :io_type + attr_reader :name + attr_reader :qname + attr_reader :mapped_class + + def initialize(io_type, name, qname, mapped_class) + @io_type = io_type + @name = name + @qname = qname + @mapped_class = mapped_class + end + end +end + + +end +end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb index a2cd0701..f731ebfa 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb @@ -56,7 +56,7 @@ public # TODO: set to false by default or drop thie option in 1.6.0 @allow_unqualified_element = true @default_encodingstyle = nil - @generate_explicit_type = true + @generate_explicit_type = nil @use_default_namespace = false @return_response_as_xml = false @headerhandler = Header::HandlerSet.new @@ -140,6 +140,12 @@ public :default_encodingstyle => @default_encodingstyle || op_info.response_default_encodingstyle ) + if reqopt[:generate_explicit_type].nil? + reqopt[:generate_explicit_type] = (op_info.request_use == :encoded) + end + if resopt[:generate_explicit_type].nil? + resopt[:generate_explicit_type] = (op_info.response_use == :encoded) + end env = route(req_header, req_body, reqopt, resopt) if op_info.response_use.nil? return nil @@ -169,15 +175,15 @@ public if ext = reqopt[:external_content] mime = MIMEMessage.new ext.each do |k, v| - mime.add_attachment(v.data) + mime.add_attachment(v.data) end mime.add_part(conn_data.send_string + "\r\n") mime.close conn_data.send_string = mime.content_str conn_data.send_contenttype = mime.headers['content-type'].str end - conn_data = @streamhandler.send(@endpoint_url, conn_data, - reqopt[:soapaction]) + conn_data.soapaction = reqopt[:soapaction] + conn_data = @streamhandler.send(@endpoint_url, conn_data) if conn_data.receive_string.empty? return nil end @@ -377,25 +383,17 @@ private RPC::SOAPMethodRequest.new(@rpc_request_qname, param_def, @soapaction) else @doc_request_qnames = [] - @doc_request_qualified = [] @doc_response_qnames = [] - @doc_response_qualified = [] - param_def.each do |inout, paramname, typeinfo, eleinfo| - klass_not_used, nsdef, namedef = typeinfo - qualified = eleinfo - if namedef.nil? - raise MethodDefinitionError.new("qname must be given") - end - case inout + param_def.each do |param| + param = MethodDef.to_param(param) + case param.io_type when SOAPMethod::IN - @doc_request_qnames << XSD::QName.new(nsdef, namedef) - @doc_request_qualified << qualified + @doc_request_qnames << param.qname when SOAPMethod::OUT - @doc_response_qnames << XSD::QName.new(nsdef, namedef) - @doc_response_qualified << qualified + @doc_response_qnames << param.qname else raise MethodDefinitionError.new( - "illegal inout definition for document style: #{inout}") + "illegal inout definition for document style: #{param.io_type}") end end end @@ -490,7 +488,7 @@ private params = {} idx = 0 names.each do |name| - params[name] = Mapping.obj2soap(values[idx], mapping_registry, + params[name] = Mapping.obj2soap(values[idx], mapping_registry, types[idx], opt) params[name].elename = XSD::QName.new(nil, name) idx += 1 @@ -503,7 +501,6 @@ private (0...values.size).collect { |idx| ele = Mapping.obj2soap(values[idx], mapping_registry, nil, opt) ele.elename = @doc_request_qnames[idx] - ele.qualified = @doc_request_qualified[idx] ele } end @@ -513,7 +510,6 @@ private ele = Mapping.obj2soap(values[idx], mapping_registry, @doc_request_qnames[idx], opt) ele.encodingstyle = LiteralNamespace - ele.qualified = @doc_request_qualified[idx] ele } end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/router.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/router.rb index 18d4baf9..60971b97 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/router.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/router.rb @@ -217,10 +217,10 @@ class Router private def first_input_part_qname(param_def) - param_def.each do |inout, paramname, typeinfo| - if inout == SOAPMethod::IN - klass, nsdef, namedef = typeinfo - return XSD::QName.new(nsdef, namedef) + param_def.each do |param| + param = MethodDef.to_param(param) + if param.io_type == SOAPMethod::IN + return param.qname end end nil @@ -423,22 +423,17 @@ private @rpc_response_qname = opt[:response_qname] else @doc_request_qnames = [] - @doc_request_qualified = [] @doc_response_qnames = [] - @doc_response_qualified = [] - param_def.each do |inout, paramname, typeinfo, eleinfo| - klass, nsdef, namedef = typeinfo - qualified = eleinfo - case inout + param_def.each do |param| + param = MethodDef.to_param(param) + case param.io_type when SOAPMethod::IN - @doc_request_qnames << XSD::QName.new(nsdef, namedef) - @doc_request_qualified << qualified + @doc_request_qnames << param.qname when SOAPMethod::OUT - @doc_response_qnames << XSD::QName.new(nsdef, namedef) - @doc_response_qualified << qualified + @doc_response_qnames << param.qname else raise ArgumentError.new( - "illegal inout definition for document style: #{inout}") + "illegal inout definition for document style: #{param.io_type}") end end end @@ -605,7 +600,6 @@ private (0...result.size).collect { |idx| ele = Mapping.obj2soap(result[idx], mapping_registry, nil, opt) ele.elename = @doc_response_qnames[idx] - ele.qualified = @doc_response_qualified[idx] ele } end @@ -615,7 +609,6 @@ private ele = Mapping.obj2soap(result[idx], mapping_registry, @doc_response_qnames[idx]) ele.encodingstyle = LiteralNamespace - ele.qualified = @doc_response_qualified[idx] ele } end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/soaplet.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/soaplet.rb index 88a955c3..d9529274 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/soaplet.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/soaplet.rb @@ -50,16 +50,6 @@ public @config = {} end - # for backward compatibility - def app_scope_router - @router - end - - # for backward compatibility - def add_servant(obj, namespace) - @router.add_rpc_servant(obj, namespace) - end - def allow_content_encoding_gzip=(allow) @options[:allow_content_encoding_gzip] = allow end diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/standaloneServer.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/standaloneServer.rb index b7e1ae4c..1652fa43 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpc/standaloneServer.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/rpc/standaloneServer.rb @@ -14,7 +14,7 @@ module RPC class StandaloneServer < HTTPServer - def initialize(appname, default_namespace, host = "0.0.0.0", port = 8080) + def initialize(appname, default_namespace, host = "0.0.0.0", port = 8089) @appname = appname @default_namespace = default_namespace @host = host diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpcRouter.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpcRouter.rb deleted file mode 100644 index 857943b6..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpcRouter.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - RPC Routing library -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/rpcUtils.rb b/vendor/gems/soap4r-1.5.8/lib/soap/rpcUtils.rb deleted file mode 100644 index 918add99..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/rpcUtils.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - RPC utility. -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/cgistub.rb b/vendor/gems/soap4r-1.5.8/lib/soap/ruby18ext.rb similarity index 65% rename from vendor/gems/soap4r-1.5.8/lib/soap/cgistub.rb rename to vendor/gems/soap4r-1.5.8/lib/soap/ruby18ext.rb index d54e7ad5..70f0f499 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/cgistub.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/ruby18ext.rb @@ -1,9 +1,13 @@ -# SOAP4R - CGI stub library +# SOAP4R - Extensions for Ruby 1.8.X compatibility # Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - # This program is copyrighted free software by NAKAMURA, Hiroshi. You can # redistribute it and/or modify it under the same terms of Ruby's license; # either the dual license version in 2003, or any later version. - -require 'soap/compat' +unless RUBY_VERSION >= "1.9.0" + class Hash + def key(value) + index(value) + end + end +end \ No newline at end of file diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/server.rb b/vendor/gems/soap4r-1.5.8/lib/soap/server.rb deleted file mode 100644 index e0b22f4f..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/server.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - Server implementation -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/soap.rb b/vendor/gems/soap4r-1.5.8/lib/soap/soap.rb index f05b25f8..f0a82a8c 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/soap.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/soap.rb @@ -5,7 +5,7 @@ # redistribute it and/or modify it under the same terms of Ruby's license; # either the dual license version in 2003, or any later version. - +require 'soap/ruby18ext' require 'xsd/qname' require 'xsd/charset' require 'soap/nestedexception' @@ -14,7 +14,7 @@ require 'soap/nestedexception' module SOAP -VERSION = Version = '1.5.8' +VERSION = Version = '1.6.1-SNAPSHOT' PropertyName = 'soap/property' EnvelopeNamespace = 'http://schemas.xmlsoap.org/soap/envelope/' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/standaloneServer.rb b/vendor/gems/soap4r-1.5.8/lib/soap/standaloneServer.rb deleted file mode 100644 index 807fdcb5..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/soap/standaloneServer.rb +++ /dev/null @@ -1,9 +0,0 @@ -# SOAP4R - Standalone Server -# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'soap/compat' diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/streamHandler.rb b/vendor/gems/soap4r-1.5.8/lib/soap/streamHandler.rb index c9de3748..6b7e2651 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/streamHandler.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/streamHandler.rb @@ -130,10 +130,10 @@ class HTTPStreamHandler < StreamHandler end public - + attr_reader :client attr_accessor :wiredump_file_base - + MAX_RETRY_COUNT = 10 # [times] def self.create(options) @@ -167,8 +167,7 @@ public "#<#{self.class}>" end - def send(url, conn_data, soapaction = nil, charset = @charset) - conn_data.soapaction ||= soapaction # for backward conpatibility + def send(url, conn_data, charset = @charset) conn_data = send_post(url, conn_data, charset) @client.save_cookie_store if @cookie_store conn_data diff --git a/vendor/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb b/vendor/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb index f0d7fd2a..1c4334a3 100644 --- a/vendor/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb +++ b/vendor/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb @@ -5,11 +5,12 @@ # redistribute it and/or modify it under the same terms of Ruby's license; # either the dual license version in 2003, or any later version. - +require 'soap/ruby18ext' require 'wsdl/parser' require 'wsdl/importer' require 'xsd/qname' require 'xsd/codegen/gensupport' +require 'soap/attrproxy' require 'soap/mapping/wsdlencodedregistry' require 'soap/mapping/wsdlliteralregistry' require 'soap/rpc/driver' @@ -30,12 +31,8 @@ class WSDLDriverFactory def initialize(wsdl) @wsdl = import(wsdl) - name_creator = WSDL::SOAP::ClassNameCreator.new - @modulepath = 'WSDLDriverFactory' - @methoddefcreator = - WSDL::SOAP::MethodDefCreator.new(@wsdl, name_creator, @modulepath, {}) end - + def inspect sprintf("#<%s:%s:0x%x\n\n%s>", self.class.name, @wsdl.name, __id__, dump_method_signatures) end @@ -43,21 +40,13 @@ class WSDLDriverFactory def create_rpc_driver(servicename = nil, portname = nil) port = find_port(servicename, portname) drv = SOAP::RPC::Driver.new(port.soap_address.location) - init_driver(drv, port) - add_operation(drv, port) + if binding = port.find_binding + init_driver(drv, binding) + add_operation(drv, binding) + end drv end - # deprecated old interface - def create_driver(servicename = nil, portname = nil) - warn("WSDLDriverFactory#create_driver is deprecated. Use create_rpc_driver instead.") - port = find_port(servicename, portname) - WSDLDriver.new(@wsdl, port, nil) - end - - # Backward compatibility. - alias createDriver create_driver - def dump_method_signatures(servicename = nil, portname = nil) targetservice = XSD::QName.new(@wsdl.targetnamespace, servicename) if servicename targetport = XSD::QName.new(@wsdl.targetnamespace, portname) if portname @@ -67,9 +56,18 @@ class WSDLDriverFactory next if targetservice and service.name != targetservice service.ports.each do |port| next if targetport and port.name != targetport - sig << port.porttype.operations.collect { |operation| - dump_method_signature(operation, element_definitions).gsub(/^#/, ' ') - }.join("\n") + if porttype = port.porttype + assigned_method = collect_assigned_method(porttype.name) + if binding = port.porttype.find_binding + sig << binding.operations.collect { |op_bind| + operation = op_bind.find_operation + name = assigned_method[op_bind.boundid] || op_bind.name + str = "= #{safemethodname(name)}\n\n" + str << dump_method_signature(name, operation, element_definitions) + str.gsub(/^#/, " ") + }.join("\n") + end + end end end sig.join("\n") @@ -77,6 +75,14 @@ class WSDLDriverFactory private + def collect_assigned_method(porttypename) + name_creator = WSDL::SOAP::ClassNameCreator.new + methoddefcreator = + WSDL::SOAP::MethodDefCreator.new(@wsdl, name_creator, nil, {}) + methoddefcreator.dump(porttypename) + methoddefcreator.assigned_method + end + def find_port(servicename = nil, portname = nil) service = port = nil if servicename @@ -105,35 +111,42 @@ private port end - def init_driver(drv, port) + def init_driver(drv, binding) wsdl_elements = @wsdl.collect_elements wsdl_types = @wsdl.collect_complextypes + @wsdl.collect_simpletypes rpc_decode_typemap = wsdl_types + - @wsdl.soap_rpc_complextypes(port.find_binding) + @wsdl.soap_rpc_complextypes(binding) drv.proxy.mapping_registry = Mapping::WSDLEncodedRegistry.new(rpc_decode_typemap) drv.proxy.literal_mapping_registry = Mapping::WSDLLiteralRegistry.new(wsdl_types, wsdl_elements) end - def add_operation(drv, port) - port.find_binding.operations.each do |op_bind| - op_name = op_bind.soapoperation_name - soapaction = op_bind.soapaction || '' - orgname = op_name.name - name = XSD::CodeGen::GenSupport.safemethodname(orgname) - param_def = create_param_def(op_bind) + def add_operation(drv, binding) + name_creator = WSDL::SOAP::ClassNameCreator.new + modulepath = 'WSDLDriverFactory' + methoddefcreator = + WSDL::SOAP::MethodDefCreator.new(@wsdl, name_creator, modulepath, {}) + mdefs = methoddefcreator.create(binding.name) + if mdefs.nil? + raise FactoryError.new("no method definition found in WSDL") + end + mdefs.each do |mdef| opt = { - :request_style => op_bind.soapoperation_style, - :response_style => op_bind.soapoperation_style, - :request_use => op_bind.soapbody_use_input, - :response_use => op_bind.soapbody_use_output + :request_style => mdef.style, + :response_style => mdef.style, + :request_use => mdef.inputuse, + :response_use => mdef.outputuse } - if op_bind.soapoperation_style == :rpc - drv.add_rpc_operation(op_name, soapaction, name, param_def, opt) + qname = mdef.qname + soapaction = mdef.soapaction + name = mdef.name + if mdef.style == :rpc + drv.add_rpc_operation(qname, soapaction, name, mdef.parameters, opt) else - drv.add_document_operation(soapaction, name, param_def, opt) + drv.add_document_operation(soapaction, name, mdef.parameters, opt) end + orgname = mdef.qname.name if orgname != name and orgname.capitalize == name.capitalize ::SOAP::Mapping.define_singleton_method(drv, orgname) do |*arg| __send__(name, *arg) @@ -145,452 +158,6 @@ private def import(location) WSDL::Importer.import(location) end - - def create_param_def(op_bind) - op = op_bind.find_operation - if op_bind.soapoperation_style == :rpc - param_def = @methoddefcreator.collect_rpcparameter(op) - else - param_def = @methoddefcreator.collect_documentparameter(op) - end - # the first element of typedef in param_def is a String like - # "::SOAP::SOAPStruct". turn this String to a class. - param_def.collect { |io_type, name, param_type| - [io_type, name, ::SOAP::RPC::SOAPMethod.parse_param_type(param_type)] - } - end - - def partqname(part) - if part.type - part.type - else - part.element - end - end - - def param_def(type, name, klass, partqname) - [type, name, [klass, partqname.namespace, partqname.name]] - end - - def filter_parts(partsdef, partssource) - parts = partsdef.split(/\s+/) - partssource.find_all { |part| parts.include?(part.name) } - end -end - - -class WSDLDriver - class << self - if RUBY_VERSION >= "1.7.0" - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - define_method(name) { - @servant.__send__(name) - } - if assignable - aname = name + '=' - define_method(aname) { |rhs| - @servant.__send__(aname, rhs) - } - end - end - else - def __attr_proxy(symbol, assignable = false) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @servant.#{name} - end - EOS - if assignable - module_eval <<-EOS - def #{name}=(value) - @servant.#{name} = value - end - EOS - end - end - end - end - - __attr_proxy :options - __attr_proxy :headerhandler - __attr_proxy :streamhandler - __attr_proxy :test_loopback_response - __attr_proxy :endpoint_url, true - __attr_proxy :mapping_registry, true # for RPC unmarshal - __attr_proxy :wsdl_mapping_registry, true # for RPC marshal - __attr_proxy :default_encodingstyle, true - __attr_proxy :generate_explicit_type, true - __attr_proxy :allow_unqualified_element, true - - def httpproxy - @servant.options["protocol.http.proxy"] - end - - def httpproxy=(httpproxy) - @servant.options["protocol.http.proxy"] = httpproxy - end - - def wiredump_dev - @servant.options["protocol.http.wiredump_dev"] - end - - def wiredump_dev=(wiredump_dev) - @servant.options["protocol.http.wiredump_dev"] = wiredump_dev - end - - def mandatorycharset - @servant.options["protocol.mandatorycharset"] - end - - def mandatorycharset=(mandatorycharset) - @servant.options["protocol.mandatorycharset"] = mandatorycharset - end - - def wiredump_file_base - @servant.options["protocol.wiredump_file_base"] - end - - def wiredump_file_base=(wiredump_file_base) - @servant.options["protocol.wiredump_file_base"] = wiredump_file_base - end - - def initialize(wsdl, port, logdev) - @servant = Servant__.new(self, wsdl, port, logdev) - end - - def inspect - "#<#{self.class}:#{@servant.port.name}>" - end - - def reset_stream - @servant.reset_stream - end - - # Backward compatibility. - alias generateEncodeType= generate_explicit_type= - - class Servant__ - include SOAP - - attr_reader :options - attr_reader :port - - attr_accessor :soapaction - attr_accessor :default_encodingstyle - attr_accessor :allow_unqualified_element - attr_accessor :generate_explicit_type - attr_accessor :mapping_registry - attr_accessor :wsdl_mapping_registry - - def initialize(host, wsdl, port, logdev) - @host = host - @wsdl = wsdl - @port = port - @logdev = logdev - @soapaction = nil - @options = setup_options - @default_encodingstyle = nil - @allow_unqualified_element = nil - @generate_explicit_type = false - @mapping_registry = nil # for rpc unmarshal - @wsdl_mapping_registry = nil # for rpc marshal - @wiredump_file_base = nil - @mandatorycharset = nil - @wsdl_elements = @wsdl.collect_elements - @wsdl_types = @wsdl.collect_complextypes + @wsdl.collect_simpletypes - @rpc_decode_typemap = @wsdl_types + - @wsdl.soap_rpc_complextypes(port.find_binding) - @wsdl_mapping_registry = Mapping::WSDLEncodedRegistry.new( - @rpc_decode_typemap) - @doc_mapper = Mapping::WSDLLiteralRegistry.new( - @wsdl_types, @wsdl_elements) - endpoint_url = @port.soap_address.location - # Convert a map which key is QName, to a Hash which key is String. - @operation = {} - @port.inputoperation_map.each do |op_name, op_info| - orgname = op_name.name - name = XSD::CodeGen::GenSupport.safemethodname(orgname) - @operation[name] = @operation[orgname] = op_info - add_method_interface(op_info) - end - @proxy = ::SOAP::RPC::Proxy.new(endpoint_url, @soapaction, @options) - end - - def inspect - "#<#{self.class}:#{@proxy.inspect}>" - end - - def endpoint_url - @proxy.endpoint_url - end - - def endpoint_url=(endpoint_url) - @proxy.endpoint_url = endpoint_url - end - - def headerhandler - @proxy.headerhandler - end - - def streamhandler - @proxy.streamhandler - end - - def test_loopback_response - @proxy.test_loopback_response - end - - def reset_stream - @proxy.reset_stream - end - - def rpc_call(name, *values) - set_wiredump_file_base(name) - unless op_info = @operation[name] - raise RuntimeError, "method: #{name} not defined" - end - req_header = create_request_header - req_body = create_request_body(op_info, *values) - reqopt = create_options({ - :soapaction => op_info.soapaction || @soapaction}) - resopt = create_options({ - :decode_typemap => @rpc_decode_typemap}) - env = @proxy.route(req_header, req_body, reqopt, resopt) - raise EmptyResponseError unless env - receive_headers(env.header) - begin - @proxy.check_fault(env.body) - rescue ::SOAP::FaultError => e - Mapping.fault2exception(e) - end - ret = env.body.response ? - Mapping.soap2obj(env.body.response, @mapping_registry) : nil - if env.body.outparams - outparams = env.body.outparams.collect { |outparam| - Mapping.soap2obj(outparam) - } - return [ret].concat(outparams) - else - return ret - end - end - - # req_header: [[element, mustunderstand, encodingstyle(QName/String)], ...] - # req_body: SOAPBasetype/SOAPCompoundtype - def document_send(name, header_obj, body_obj) - set_wiredump_file_base(name) - unless op_info = @operation[name] - raise RuntimeError, "method: #{name} not defined" - end - req_header = header_obj ? header_from_obj(header_obj, op_info) : nil - req_body = body_from_obj(body_obj, op_info) - opt = create_options({ - :soapaction => op_info.soapaction || @soapaction, - :decode_typemap => @wsdl_types}) - env = @proxy.invoke(req_header, req_body, opt) - raise EmptyResponseError unless env - if env.body.fault - raise ::SOAP::FaultError.new(env.body.fault) - end - res_body_obj = env.body.response ? - Mapping.soap2obj(env.body.response, @mapping_registry) : nil - return env.header, res_body_obj - end - - private - - def create_options(hash = nil) - opt = {} - opt[:default_encodingstyle] = @default_encodingstyle - opt[:allow_unqualified_element] = @allow_unqualified_element - opt[:generate_explicit_type] = @generate_explicit_type - opt.update(hash) if hash - opt - end - - def set_wiredump_file_base(name) - if @wiredump_file_base - @proxy.set_wiredump_file_base(@wiredump_file_base + "_#{name}") - end - end - - def create_request_header - header = SOAPHeader.new - items = @proxy.headerhandler.on_outbound(header) - items.each do |item| - header.add(item.elename.name, item) - end - header - end - - def receive_headers(header) - @proxy.headerhandler.on_inbound(header) if header - end - - def create_request_body(op_info, *values) - method = create_method_struct(op_info, *values) - SOAPBody.new(method) - end - - def create_method_struct(op_info, *params) - parts_names = op_info.bodyparts.collect { |part| part.name } - obj = create_method_obj(parts_names, params) - method = Mapping.obj2soap(obj, @wsdl_mapping_registry, op_info.op_name) - if method.members.size != parts_names.size - new_method = SOAPStruct.new - method.each do |key, value| - if parts_names.include?(key) - new_method.add(key, value) - end - end - method = new_method - end - method.elename = op_info.op_name - method.type = XSD::QName.new # Request should not be typed. - method - end - - def create_method_obj(names, params) - o = Object.new - idx = 0 - while idx < params.length - o.instance_variable_set('@' + names[idx], params[idx]) - idx += 1 - end - o - end - - def header_from_obj(obj, op_info) - if obj.is_a?(SOAPHeader) - obj - elsif op_info.headerparts.empty? - if obj.nil? - nil - else - raise RuntimeError.new("no header definition in schema: #{obj}") - end - elsif op_info.headerparts.size == 1 - part = op_info.headerparts[0] - header = SOAPHeader.new() - header.add(headeritem_from_obj(obj, part.element || part.eletype)) - header - else - header = SOAPHeader.new() - op_info.headerparts.each do |part| - child = Mapping.get_attribute(obj, part.name) - ele = headeritem_from_obj(child, part.element || part.eletype) - header.add(part.name, ele) - end - header - end - end - - def headeritem_from_obj(obj, name) - if obj.nil? - SOAPElement.new(name) - elsif obj.is_a?(SOAPHeaderItem) - obj - else - Mapping.obj2soap(obj, @doc_mapper, name) - end - end - - def body_from_obj(obj, op_info) - if obj.is_a?(SOAPBody) - obj - elsif op_info.bodyparts.empty? - if obj.nil? - nil - else - raise RuntimeError.new("no body found in schema") - end - elsif op_info.bodyparts.size == 1 - part = op_info.bodyparts[0] - ele = bodyitem_from_obj(obj, part.element || part.type) - SOAPBody.new(ele) - else - body = SOAPBody.new - op_info.bodyparts.each do |part| - child = Mapping.get_attribute(obj, part.name) - ele = bodyitem_from_obj(child, part.element || part.type) - body.add(ele.elename.name, ele) - end - body - end - end - - def bodyitem_from_obj(obj, name) - if obj.nil? - SOAPElement.new(name) - elsif obj.is_a?(SOAPElement) - obj - else - Mapping.obj2soap(obj, @doc_mapper, name) - end - end - - def add_method_interface(op_info) - name = XSD::CodeGen::GenSupport.safemethodname(op_info.op_name.name) - orgname = op_info.op_name.name - parts_names = op_info.bodyparts.collect { |part| part.name } - case op_info.style - when :document - if orgname != name and orgname.capitalize == name.capitalize - add_document_method_interface(orgname, parts_names) - end - add_document_method_interface(name, parts_names) - when :rpc - if orgname != name and orgname.capitalize == name.capitalize - add_rpc_method_interface(orgname, parts_names) - end - add_rpc_method_interface(name, parts_names) - else - raise RuntimeError.new("unknown style: #{op_info.style}") - end - end - - def add_rpc_method_interface(name, parts_names) - param_count = parts_names.size - @host.instance_eval <<-EOS - def #{name}(*arg) - unless arg.size == #{param_count} - raise ArgumentError.new( - "wrong number of arguments (\#{arg.size} for #{param_count})") - end - @servant.rpc_call(#{name.dump}, *arg) - end - EOS - @host.method(name) - end - - def add_document_method_interface(name, parts_names) - @host.instance_eval <<-EOS - def #{name}(h, b) - @servant.document_send(#{name.dump}, h, b) - end - EOS - @host.method(name) - end - - def setup_options - if opt = Property.loadproperty(::SOAP::PropertyName) - opt = opt["client"] - end - opt ||= Property.new - opt.add_hook("protocol.mandatorycharset") do |key, value| - @mandatorycharset = value - end - opt.add_hook("protocol.wiredump_file_base") do |key, value| - @wiredump_file_base = value - end - opt["protocol.http.charset"] ||= XSD::Charset.xml_encoding_label - opt["protocol.http.proxy"] ||= Env::HTTP_PROXY - opt["protocol.http.no_proxy"] ||= Env::NO_PROXY - opt - end - end end diff --git a/vendor/gems/soap4r-1.5.8/lib/tags b/vendor/gems/soap4r-1.5.8/lib/tags deleted file mode 100644 index 37e4303e..00000000 --- a/vendor/gems/soap4r-1.5.8/lib/tags +++ /dev/null @@ -1,5690 +0,0 @@ -+ xsd/namedelements.rb /^ def +/ -::Enumerable soap/property.rb /^ module Enumerable/ -::Enumerable#inject soap/property.rb /^ def inject/ -::Kernel soap/soap.rb /^ module Kernel/ -::Kernel#warn soap/soap.rb /^ def warn/ -::Object soap/soap.rb /^ class Object/ -::Object#instance_variable_get soap/soap.rb /^ def instance_variable_get/ -::Object#instance_variable_set soap/soap.rb /^ def instance_variable_set/ -::SOAP soap/attachment.rb /^module SOAP/ -::SOAP soap/baseData.rb /^module SOAP/ -::SOAP soap/compat.rb /^module SOAP/ -::SOAP soap/element.rb /^module SOAP/ -::SOAP soap/encodingstyle/aspDotNetHandler.rb /^module SOAP/ -::SOAP soap/encodingstyle/handler.rb /^module SOAP/ -::SOAP soap/encodingstyle/literalHandler.rb /^module SOAP/ -::SOAP soap/encodingstyle/soapHandler.rb /^module SOAP/ -::SOAP soap/filter/filterchain.rb /^module SOAP/ -::SOAP soap/filter/handler.rb /^module SOAP/ -::SOAP soap/filter/streamhandler.rb /^module SOAP/ -::SOAP soap/generator.rb /^module SOAP/ -::SOAP soap/header/handler.rb /^module SOAP/ -::SOAP soap/header/handlerset.rb /^module SOAP/ -::SOAP soap/header/mappinghandler.rb /^module SOAP/ -::SOAP soap/header/simplehandler.rb /^module SOAP/ -::SOAP soap/httpconfigloader.rb /^module SOAP/ -::SOAP soap/mapping/encodedregistry.rb /^module SOAP/ -::SOAP soap/mapping/factory.rb /^module SOAP/ -::SOAP soap/mapping/literalregistry.rb /^module SOAP/ -::SOAP soap/mapping/mapping.rb /^module SOAP/ -::SOAP soap/mapping/registry.rb /^module SOAP/ -::SOAP soap/mapping/rubytypeFactory.rb /^module SOAP/ -::SOAP soap/mapping/schemadefinition.rb /^module SOAP/ -::SOAP soap/mapping/typeMap.rb /^module SOAP/ -::SOAP soap/mapping/wsdlencodedregistry.rb /^module SOAP/ -::SOAP soap/mapping/wsdlliteralregistry.rb /^module SOAP/ -::SOAP soap/marshal.rb /^module SOAP/ -::SOAP soap/mimemessage.rb /^module SOAP/ -::SOAP soap/nestedexception.rb /^module SOAP/ -::SOAP soap/netHttpClient.rb /^module SOAP/ -::SOAP soap/ns.rb /^module SOAP/ -::SOAP soap/parser.rb /^module SOAP/ -::SOAP soap/processor.rb /^module SOAP/ -::SOAP soap/property.rb /^module SOAP/ -::SOAP soap/proxy.rb /^module SOAP/ -::SOAP soap/rpc/cgistub.rb /^module SOAP/ -::SOAP soap/rpc/driver.rb /^module SOAP/ -::SOAP soap/rpc/element.rb /^module SOAP/ -::SOAP soap/rpc/httpserver.rb /^module SOAP/ -::SOAP soap/rpc/proxy.rb /^module SOAP/ -::SOAP soap/rpc/router.rb /^module SOAP/ -::SOAP soap/rpc/rpc.rb /^module SOAP/ -::SOAP soap/rpc/soaplet.rb /^module SOAP/ -::SOAP soap/rpc/standaloneServer.rb /^module SOAP/ -::SOAP soap/soap.rb /^module SOAP/ -::SOAP soap/streamHandler.rb /^module SOAP/ -::SOAP soap/wsdlDriver.rb /^module SOAP/ -::SOAP.create_schema_definition soap/mapping/mapping.rb /^ def self.create_schema_definition/ -::SOAP.external_ces soap/mapping/mapping.rb /^ def self.external_ces/ -::SOAP.get_attribute soap/mapping/mapping.rb /^ def self.get_attribute/ -::SOAP.get_attributes soap/mapping/mapping.rb /^ def self.get_attributes/ -::SOAP.get_attributes_for_any soap/mapping/mapping.rb /^ def self.get_attributes_for_any/ -::SOAP.parse_schema_definition soap/mapping/mapping.rb /^ def self.parse_schema_definition/ -::SOAP.parse_schema_element_definition soap/mapping/mapping.rb /^ def self.parse_schema_element_definition/ -::SOAP.reset_root_type_hint soap/mapping/mapping.rb /^ def self.reset_root_type_hint/ -::SOAP.root_type_hint soap/mapping/mapping.rb /^ def self.root_type_hint/ -::SOAP.safeconstname soap/mapping/mapping.rb /^ def self.safeconstname/ -::SOAP.safemethodname soap/mapping/mapping.rb /^ def self.safemethodname/ -::SOAP.safevarname soap/mapping/mapping.rb /^ def self.safevarname/ -::SOAP.schema_attribute_definition soap/mapping/mapping.rb /^ def self.schema_attribute_definition/ -::SOAP.schema_definition_classdef soap/mapping/mapping.rb /^ def self.schema_definition_classdef/ -::SOAP.schema_element_definition soap/mapping/mapping.rb /^ def self.schema_element_definition/ -::SOAP.schema_name_definition soap/mapping/mapping.rb /^ def self.schema_name_definition/ -::SOAP.schema_ns_definition soap/mapping/mapping.rb /^ def self.schema_ns_definition/ -::SOAP.schema_qualified_definition soap/mapping/mapping.rb /^ def self.schema_qualified_definition/ -::SOAP.schema_type_definition soap/mapping/mapping.rb /^ def self.schema_type_definition/ -::SOAP.set_attributes soap/mapping/mapping.rb /^ def self.set_attributes/ -::SOAP::ArrayIndexOutOfBoundsError soap/soap.rb /^class ArrayIndexOutOfBoundsError/ -::SOAP::ArrayStoreError soap/soap.rb /^class ArrayStoreError/ -::SOAP::Attachment soap/attachment.rb /^class Attachment/ -::SOAP::Attachment#content soap/attachment.rb /^ def content/ -::SOAP::Attachment#contentid soap/attachment.rb /^ def contentid/ -::SOAP::Attachment#contentid= soap/attachment.rb /^ def contentid=/ -::SOAP::Attachment#contenttype soap/attachment.rb /^ attr_accessor :contenttype/ -::SOAP::Attachment#initialize soap/attachment.rb /^ def initialize/ -::SOAP::Attachment#io soap/attachment.rb /^ attr_reader :io/ -::SOAP::Attachment#mime_contentid soap/attachment.rb /^ def mime_contentid/ -::SOAP::Attachment#save soap/attachment.rb /^ def save/ -::SOAP::Attachment#to_s soap/attachment.rb /^ def to_s/ -::SOAP::Attachment#write soap/attachment.rb /^ def write/ -::SOAP::Attachment.contentid soap/attachment.rb /^ def self.contentid/ -::SOAP::Attachment.mime_contentid soap/attachment.rb /^ def self.mime_contentid/ -::SOAP::CGIStub soap/compat.rb /^class CGIStub/ -::SOAP::CGIStub#addMethod soap/compat.rb /^ def addMethod/ -::SOAP::CGIStub#addMethodAs soap/compat.rb /^ def addMethodAs/ -::SOAP::CGIStub#addMethodWithNS soap/compat.rb /^ def addMethodWithNS/ -::SOAP::CGIStub#addMethodWithNSAs soap/compat.rb /^ def addMethodWithNSAs/ -::SOAP::CGIStub#addServant soap/compat.rb /^ alias addServant/ -::SOAP::CGIStub#initialize soap/compat.rb /^ def initialize/ -::SOAP::Driver soap/compat.rb /^class Driver/ -::SOAP::Driver#addMethod soap/compat.rb /^ def addMethod/ -::SOAP::Driver#addMethodAs soap/compat.rb /^ def addMethodAs/ -::SOAP::Driver#addMethodWithSOAPAction soap/compat.rb /^ def addMethodWithSOAPAction/ -::SOAP::Driver#addMethodWithSOAPActionAs soap/compat.rb /^ def addMethodWithSOAPActionAs/ -::SOAP::Driver#call soap/compat.rb /^ def call/ -::SOAP::Driver#initialize soap/compat.rb /^ def initialize/ -::SOAP::Driver#invoke soap/compat.rb /^ def invoke/ -::SOAP::Driver#log soap/compat.rb /^ def log/ -::SOAP::Driver#logDev soap/compat.rb /^ alias logDev/ -::SOAP::Driver#logDev= soap/compat.rb /^ alias logDev=/ -::SOAP::Driver#logdev soap/compat.rb /^ attr_accessor :logdev/ -::SOAP::Driver#mappingRegistry soap/compat.rb /^ alias mappingRegistry/ -::SOAP::Driver#mappingRegistry= soap/compat.rb /^ alias mappingRegistry=/ -::SOAP::Driver#setDefaultEncodingStyle soap/compat.rb /^ alias setDefaultEncodingStyle/ -::SOAP::Driver#setLogDev soap/compat.rb /^ def setLogDev/ -::SOAP::Driver#setWireDumpDev soap/compat.rb /^ alias setWireDumpDev/ -::SOAP::EmptyResponseError soap/soap.rb /^class EmptyResponseError/ -::SOAP::EncodingStyle soap/encodingstyle/aspDotNetHandler.rb /^module EncodingStyle/ -::SOAP::EncodingStyle soap/encodingstyle/handler.rb /^module EncodingStyle/ -::SOAP::EncodingStyle soap/encodingstyle/literalHandler.rb /^module EncodingStyle/ -::SOAP::EncodingStyle soap/encodingstyle/soapHandler.rb /^module EncodingStyle/ -::SOAP::EncodingStyle::ASPDotNetHandler soap/encodingstyle/aspDotNetHandler.rb /^class ASPDotNetHandler/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_epilogue soap/encodingstyle/aspDotNetHandler.rb /^ def decode_epilogue/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_parent soap/encodingstyle/aspDotNetHandler.rb /^ def decode_parent/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_prologue soap/encodingstyle/aspDotNetHandler.rb /^ def decode_prologue/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_tag soap/encodingstyle/aspDotNetHandler.rb /^ def decode_tag/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_tag_end soap/encodingstyle/aspDotNetHandler.rb /^ def decode_tag_end/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_text soap/encodingstyle/aspDotNetHandler.rb /^ def decode_text/ -::SOAP::EncodingStyle::ASPDotNetHandler#decode_textbuf soap/encodingstyle/aspDotNetHandler.rb /^ def decode_textbuf/ -::SOAP::EncodingStyle::ASPDotNetHandler#encode_data soap/encodingstyle/aspDotNetHandler.rb /^ def encode_data/ -::SOAP::EncodingStyle::ASPDotNetHandler#encode_data_end soap/encodingstyle/aspDotNetHandler.rb /^ def encode_data_end/ -::SOAP::EncodingStyle::ASPDotNetHandler#initialize soap/encodingstyle/aspDotNetHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPTemporalObject soap/encodingstyle/aspDotNetHandler.rb /^ class SOAPTemporalObject/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPTemporalObject#initialize soap/encodingstyle/aspDotNetHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPTemporalObject#parent soap/encodingstyle/aspDotNetHandler.rb /^ attr_accessor :parent/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown soap/encodingstyle/aspDotNetHandler.rb /^ class SOAPUnknown/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown#as_string soap/encodingstyle/aspDotNetHandler.rb /^ def as_string/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown#as_struct soap/encodingstyle/aspDotNetHandler.rb /^ def as_struct/ -::SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown#initialize soap/encodingstyle/aspDotNetHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::Handler soap/encodingstyle/handler.rb /^class Handler/ -::SOAP::EncodingStyle::Handler#charset soap/encodingstyle/handler.rb /^ attr_reader :charset/ -::SOAP::EncodingStyle::Handler#decode_epilogue soap/encodingstyle/handler.rb /^ def decode_epilogue/ -::SOAP::EncodingStyle::Handler#decode_prologue soap/encodingstyle/handler.rb /^ def decode_prologue/ -::SOAP::EncodingStyle::Handler#decode_tag soap/encodingstyle/handler.rb /^ def decode_tag/ -::SOAP::EncodingStyle::Handler#decode_tag_end soap/encodingstyle/handler.rb /^ def decode_tag_end/ -::SOAP::EncodingStyle::Handler#decode_text soap/encodingstyle/handler.rb /^ def decode_text/ -::SOAP::EncodingStyle::Handler#decode_typemap= soap/encodingstyle/handler.rb /^ def decode_typemap=/ -::SOAP::EncodingStyle::Handler#encode_attr_key soap/encodingstyle/handler.rb /^ def encode_attr_key/ -::SOAP::EncodingStyle::Handler#encode_data soap/encodingstyle/handler.rb /^ def encode_data/ -::SOAP::EncodingStyle::Handler#encode_data_end soap/encodingstyle/handler.rb /^ def encode_data_end/ -::SOAP::EncodingStyle::Handler#encode_epilogue soap/encodingstyle/handler.rb /^ def encode_epilogue/ -::SOAP::EncodingStyle::Handler#encode_prologue soap/encodingstyle/handler.rb /^ def encode_prologue/ -::SOAP::EncodingStyle::Handler#encode_qname soap/encodingstyle/handler.rb /^ def encode_qname/ -::SOAP::EncodingStyle::Handler#generate_explicit_type soap/encodingstyle/handler.rb /^ attr_accessor :generate_explicit_type/ -::SOAP::EncodingStyle::Handler#initialize soap/encodingstyle/handler.rb /^ def initialize/ -::SOAP::EncodingStyle::Handler.add_handler soap/encodingstyle/handler.rb /^ def add_handler/ -::SOAP::EncodingStyle::Handler.each soap/encodingstyle/handler.rb /^ def each/ -::SOAP::EncodingStyle::Handler.handler soap/encodingstyle/handler.rb /^ def handler/ -::SOAP::EncodingStyle::Handler.uri soap/encodingstyle/handler.rb /^ def uri/ -::SOAP::EncodingStyle::Handler::EncodingStyleError soap/encodingstyle/handler.rb /^ class EncodingStyleError/ -::SOAP::EncodingStyle::LiteralHandler soap/encodingstyle/literalHandler.rb /^class LiteralHandler/ -::SOAP::EncodingStyle::LiteralHandler#decode_epilogue soap/encodingstyle/literalHandler.rb /^ def decode_epilogue/ -::SOAP::EncodingStyle::LiteralHandler#decode_parent soap/encodingstyle/literalHandler.rb /^ def decode_parent/ -::SOAP::EncodingStyle::LiteralHandler#decode_prologue soap/encodingstyle/literalHandler.rb /^ def decode_prologue/ -::SOAP::EncodingStyle::LiteralHandler#decode_str soap/encodingstyle/literalHandler.rb /^ def decode_str/ -::SOAP::EncodingStyle::LiteralHandler#decode_tag soap/encodingstyle/literalHandler.rb /^ def decode_tag/ -::SOAP::EncodingStyle::LiteralHandler#decode_tag_end soap/encodingstyle/literalHandler.rb /^ def decode_tag_end/ -::SOAP::EncodingStyle::LiteralHandler#decode_text soap/encodingstyle/literalHandler.rb /^ def decode_text/ -::SOAP::EncodingStyle::LiteralHandler#decode_textbuf soap/encodingstyle/literalHandler.rb /^ def decode_textbuf/ -::SOAP::EncodingStyle::LiteralHandler#encode_data soap/encodingstyle/literalHandler.rb /^ def encode_data/ -::SOAP::EncodingStyle::LiteralHandler#encode_data_end soap/encodingstyle/literalHandler.rb /^ def encode_data_end/ -::SOAP::EncodingStyle::LiteralHandler#initialize soap/encodingstyle/literalHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::SOAPHandler soap/encodingstyle/soapHandler.rb /^class SOAPHandler/ -::SOAP::EncodingStyle::SOAPHandler#content_ranksize soap/encodingstyle/soapHandler.rb /^ def content_ranksize/ -::SOAP::EncodingStyle::SOAPHandler#content_typename soap/encodingstyle/soapHandler.rb /^ def content_typename/ -::SOAP::EncodingStyle::SOAPHandler#create_arytype soap/encodingstyle/soapHandler.rb /^ def create_arytype/ -::SOAP::EncodingStyle::SOAPHandler#decode_arypos soap/encodingstyle/soapHandler.rb /^ def decode_arypos/ -::SOAP::EncodingStyle::SOAPHandler#decode_basetype soap/encodingstyle/soapHandler.rb /^ def decode_basetype/ -::SOAP::EncodingStyle::SOAPHandler#decode_defined_complextype soap/encodingstyle/soapHandler.rb /^ def decode_defined_complextype/ -::SOAP::EncodingStyle::SOAPHandler#decode_defined_simpletype soap/encodingstyle/soapHandler.rb /^ def decode_defined_simpletype/ -::SOAP::EncodingStyle::SOAPHandler#decode_definedtype soap/encodingstyle/soapHandler.rb /^ def decode_definedtype/ -::SOAP::EncodingStyle::SOAPHandler#decode_epilogue soap/encodingstyle/soapHandler.rb /^ def decode_epilogue/ -::SOAP::EncodingStyle::SOAPHandler#decode_parent soap/encodingstyle/soapHandler.rb /^ def decode_parent/ -::SOAP::EncodingStyle::SOAPHandler#decode_prologue soap/encodingstyle/soapHandler.rb /^ def decode_prologue/ -::SOAP::EncodingStyle::SOAPHandler#decode_ref_value soap/encodingstyle/soapHandler.rb /^ def decode_ref_value/ -::SOAP::EncodingStyle::SOAPHandler#decode_resolve_id soap/encodingstyle/soapHandler.rb /^ def decode_resolve_id/ -::SOAP::EncodingStyle::SOAPHandler#decode_tag soap/encodingstyle/soapHandler.rb /^ def decode_tag/ -::SOAP::EncodingStyle::SOAPHandler#decode_tag_by_type soap/encodingstyle/soapHandler.rb /^ def decode_tag_by_type/ -::SOAP::EncodingStyle::SOAPHandler#decode_tag_by_wsdl soap/encodingstyle/soapHandler.rb /^ def decode_tag_by_wsdl/ -::SOAP::EncodingStyle::SOAPHandler#decode_tag_end soap/encodingstyle/soapHandler.rb /^ def decode_tag_end/ -::SOAP::EncodingStyle::SOAPHandler#decode_text soap/encodingstyle/soapHandler.rb /^ def decode_text/ -::SOAP::EncodingStyle::SOAPHandler#decode_textbuf soap/encodingstyle/soapHandler.rb /^ def decode_textbuf/ -::SOAP::EncodingStyle::SOAPHandler#encode_attr_value soap/encodingstyle/soapHandler.rb /^ def encode_attr_value/ -::SOAP::EncodingStyle::SOAPHandler#encode_attrs soap/encodingstyle/soapHandler.rb /^ def encode_attrs/ -::SOAP::EncodingStyle::SOAPHandler#encode_data soap/encodingstyle/soapHandler.rb /^ def encode_data/ -::SOAP::EncodingStyle::SOAPHandler#encode_data_end soap/encodingstyle/soapHandler.rb /^ def encode_data_end/ -::SOAP::EncodingStyle::SOAPHandler#extract_attrs soap/encodingstyle/soapHandler.rb /^ def extract_attrs/ -::SOAP::EncodingStyle::SOAPHandler#initialize soap/encodingstyle/soapHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject soap/encodingstyle/soapHandler.rb /^ class SOAPTemporalObject/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject#id soap/encodingstyle/soapHandler.rb /^ attr_accessor :id/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject#initialize soap/encodingstyle/soapHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject#parent soap/encodingstyle/soapHandler.rb /^ attr_accessor :parent/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject#position soap/encodingstyle/soapHandler.rb /^ attr_accessor :position/ -::SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject#root soap/encodingstyle/soapHandler.rb /^ attr_accessor :root/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown soap/encodingstyle/soapHandler.rb /^ class SOAPUnknown/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#as_nil soap/encodingstyle/soapHandler.rb /^ def as_nil/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#as_string soap/encodingstyle/soapHandler.rb /^ def as_string/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#as_struct soap/encodingstyle/soapHandler.rb /^ def as_struct/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#definedtype soap/encodingstyle/soapHandler.rb /^ attr_accessor :definedtype/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#extraattr soap/encodingstyle/soapHandler.rb /^ attr_reader :extraattr/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#initialize soap/encodingstyle/soapHandler.rb /^ def initialize/ -::SOAP::EncodingStyle::SOAPHandler::SOAPUnknown#type soap/encodingstyle/soapHandler.rb /^ attr_reader :type/ -::SOAP::Env soap/soap.rb /^module Env/ -::SOAP::Env.getenv soap/soap.rb /^ def self.getenv/ -::SOAP::Error soap/soap.rb /^class Error/ -::SOAP::FaultCode soap/soap.rb /^module FaultCode/ -::SOAP::FaultError soap/soap.rb /^class FaultError/ -::SOAP::FaultError#detail soap/soap.rb /^ attr_accessor :detail/ -::SOAP::FaultError#faultactor soap/soap.rb /^ attr_reader :faultactor/ -::SOAP::FaultError#faultcode soap/soap.rb /^ attr_reader :faultcode/ -::SOAP::FaultError#faultstring soap/soap.rb /^ attr_reader :faultstring/ -::SOAP::FaultError#initialize soap/soap.rb /^ def initialize/ -::SOAP::FaultError#to_s soap/soap.rb /^ def to_s/ -::SOAP::Filter soap/filter/filterchain.rb /^module Filter/ -::SOAP::Filter soap/filter/handler.rb /^module Filter/ -::SOAP::Filter soap/filter/streamhandler.rb /^module Filter/ -::SOAP::Filter::FilterChain soap/filter/filterchain.rb /^class FilterChain/ -::SOAP::Filter::FilterChain#<< soap/filter/filterchain.rb /^ alias < 0 + retval = outparts[0] + result << Part.new(:retval, retval.name, retval.type, retval.element) + cdr(outparts).each { |part| + result << Part.new(:out, part.name, part.type, part.element) + } + end + result + end + + def collect_documentparameter(operation) + param = [] + operation.inputparts.each do |input| + param << Part.new(:in, input.name, input.type, input.element) + end + operation.outputparts.each do |output| + param << Part.new(:out, output.name, output.type, output.element) + end + param + end + + def cdr(ary) + result = ary.dup + result.shift + result + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/parser.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/parser.rb index e84245f9..f30fe3e3 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/parser.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/parser.rb @@ -113,10 +113,10 @@ private elename = ns.parse(name) if !parent if elename == DefinitionsName - o = Definitions.parse_element(elename) + o = Definitions.parse_element(elename) o.location = @location else - raise UnknownElementError.new("unknown element: #{elename}") + raise UnknownElementError.new("unknown element: #{elename}") end o.root = @originalroot if @originalroot # o.root = o otherwise else @@ -128,10 +128,10 @@ private end if o.nil? unless @ignored.key?(elename) - warn("ignored element: #{elename}") + warn("ignored element: #{elename} : #{parent.inspect}") @ignored[elename] = elename end - o = Documentation.new # which accepts any element. + o = Documentation.new # which accepts any element. end # node could be a pseudo element. pseudo element has its own parent. o.root = parent.root diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/port.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/port.rb index b1ba70e5..8fb7f1f1 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/port.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/port.rb @@ -36,24 +36,6 @@ class Port < Info root.binding(@binding) or raise RuntimeError.new("#{@binding} not found") end - def inputoperation_map - result = {} - find_binding.operations.each do |op_bind| - op_info = op_bind.soapoperation.input_info - result[op_info.op_name] = op_info - end - result - end - - def outputoperation_map - result = {} - find_binding.operations.each do |op_bind| - op_info = op_bind.soapoperation.output_info - result[op_info.op_name] = op_info - end - result - end - def parse_element(element) case element when SOAPAddressName diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/cgiStubCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/cgiStubCreator.rb index f2974aae..9b732780 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/cgiStubCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/cgiStubCreator.rb @@ -49,8 +49,7 @@ private def dump_porttype(porttype) class_name = mapped_class_name(porttype.name, @modulepath) defined_const = {} - result = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) - methoddef = result[:methoddef] + methoddef = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) wsdl_name = @definitions.name ? @definitions.name.name : 'default' mrname = safeconstname(wsdl_name + 'MappingRegistry') c1 = XSD::CodeGen::ClassDef.new(class_name) diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb index 743553bc..224b9d8f 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb @@ -49,34 +49,30 @@ class ClassDefCreator result << modulepath_split(@modulepath).collect { |ele| "module #{ele}" }.join("; ") result << "\n\n" end - if type - result << dump_classdef(type.name, type) - else - str = dump_group - unless str.empty? - result << "\n" unless result.empty? - result << str - end - str = dump_complextype - unless str.empty? - result << "\n" unless result.empty? - result << str - end - str = dump_simpletype - unless str.empty? - result << "\n" unless result.empty? - result << str - end - str = dump_element - unless str.empty? - result << "\n" unless result.empty? - result << str - end - str = dump_attribute - unless str.empty? - result << "\n" unless result.empty? - result << str - end + str = dump_group(type) + unless str.empty? + result << "\n" unless result.empty? + result << str + end + str = dump_complextype(type) + unless str.empty? + result << "\n" unless result.empty? + result << str + end + str = dump_simpletype(type) + unless str.empty? + result << "\n" unless result.empty? + result << str + end + str = dump_element(type) + unless str.empty? + result << "\n" unless result.empty? + result << str + end + str = dump_attribute(type) + unless str.empty? + result << "\n" unless result.empty? + result << str end if @modulepath result << "\n\n" @@ -88,16 +84,18 @@ class ClassDefCreator private - def dump_element + def dump_element(target = nil) @elements.collect { |ele| next if @complextypes[ele.name] + next if target and target != ele.name c = create_elementdef(@modulepath, ele) c ? c.dump : nil }.compact.join("\n") end - def dump_attribute + def dump_attribute(target = nil) @attributes.collect { |attribute| + next if target and target != attribute.name if attribute.local_simpletype c = create_simpletypedef(@modulepath, attribute.name, attribute.local_simpletype) end @@ -105,21 +103,23 @@ private }.compact.join("\n") end - def dump_simpletype + def dump_simpletype(target = nil) @simpletypes.collect { |type| + next if target and target != type.name c = create_simpletypedef(@modulepath, type.name, type) c ? c.dump : nil }.compact.join("\n") end - def dump_complextype + def dump_complextype(target = nil) definitions = sort_dependency(@complextypes).collect { |type| + next if target and target != type.name c = create_complextypedef(@modulepath, type.name, type) c ? c.dump : nil }.compact.join("\n") end - def dump_group + def dump_group(target = nil) definitions = @modelgroups.collect { |group| # TODO: not dumped for now but may be useful in the future }.compact.join("\n") @@ -216,7 +216,7 @@ private if (const[constname] += 1) > 1 constname += "_#{const[constname]}" end - c.def_const(constname, "#{classname}.new(#{ndq(value)})") + c.def_const(constname, "new(#{ndq(value)})") end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreatorSupport.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreatorSupport.rb index f853c131..5d7d8ea0 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreatorSupport.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreatorSupport.rb @@ -33,15 +33,15 @@ module ClassDefCreatorSupport ::SOAP::TypeMap[name] end - def dump_method_signature(operation, element_definitions) - name = operation.name + def dump_method_signature(name, operation, element_definitions) + methodname = safemethodname(name) input = operation.input output = operation.output fault = operation.fault - signature = "#{ name }#{ dump_inputparam(input) }" + signature = "#{methodname}#{dump_inputparam(input)}" str = <<__EOD__ # SYNOPSIS -# #{name}#{dump_inputparam(input)} +# #{methodname}#{dump_inputparam(input)} # # ARGS #{dump_inout_type(input, element_definitions).chomp} @@ -213,16 +213,26 @@ private end def name_element(element) - return element.name if element.name + return element.name if element.name return element.ref if element.ref raise RuntimeError.new("cannot define name of #{element}") end def name_attribute(attribute) - return attribute.name if attribute.name + return attribute.name if attribute.name return attribute.ref if attribute.ref raise RuntimeError.new("cannot define name of #{attribute}") end + + # TODO: run MethodDefCreator just once in 1.6.X. + # MethodDefCreator should return parsed struct, not a String. + def collect_assigned_method(wsdl, porttypename, modulepath = nil) + name_creator = WSDL::SOAP::ClassNameCreator.new + methoddefcreator = + WSDL::SOAP::MethodDefCreator.new(wsdl, name_creator, modulepath, {}) + methoddefcreator.dump(porttypename) + methoddefcreator.assigned_method + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/clientSkeltonCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/clientSkeltonCreator.rb index 92452574..cd6d338d 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/clientSkeltonCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/clientSkeltonCreator.rb @@ -51,6 +51,7 @@ class ClientSkeltonCreator private def dump_porttype(porttype) + assigned_method = collect_assigned_method(@definitions, porttype.name, @modulepath) drv_name = mapped_class_basename(porttype.name, @modulepath) result = "" @@ -63,16 +64,24 @@ obj.wiredump_dev = STDERR if $DEBUG __EOD__ element_definitions = @definitions.collect_elements - porttype.operations.each do |operation| - result << dump_method_signature(operation, element_definitions) - result << dump_input_init(operation.input) << "\n" - result << dump_operation(operation) << "\n\n" + binding = porttype.find_binding + if binding + binding.operations.each do |op_bind| + operation = op_bind.find_operation + if operation.nil? + warn("operation not found for binding: #{op_bind}") + next + end + name = assigned_method[op_bind.boundid] || operation.name + result << dump_method_signature(name, operation, element_definitions) + result << dump_input_init(operation.input) << "\n" + result << dump_operation(name, operation) << "\n\n" + end end result end - def dump_operation(operation) - name = operation.name + def dump_operation(name, operation) input = operation.input "puts obj.#{ safemethodname(name) }#{ dump_inputparam(input) }" end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb index c758cf41..bbf6b507 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb @@ -73,9 +73,9 @@ class ComplexType < Info case compoundtype when :TYPE_STRUCT, :TYPE_MAP unless ele = find_element(name) - if name.namespace.nil? - ele = find_element_by_name(name.name) - end + if name.namespace.nil? + ele = find_element_by_name(name.name) + end end when :TYPE_ARRAY e = elements @@ -106,6 +106,7 @@ class ComplexType < Info end end end + nil end def find_arytype @@ -137,7 +138,7 @@ private case element when XMLSchema::Element if element.type - element.type + element.type elsif element.local_simpletype element.local_simpletype.base else diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/definitions.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/definitions.rb index e9046afe..7a42a4c1 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/definitions.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/definitions.rb @@ -41,10 +41,10 @@ class Definitions < Info =begin - - - - + + + + =end @@ -85,7 +85,7 @@ class Definitions < Info raise RuntimeError.new("Expecting fault message \"#{name}\" to have ONE part") end fault_part = faultparts[0] - # WS-I Basic Profile Version 1.1 (R2205) requires fault message parts + # WS-I Basic Profile Version 1.1 (R2205) requires fault message parts # to refer to elements rather than types faulttype = fault_part.element if not faulttype @@ -129,7 +129,7 @@ private # Make sure that portType fault has a corresponding soap:fault # definition in binding section. if not op_binding_declares_fault(op_binding, fault.name) - warn("Operation \"#{operation.name}\", fault \"#{fault.name}\": no corresponding wsdl:fault binding found with a matching \"name\" attribute") + warn("Operation \"#{operation.name}\", fault \"#{fault.name}\": no corresponding wsdl:fault binding found with a matching \"name\" attribute") next end fault_binding = get_fault_binding(op_binding, fault.name) @@ -142,10 +142,10 @@ private next end # According to WS-I (R2723): if in a wsdl:binding the use attribute - # on a contained soapbind:fault element is present, its value MUST - # be "literal". + # on a contained soapbind:fault element is present, its value MUST + # be "literal". if fault_binding.soapfault.use and fault_binding.soapfault.use != "literal" - warn("Operation \"#{operation.name}\", fault \"#{fault.name}\": soap:fault \"use\" attribute must be \"literal\"") + warn("Operation \"#{operation.name}\", fault \"#{fault.name}\": soap:fault \"use\" attribute must be \"literal\"") end if result.index(fault.message).nil? result << fault.message diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/driverCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/driverCreator.rb index de7a89bc..68f203cc 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/driverCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/driverCreator.rb @@ -62,11 +62,11 @@ private qname = XSD::QName.new(porttype.namespace, drivername) class_name = mapped_class_basename(qname, @modulepath) defined_const = {} - result = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype) - methoddef = result[:methoddef] + mdcreator = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const) + methoddef = mdcreator.dump(porttype) binding = @definitions.bindings.find { |item| item.type == porttype } if binding.nil? or binding.soapbinding.nil? - # not bind or not a SOAP binding + # not bound or not a SOAP binding return '' end address = @definitions.porttype(porttype).locations[0] diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/methodDefCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/methodDefCreator.rb index ddea2539..0bb1416d 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/methodDefCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/methodDefCreator.rb @@ -1,4 +1,4 @@ -# WSDL4R - Creating driver code from WSDL. +# WSDL4R - Creating method definition from WSDL # Copyright (C) 2000-2007 NAKAMURA, Hiroshi . # This program is copyrighted free software by NAKAMURA, Hiroshi. You can @@ -9,6 +9,7 @@ require 'wsdl/info' require 'wsdl/soap/classDefCreatorSupport' require 'soap/rpc/element' +require 'soap/rpc/methodDef' module WSDL @@ -19,6 +20,9 @@ class MethodDefCreator include ClassDefCreatorSupport attr_reader :definitions + # TODO: should not export this kind of stateful information. + # will be rewwritten in 1.6.1 + attr_reader :assigned_method def initialize(definitions, name_creator, modulepath, defined_const) @definitions = definitions @@ -27,123 +31,82 @@ class MethodDefCreator @simpletypes = @definitions.collect_simpletypes @complextypes = @definitions.collect_complextypes @elements = @definitions.collect_elements - @types = [] - @encoded = false - @literal = false @defined_const = defined_const + @assigned_method = {} end def dump(name) - @types.clear - @encoded = false - @literal = false methoddef = "" porttype = @definitions.porttype(name) binding = porttype.find_binding if binding - binding.operations.each do |op_bind| - next unless op_bind # no binding is defined - next unless op_bind.soapoperation # not a SOAP operation binding - op = op_bind.find_operation + create(binding.name).each do |mdef| methoddef << ",\n" unless methoddef.empty? - methoddef << dump_method(op, op_bind).chomp + methoddef << dump_method(mdef).chomp end end - result = { - :methoddef => methoddef, - :types => @types, - :encoded => @encoded, - :literal => @literal - } - result + methoddef end - def collect_rpcparameter(operation) - result = operation.inputparts.collect { |part| - collect_type(part.type) - param_set(::SOAP::RPC::SOAPMethod::IN, part.name, rpcdefinedtype(part)) - } - outparts = operation.outputparts - if outparts.size > 0 - retval = outparts[0] - collect_type(retval.type) - result << param_set(::SOAP::RPC::SOAPMethod::RETVAL, retval.name, - rpcdefinedtype(retval)) - cdr(outparts).each { |part| - collect_type(part.type) - result << param_set(::SOAP::RPC::SOAPMethod::OUT, part.name, - rpcdefinedtype(part)) + def create(bindingname) + binding = @definitions.binding(bindingname) + if binding + return binding.operations.collect { |op_bind| + next unless op_bind.soapoperation # not a SOAP operation binding + create_methoddef(op_bind) } end - result - end - - def collect_documentparameter(operation) - param = [] - operation.inputparts.each do |input| - param << param_set(::SOAP::RPC::SOAPMethod::IN, input.name, - documentdefinedtype(input)) - end - operation.outputparts.each do |output| - param << param_set(::SOAP::RPC::SOAPMethod::OUT, output.name, - documentdefinedtype(output)) - end - param + nil end private - def dump_method(operation, binding) - op_faults = {} - binding.fault.each do |fault| - op_fault = {} - soapfault = fault.soapfault - next if soapfault.nil? - faultclass = mapped_class_name(fault.name, @modulepath) - op_fault[:ns] = fault.name.namespace - op_fault[:name] = fault.name.name - op_fault[:namespace] = soapfault.namespace - op_fault[:use] = soapfault.use || "literal" - op_fault[:encodingstyle] = soapfault.encodingstyle || "document" - op_faults[faultclass] = op_fault + def create_methoddef(op_bind) + op_info = op_bind.operation_info + name = assign_method_name(op_bind) + soapaction = op_info.boundid.soapaction + qname = op_bind.soapoperation_name + mdef = ::SOAP::RPC::MethodDef.new(name, soapaction, qname) + op_info.parts.each do |part| + if op_info.style == :rpc + mapped_class, qname = rpcdefinedtype(part) + else + mapped_class, qname = documentdefinedtype(part) + end + mdef.add_parameter(part.io_type, part.name, qname, mapped_class) end - op_faults_str = op_faults.inspect + op_info.faults.each do |name, faultinfo| + faultclass = mapped_class_name(name, @modulepath) + mdef.faults[faultclass] = faultinfo + end + mdef.style = op_info.style + mdef.inputuse = op_info.inputuse + mdef.outputuse = op_info.outputuse + mdef + end - name = safemethodname(operation.name) - name_as = operation.name - style = binding.soapoperation_style - inputuse = binding.soapbody_use_input - outputuse = binding.soapbody_use_output - if style == :rpc - qname = binding.soapoperation_name - paramstr = param2str(collect_rpcparameter(operation)) - else - qname = nil - paramstr = param2str(collect_documentparameter(operation)) - end + def dump_method(mdef) + style = mdef.style + inputuse = mdef.inputuse + outputuse = mdef.outputuse + paramstr = param2str(mdef.parameters) if paramstr.empty? paramstr = '[]' else paramstr = "[ " << paramstr.split(/\r?\n/).join("\n ") << " ]" end definitions = <<__EOD__ -#{ndq(binding.soapaction)}, - #{dq(name)}, +#{ndq(mdef.soapaction)}, + #{dq(mdef.name)}, #{paramstr}, { :request_style => #{nsym(style)}, :request_use => #{nsym(inputuse)}, :response_style => #{nsym(style)}, :response_use => #{nsym(outputuse)}, - :faults => #{op_faults_str} } + :faults => #{mdef.faults.inspect} } __EOD__ - if inputuse == :encoded or outputuse == :encoded - @encoded = true - end - if inputuse == :literal or outputuse == :literal - @literal = true - end if style == :rpc - assign_const(qname.namespace, 'Ns') + assign_const(mdef.qname.namespace, 'Ns') return <<__EOD__ -[ #{dqname(qname)}, +[ #{dqname(mdef.qname)}, #{definitions}] __EOD__ else @@ -153,25 +116,36 @@ __EOD__ end end + def assign_method_name(op_bind) + method_name = safemethodname(op_bind.name) + i = 1 # starts from _2 + while @assigned_method.value?(method_name) + i += 1 + method_name = safemethodname("#{op_bind.name}_#{i}") + end + @assigned_method[op_bind.boundid] = method_name + method_name + end + def rpcdefinedtype(part) if mapped = basetype_mapped_class(part.type) - ['::' + mapped.name] + return ['::' + mapped.name, nil] elsif definedtype = @simpletypes[part.type] - [nil, definedtype.name.namespace, definedtype.name.name] + return [nil, definedtype.name] elsif definedtype = @elements[part.element] - [nil, part.element.namespace, part.element.name] + return [nil, part.element] elsif definedtype = @complextypes[part.type] case definedtype.compoundtype when :TYPE_STRUCT, :TYPE_EMPTY, :TYPE_ARRAY, :TYPE_SIMPLE type = mapped_class_name(part.type, @modulepath) - [type, part.type.namespace, part.type.name] + return [type, part.type] when :TYPE_MAP - [Hash.name, part.type.namespace, part.type.name] + return [Hash.name, part.type] else raise NotImplementedError.new("must not reach here: #{definedtype.compoundtype}") end elsif part.type == XSD::AnyTypeName - [nil] + return [nil, nil] else raise RuntimeError.new("part: #{part.name} cannot be resolved") end @@ -179,66 +153,34 @@ __EOD__ def documentdefinedtype(part) if mapped = basetype_mapped_class(part.type) - ['::' + mapped.name, nil, part.name] + return ['::' + mapped.name, XSD::QName.new(nil, part.name)] elsif definedtype = @simpletypes[part.type] if definedtype.base - ['::' + basetype_mapped_class(definedtype.base).name, nil, part.name] + return ['::' + basetype_mapped_class(definedtype.base).name, XSD::QName.new(nil, part.name)] else raise RuntimeError.new("unsupported simpleType: #{definedtype}") end elsif definedtype = @elements[part.element] - ['::SOAP::SOAPElement', part.element.namespace, part.element.name] + return ['::SOAP::SOAPElement', part.element] elsif definedtype = @complextypes[part.type] - ['::SOAP::SOAPElement', part.type.namespace, part.type.name] + return ['::SOAP::SOAPElement', part.type] else raise RuntimeError.new("part: #{part.name} cannot be resolved") end end - def param_set(io_type, name, type, ele = nil) - [io_type, name, type, ele] - end - - def collect_type(type) - # ignore inline type definition. - return if type.nil? - return if @types.include?(type) - @types << type - return unless @complextypes[type] - collect_elements_type(@complextypes[type].elements) - end - - def collect_elements_type(elements) - elements.each do |element| - case element - when WSDL::XMLSchema::Any - # nothing to do - when WSDL::XMLSchema::Element - collect_type(element.type) - when WSDL::XMLSchema::Sequence, WSDL::XMLSchema::Choice - collect_elements_type(element.elements) - else - raise RuntimeError.new("unknown type: #{element}") - end - end - end - def param2str(params) params.collect { |param| - io, name, type, ele = param - unless ele.nil? - "[#{dq(io)}, #{dq(name)}, #{type2str(type)}, #{ele2str(ele)}]" - else - "[#{dq(io)}, #{dq(name)}, #{type2str(type)}]" - end + mappingstr = mapping_info2str(param.mapped_class, param.qname) + "[:#{param.io_type.id2name}, #{dq(param.name)}, #{mappingstr}]" }.join(",\n") end - def type2str(type) - if type.size == 1 - "[#{ndq(type[0])}]" + def mapping_info2str(mapped_class, qname) + if qname.nil? + "[#{ndq(mapped_class)}]" else - "[#{ndq(type[0])}, #{ndq(type[1])}, #{dq(type[2])}]" + "[#{ndq(mapped_class)}, #{ndq(qname.namespace)}, #{dq(qname.name)}]" end end @@ -250,12 +192,6 @@ __EOD__ "false" end end - - def cdr(ary) - result = ary.dup - result.shift - result - end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/operation.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/operation.rb index 446ef4d7..455bd841 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/operation.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/operation.rb @@ -14,7 +14,7 @@ module SOAP class Operation < Info - class OperationInfo + class ParamInfo attr_reader :style attr_reader :op_name attr_reader :optype_name @@ -23,7 +23,7 @@ class Operation < Info attr_reader :bodyparts attr_reader :faultpart attr_reader :soapaction - + def initialize(style, use, encodingstyle, op_name, optype_name, headerparts, bodyparts, faultpart, soapaction) @style = style @@ -67,16 +67,6 @@ class Operation < Info end end - def input_info - name_info = parent.find_operation.input_info - param_info(name_info, parent.input) - end - - def output_info - name_info = parent.find_operation.output_info - param_info(name_info, parent.output) - end - def operation_style return @style if @style if parent_binding.soapbinding @@ -91,7 +81,7 @@ private parent.parent end - def param_info(name_info, param) + def create_param_info(name_info, param) op_style = operation_style() op_use = param.soapbody_use op_encodingstyle = param.soapbody_encodingstyle @@ -112,7 +102,7 @@ private bodyparts = name_info.parts end faultpart = nil - OperationInfo.new(op_style, op_use, op_encodingstyle, op_name, optype_name, + ParamInfo.new(op_style, op_use, op_encodingstyle, op_name, optype_name, headerparts, bodyparts, faultpart, parent.soapaction) end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servantSkeltonCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servantSkeltonCreator.rb index bcf96982..e2d79f02 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servantSkeltonCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servantSkeltonCreator.rb @@ -35,8 +35,8 @@ class ServantSkeltonCreator result << "\n\n" end if porttype.nil? - @definitions.porttypes.each do |type| - result << dump_porttype(type.name) + @definitions.porttypes.each do |porttype| + result << dump_porttype(porttype) result << "\n" end else @@ -52,24 +52,33 @@ class ServantSkeltonCreator private - def dump_porttype(name) - class_name = mapped_class_basename(name, @modulepath) + def dump_porttype(porttype) + assigned_method = collect_assigned_method(@definitions, porttype.name, @modulepath) + class_name = mapped_class_basename(porttype.name, @modulepath) c = XSD::CodeGen::ClassDef.new(class_name) element_definitions = @definitions.collect_elements - operations = @definitions.porttype(name).operations - operations.each do |operation| - name = safemethodname(operation.name) - input = operation.input - params = input.find_message.parts.collect { |part| - safevarname(part.name) - } - m = XSD::CodeGen::MethodDef.new(name, params) do <<-EOD - p [#{params.join(", ")}] - raise NotImplementedError.new - EOD + binding = porttype.find_binding + if binding + binding.operations.each do |op_bind| + operation = op_bind.find_operation + if operation.nil? + warn("operation not found for binding: #{op_bind}") + next end - m.comment = dump_method_signature(operation, element_definitions) - c.add_method(m) + name = assigned_method[op_bind.boundid] || operation.name + methodname = safemethodname(name) + input = operation.input + params = input.find_message.parts.collect { |part| + safevarname(part.name) + } + m = XSD::CodeGen::MethodDef.new(methodname, params) do <<-EOD + p [#{params.join(", ")}] + raise NotImplementedError.new + EOD + end + m.comment = dump_method_signature(methodname, operation, element_definitions) + c.add_method(m) + end end c.dump end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servletStubCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servletStubCreator.rb index 4037b959..826b2e23 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servletStubCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/servletStubCreator.rb @@ -49,12 +49,9 @@ private def dump_porttype(porttype) class_name = mapped_class_name(porttype.name, @modulepath) defined_const = {} - result = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) - methoddef = result[:methoddef] - + methoddef = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) wsdl_name = @definitions.name ? @definitions.name.name : 'default' mrname = safeconstname(wsdl_name + 'MappingRegistry') - c1 = XSD::CodeGen::ClassDef.new(class_name) c1.def_require("soap/rpc/soaplet") c1.def_code <<-EOD diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/standaloneServerStubCreator.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/standaloneServerStubCreator.rb index c194a69f..169eb2a1 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/standaloneServerStubCreator.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/soap/standaloneServerStubCreator.rb @@ -50,12 +50,9 @@ private def dump_porttype(porttype) class_name = mapped_class_name(porttype.name, @modulepath) defined_const = {} - result = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) - methoddef = result[:methoddef] - + methoddef = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const).dump(porttype.name) wsdl_name = @definitions.name ? @definitions.name.name : 'default' mrname = safeconstname(wsdl_name + 'MappingRegistry') - c1 = XSD::CodeGen::ClassDef.new(class_name) c1.def_require("soap/rpc/standaloneServer") c1.def_code <<-EOD diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attribute.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attribute.rb index 13b53b2b..8b7ddebf 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attribute.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attribute.rb @@ -7,6 +7,7 @@ require 'wsdl/info' +require 'wsdl/xmlSchema/ref' module WSDL @@ -14,26 +15,7 @@ module XMLSchema class Attribute < Info - class << self - if RUBY_VERSION > "1.7.0" - def attr_reader_ref(symbol) - name = symbol.to_s - define_method(name) { - instance_variable_get("@#{name}") || - (refelement ? refelement.__send__(name) : nil) - } - end - else - def attr_reader_ref(symbol) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @#{name} || (refelement ? refelement.#{name} : nil) - end - EOS - end - end - end + include Ref attr_writer :use attr_writer :form @@ -51,7 +33,6 @@ class Attribute < Info attr_reader_ref :default attr_reader_ref :fixed - attr_accessor :ref attr_accessor :arytype def initialize @@ -68,10 +49,6 @@ class Attribute < Info @arytype = nil end - def refelement - @refelement ||= root.collect_attributes[@ref] - end - def targetnamespace parent.targetnamespace end @@ -116,6 +93,10 @@ private def directelement? parent.is_a?(Schema) end + + def refelement + @refelement ||= root.collect_attributes[@ref] + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attributeGroup.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attributeGroup.rb index 2658ce91..dfb922c7 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attributeGroup.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/attributeGroup.rb @@ -7,6 +7,7 @@ require 'wsdl/info' +require 'wsdl/xmlSchema/ref' module WSDL @@ -14,26 +15,7 @@ module XMLSchema class AttributeGroup < Info - class << self - if RUBY_VERSION > "1.7.0" - def attr_reader_ref(symbol) - name = symbol.to_s - define_method(name) { - instance_variable_get("@#{name}") || - (refelement ? refelement.__send__(name) : nil) - } - end - else - def attr_reader_ref(symbol) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @#{name} || (refelement ? refelement.#{name} : nil) - end - EOS - end - end - end + include Ref attr_writer :name # required attr_writer :attributes @@ -41,8 +23,6 @@ class AttributeGroup < Info attr_reader_ref :name attr_reader_ref :attributes - attr_accessor :ref - def initialize super @name = nil @@ -51,10 +31,6 @@ class AttributeGroup < Info @refelement = nil end - def refelement - @refelement ||= root.collect_attributegroups[@ref] - end - def targetnamespace parent.targetnamespace end @@ -79,6 +55,12 @@ class AttributeGroup < Info nil end end + +private + + def refelement + @refelement ||= root.collect_attributegroups[@ref] + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexExtension.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexExtension.rb index a211ca8b..23b68abf 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexExtension.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexExtension.rb @@ -69,7 +69,7 @@ class ComplexExtension < Info basetype.check_type end end - + def parse_element(element) case element when AllName diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexRestriction.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexRestriction.rb index b1cc086c..c12cc0fc 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexRestriction.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexRestriction.rb @@ -58,7 +58,7 @@ class ComplexRestriction < Info basetype.check_type if basetype end end - + def parse_element(element) case element when AllName diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/element.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/element.rb index 2ef07f59..70919fec 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/element.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/element.rb @@ -7,6 +7,7 @@ require 'wsdl/info' +require 'wsdl/xmlSchema/ref' module WSDL @@ -14,26 +15,7 @@ module XMLSchema class Element < Info - class << self - if RUBY_VERSION > "1.7.0" - def attr_reader_ref(symbol) - name = symbol.to_s - define_method(name) { - instance_variable_get("@#{name}") || - (refelement ? refelement.__send__(name) : nil) - } - end - else - def attr_reader_ref(symbol) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @#{name} || (refelement ? refelement.#{name} : nil) - end - EOS - end - end - end + include Ref attr_writer :name # required attr_writer :form @@ -55,8 +37,6 @@ class Element < Info attr_reader_ref :default attr_reader_ref :abstract - attr_accessor :ref - def initialize(name = nil, type = nil) super() @name = name @@ -77,10 +57,6 @@ class Element < Info !(local_simpletype || local_complextype || constraint || type) end - def refelement - @refelement ||= (@ref ? root.collect_elements[@ref] : nil) - end - def targetnamespace parent.targetnamespace end @@ -166,6 +142,10 @@ private def directelement? parent.is_a?(Schema) end + + def refelement + @refelement ||= (@ref ? root.collect_elements[@ref] : nil) + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/group.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/group.rb index a5702844..af120097 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/group.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/group.rb @@ -7,6 +7,7 @@ require 'wsdl/info' +require 'wsdl/xmlSchema/ref' module WSDL @@ -14,26 +15,7 @@ module XMLSchema class Group < Info - class << self - if RUBY_VERSION > "1.7.0" - def attr_reader_ref(symbol) - name = symbol.to_s - define_method(name) { - instance_variable_get("@#{name}") || - (refelement ? refelement.__send__(name) : nil) - } - end - else - def attr_reader_ref(symbol) - name = symbol.to_s - module_eval <<-EOS - def #{name} - @#{name} || (refelement ? refelement.#{name} : nil) - end - EOS - end - end - end + include Ref attr_writer :name # required attr_accessor :maxoccurs @@ -43,8 +25,6 @@ class Group < Info attr_reader_ref :name attr_reader_ref :content - attr_accessor :ref - def initialize(name = nil) super() @name = name @@ -55,10 +35,6 @@ class Group < Info @refelement = nil end - def refelement - @refelement ||= (@ref ? root.collect_modelgroups[@ref] : nil) - end - def targetnamespace parent.targetnamespace end @@ -111,6 +87,12 @@ class Group < Info nil end end + +private + + def refelement + @refelement ||= (@ref ? root.collect_modelgroups[@ref] : nil) + end end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/parser.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/parser.rb index 746b6bb0..3f61a651 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/parser.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/parser.rb @@ -111,10 +111,10 @@ private elename = ns.parse(name) if !parent if elename == SchemaName - o = Schema.parse_element(elename) + o = Schema.parse_element(elename) o.location = @location else - raise UnknownElementError.new("unknown element: #{elename}") + raise UnknownElementError.new("unknown element: #{elename}") end o.root = @originalroot if @originalroot # o.root = o otherwise else @@ -129,7 +129,7 @@ private warn("ignored element: #{elename} of #{parent.class}") @ignored[elename] = elename end - o = Documentation.new # which accepts any element. + o = Documentation.new # which accepts any element. end # node could be a pseudo element. pseudo element has its own parent. o.root = parent.root @@ -140,7 +140,7 @@ private value_ele = ns.parse(value, false) value_ele.source = value # for recovery; value may not be a QName if attr_ele == IdAttrName - o.id = value_ele + o.id = value_ele else if o.parse_attr(attr_ele, value_ele).nil? unless @ignored.key?(attr_ele) diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/ref.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/ref.rb new file mode 100644 index 00000000..f7b5670e --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/ref.rb @@ -0,0 +1,33 @@ +# WSDL4R - XMLSchema ref support. +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +module WSDL +module XMLSchema + + +module Ref + def self.included(klass) + klass.extend(RefClassSupport) + end + + module RefClassSupport + def attr_reader_ref(symbol) + name = symbol.to_s + define_method(name) { + instance_variable_get("@#{name}") || + (refelement ? refelement.__send__(name) : nil) + } + end + end + + attr_accessor :ref +end + + +end +end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleExtension.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleExtension.rb index 4a63deb4..10f8c374 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleExtension.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleExtension.rb @@ -27,7 +27,7 @@ class SimpleExtension < Info def targetnamespace parent.targetnamespace end - + def valid?(value) true end diff --git a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleRestriction.rb b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleRestriction.rb index 6a7914ec..ea324423 100644 --- a/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleRestriction.rb +++ b/vendor/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/simpleRestriction.rb @@ -23,8 +23,8 @@ class SimpleRestriction < Info attr_reader :enumeration attr_accessor :whitespace attr_accessor :maxinclusive - attr_accessor :maxexlusive - attr_accessor :minexlusive + attr_accessor :maxexclusive + attr_accessor :minexclusive attr_accessor :mininclusive attr_accessor :totaldigits attr_accessor :fractiondigits @@ -42,7 +42,7 @@ class SimpleRestriction < Info @fixed = {} @attributes = XSD::NamedElements.new end - + def valid?(value) return false unless check_restriction(value) return false unless check_length(value) @@ -73,9 +73,9 @@ class SimpleRestriction < Info when MaxInclusiveName MaxInclusive.new when MaxExclusiveName - MaxExlusive.new + MaxExclusive.new when MinExclusiveName - MinExlusive.new + MinExclusive.new when MinInclusiveName MinInclusive.new when TotalDigitsName diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/charset.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/charset.rb index 7bee2004..19ea7ad0 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/charset.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/charset.rb @@ -10,7 +10,7 @@ module XSD module Charset - @internal_encoding = $KCODE + @internal_encoding = "UTF8" #$KCODE class XSDError < StandardError; end class CharsetError < XSDError; end @@ -47,14 +47,14 @@ public Proc.new { |str| IconvCharset.safe_iconv("euc-jp", sjtag, str) } rescue LoadError begin - require 'nkf' + require 'nkf' EncodingConvertMap[['EUC' , 'SJIS']] = Proc.new { |str| NKF.nkf('-sXm0', str) } EncodingConvertMap[['SJIS', 'EUC' ]] = Proc.new { |str| NKF.nkf('-eXm0', str) } rescue LoadError end - + begin require 'uconv' @internal_encoding = 'UTF8' @@ -129,18 +129,18 @@ public # us_ascii = '[\x00-\x7F]' us_ascii = '[\x9\xa\xd\x20-\x7F]' # XML 1.0 restricted. - USASCIIRegexp = Regexp.new("\\A#{us_ascii}*\\z", nil, 'NONE') + USASCIIRegexp = Regexp.new("\\A#{us_ascii}*\\z") twobytes_euc = '(?:[\x8E\xA1-\xFE][\xA1-\xFE])' threebytes_euc = '(?:\x8F[\xA1-\xFE][\xA1-\xFE])' character_euc = "(?:#{us_ascii}|#{twobytes_euc}|#{threebytes_euc})" - EUCRegexp = Regexp.new("\\A#{character_euc}*\\z", nil, 'NONE') + EUCRegexp = Regexp.new("\\A#{character_euc}*\\z", nil, 'n') # onebyte_sjis = '[\x00-\x7F\xA1-\xDF]' onebyte_sjis = '[\x9\xa\xd\x20-\x7F\xA1-\xDF]' # XML 1.0 restricted. twobytes_sjis = '(?:[\x81-\x9F\xE0-\xFC][\x40-\x7E\x80-\xFC])' character_sjis = "(?:#{onebyte_sjis}|#{twobytes_sjis})" - SJISRegexp = Regexp.new("\\A#{character_sjis}*\\z", nil, 'NONE') + SJISRegexp = Regexp.new("\\A#{character_sjis}*\\z", nil, 'n') # 0xxxxxxx # 110yyyyy 10xxxxxx @@ -149,9 +149,8 @@ public threebytes_utf8 = '(?:[\xE0-\xEF][\x80-\xBF][\x80-\xBF])' # 11110uuu 10uuuzzz 10yyyyyy 10xxxxxx fourbytes_utf8 = '(?:[\xF0-\xF7][\x80-\xBF][\x80-\xBF][\x80-\xBF])' - character_utf8 = - "(?:#{us_ascii}|#{twobytes_utf8}|#{threebytes_utf8}|#{fourbytes_utf8})" - UTF8Regexp = Regexp.new("\\A#{character_utf8}*\\z", nil, 'NONE') + character_utf8 = "(?:#{us_ascii}|#{twobytes_utf8}|#{threebytes_utf8}|#{fourbytes_utf8})" + UTF8Regexp = Regexp.new("\\A#{character_utf8}*\\z", nil, 'n') def Charset.is_us_ascii(str) USASCIIRegexp =~ str diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/classdef.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/classdef.rb index 00eaaad8..755ec548 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/classdef.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/classdef.rb @@ -43,7 +43,7 @@ class ClassDef < ModuleDef def dump buf = "" unless @requirepath.empty? - buf << dump_requirepath + buf << dump_requirepath end buf << dump_emptyline unless buf.empty? package = @name.split(/::/)[0..-2] diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb index 4a2f8dd0..761887b2 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb @@ -236,22 +236,22 @@ module GenSupport private def trim_eol(str) - str.collect { |line| + str.lines.collect { |line| line.sub(/\r?\n\z/, "") + "\n" }.join end def trim_indent(str) indent = nil - str = str.collect { |line| untab(line) }.join - str.each do |line| + str = str.lines.collect { |line| untab(line) }.join + str.each_line do |line| head = line.index(/\S/) if !head.nil? and (indent.nil? or head < indent) indent = head end end return str unless indent - str.collect { |line| + str.lines.collect { |line| line.sub(/^ {0,#{indent}}/, "") }.join end diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/moduledef.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/moduledef.rb index abea6259..a135a2be 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/moduledef.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/codegen/moduledef.rb @@ -68,7 +68,7 @@ class ModuleDef def dump buf = "" unless @requirepath.empty? - buf << dump_requirepath + buf << dump_requirepath end buf << dump_emptyline unless buf.empty? package = @name.split(/::/)[0..-2] diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/datatypes.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/datatypes.rb index d5ef2ccc..0e9669c9 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/datatypes.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/datatypes.rb @@ -10,7 +10,7 @@ require 'xsd/qname' require 'xsd/charset' require 'soap/nestedexception' require 'uri' - +require 'date' ### ## XMLSchamaDatatypes general definitions. @@ -342,9 +342,9 @@ private # Float("-1.4E") might fail on some system. str << '0' if /e$/i =~ str begin - return narrow32bit(Float(str)) + return narrow32bit(Float(str)) rescue ArgumentError - raise ValueSpaceError.new("#{ type }: cannot accept '#{ str }'.", $!) + raise ValueSpaceError.new("#{ type }: cannot accept '#{ str }'.", $!) end end end @@ -569,7 +569,7 @@ module XSDDateTimeImpl 'Z' else ((diffmin < 0) ? '-' : '+') << format('%02d:%02d', - (diffmin.abs / 60.0).to_i, (diffmin.abs % 60.0).to_i) + (diffmin.abs / 60.0).to_i, (diffmin.abs % 60.0).to_i) end end @@ -652,7 +652,7 @@ private year, @data.mon, @data.mday, @data.hour, @data.min, @data.sec) if @data.sec_fraction.nonzero? if @secfrac - s << ".#{ @secfrac }" + s << ".#{ @secfrac }" else s << sprintf("%.16f", (@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '') @@ -702,7 +702,7 @@ private s = format('%02d:%02d:%02d', @data.hour, @data.min, @data.sec) if @data.sec_fraction.nonzero? if @secfrac - s << ".#{ @secfrac }" + s << ".#{ @secfrac }" else s << sprintf("%.16f", (@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '') @@ -816,7 +816,7 @@ class XSDGMonthDay < XSDAnySimpleType private def screen_data_str(t) - /^(\d\d)-(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip + /^--(\d\d)-(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip unless Regexp.last_match raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.") end @@ -827,7 +827,7 @@ private end def _to_s - s = format('%02d-%02d', @data.mon, @data.mday) + s = format('--%02d-%02d', @data.mon, @data.mday) add_tz(s) end end @@ -843,7 +843,7 @@ class XSDGDay < XSDAnySimpleType private def screen_data_str(t) - /^(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip + /^---(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip unless Regexp.last_match raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.") end @@ -853,7 +853,7 @@ private end def _to_s - s = format('%02d', @data.mday) + s = format('---%02d', @data.mday) add_tz(s) end end @@ -869,7 +869,7 @@ class XSDGMonth < XSDAnySimpleType private def screen_data_str(t) - /^(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip + /^--(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip unless Regexp.last_match raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.") end @@ -879,7 +879,7 @@ private end def _to_s - s = format('%02d', @data.mon) + s = format('--%02d', @data.mon) add_tz(s) end end diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/mapping.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/mapping.rb index 1cba775d..4602ee59 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/mapping.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/mapping.rb @@ -30,6 +30,7 @@ module Mapping class Mapper MAPPING_OPT = { :default_encodingstyle => SOAP::LiteralNamespace, + :generate_explicit_type => false, :root_type_hint => true }.freeze diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/namedelements.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/namedelements.rb index e7900d30..ec604249 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/namedelements.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/namedelements.rb @@ -63,7 +63,7 @@ class NamedElements @elements << rhs self end - + def delete(rhs) rv = @elements.delete(rhs) @cache.clear diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/ns.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/ns.rb index f4daf811..b3427666 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/ns.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/ns.rb @@ -123,7 +123,7 @@ public end # $1 and $2 are necessary. - ParseRegexp = Regexp.new('\A([^:]+)(?::(.+))?\z', nil, 'NONE') + ParseRegexp = Regexp.new('\A([^:]+)(?::(.+))?\z') def parse(str, local = false) if ParseRegexp =~ str diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/qname.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/qname.rb index aeef79a2..10377e21 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/qname.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/qname.rb @@ -56,7 +56,7 @@ class QName def hash @namespace.hash ^ @name.hash end - + def to_s "{#{ namespace }}#{ name }" end diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb index 07b978bd..c3f29649 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb @@ -7,6 +7,7 @@ require 'xsd/xmlparser/parser' +require 'soap/property' module XSD @@ -19,7 +20,7 @@ module XMLParser module_function :create_parser # $1 is necessary. - NSParseRegexp = Regexp.new('^xmlns:?(.*)$', nil, 'NONE') + NSParseRegexp = Regexp.new("^xmlns:?(.*)$") def filter_ns(ns, attrs) ns_updated = false @@ -50,20 +51,25 @@ end end +PARSER_LIBS = [ + 'libxmlparser', + 'xmlparser', + 'xmlscanner', + 'rexmlparser' +] +# Get library prefs +opt = ::SOAP::Property.loadproperty('soap/property') +use_libxml = (opt and opt['parser'] and opt['parser']['use_libxml'] and opt['parser']['use_libxml'] == 'false') ? false : true # Try to load XML processor. loaded = false -[ - 'xsd/xmlparser/xmlparser', - 'xsd/xmlparser/xmlscanner', - 'xsd/xmlparser/rexmlparser', -].each do |lib| +PARSER_LIBS.each do |name| begin - require lib + lib = "xsd/xmlparser/#{name}" + require lib unless !use_libxml && name == 'libxmlparser' # XXX: for a workaround of rubygems' require inconsistency # XXX: MUST BE REMOVED IN THE FUTURE - name = lib.sub(/^.*\//, '') raise LoadError unless XSD::XMLParser.constants.find { |c| - c.downcase == name + c.to_s.downcase == name.downcase } loaded = true break @@ -73,3 +79,4 @@ end unless loaded raise RuntimeError.new("XML processor module not found.") end + diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb.orig b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb.orig new file mode 100644 index 00000000..2880c557 --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb.orig @@ -0,0 +1,76 @@ +# XSD4R - XML Instance parser library. +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +require 'xsd/xmlparser/parser' + + +module XSD + + +module XMLParser + def create_parser(host, opt) + XSD::XMLParser::Parser.create_parser(host, opt) + end + module_function :create_parser + + # $1 is necessary. + NSParseRegexp = Regexp.new('^xmlns:?(.*)$', nil, 'NONE') + + def filter_ns(ns, attrs) + ns_updated = false + if attrs.nil? or attrs.empty? + return [ns, attrs] + end + newattrs = {} + attrs.each do |key, value| + if NSParseRegexp =~ key + unless ns_updated + ns = ns.clone_ns + ns_updated = true + end + # tag == '' means 'default namespace' + # value == '' means 'no default namespace' + tag = $1 || '' + ns.assign(value, tag) + else + newattrs[key] = value + end + end + return [ns, newattrs] + end + module_function :filter_ns +end + + +end + + +# Try to load XML processor. +loaded = false +[ + 'xsd/xmlparser/libxmlparser', + 'xsd/xmlparser/xmlparser', + 'xsd/xmlparser/xmlscanner', + 'xsd/xmlparser/rexmlparser', +].each do |lib| + begin + require lib + # XXX: for a workaround of rubygems' require inconsistency + # XXX: MUST BE REMOVED IN THE FUTURE + name = lib.sub(/^.*\//, '') + raise LoadError unless XSD::XMLParser.constants.find { |c| + c.downcase == name + } + loaded = true + break + rescue LoadError + end +end +unless loaded + raise RuntimeError.new("XML processor module not found.") +end diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/libxmlparser.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/libxmlparser.rb new file mode 100644 index 00000000..9202f9d3 --- /dev/null +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/libxmlparser.rb @@ -0,0 +1,119 @@ +# XSD4R - XMLParser XML parser library. +# Copyright (C) 2000-2007 NAKAMURA, Hiroshi . + +# This program is copyrighted free software by NAKAMURA, Hiroshi. You can +# redistribute it and/or modify it under the same terms of Ruby's license; +# either the dual license version in 2003, or any later version. + + +require 'xsd/xmlparser' +require 'xml/libxml' + + +module XSD +module XMLParser + + +class LibXMLParser < XSD::XMLParser::Parser + include XML::SaxParser::Callbacks + + def do_parse(string_or_readable) + if string_or_readable.respond_to?(:read) + string = string_or_readable.read + else + string = string_or_readable + end + # XMLParser passes a String in utf-8. + @charset = 'utf-8' + @parser = XML::SaxParser.string(string) + @parser.callbacks = self + @parser.parse + end + + ENTITY_REF_MAP = { + 'lt' => '<', + 'gt' => '>', + 'amp' => '&', + 'quot' => '"', + 'apos' => '\'' + } + + #def on_internal_subset(name, external_id, system_id) + # nil + #end + + #def on_is_standalone() + # nil + #end + + #def on_has_internal_subset() + # nil + #end + + #def on_has_external_subset() + # nil + #end + + #def on_start_document() + # nil + #end + + #def on_end_document() + # nil + #end + + def on_start_element_ns(name, attributes, prefix, uri, namespaces) + name = "#{prefix}:#{name}" unless prefix.nil? + namespaces.each do |key,value| + nsprefix = key.nil? ? "xmlns" : "xmlns:#{key}" + attributes[nsprefix] = value + end + start_element(name, attributes) + end + + def on_end_element(name) + end_element(name) + end + + def on_reference(name) + characters(ENTITY_REF_MAP[name]) + end + + def on_characters(chars) + characters(chars) + end + + #def on_processing_instruction(target, data) + # nil + #end + + #def on_comment(msg) + # nil + #end + + def on_parser_warning(msg) + warn(msg) + end + + def on_parser_error(msg) + raise ParseError.new(msg) + end + + def on_parser_fatal_error(msg) + raise ParseError.new(msg) + end + + def on_cdata_block(cdata) + characters(cdata) + end + + def on_external_subset(name, external_id, system_id) + nil + end + + add_factory(self) +end + + +end +end diff --git a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/xmlscanner.rb b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/xmlscanner.rb index ed0d7d02..c4d3d74e 100644 --- a/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/xmlscanner.rb +++ b/vendor/gems/soap4r-1.5.8/lib/xsd/xmlparser/xmlscanner.rb @@ -51,7 +51,7 @@ class XMLScanner < XSD::XMLParser::Parser end def warning(msg) - p msg if $DEBUG + warn(msg) end # def on_xmldecl; end diff --git a/vendor/gems/soap4r-1.5.8/test/16runner.rb b/vendor/gems/soap4r-1.5.8/test/16runner.rb deleted file mode 100644 index e714c92d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/16runner.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'test/unit/testsuite' -require 'test/unit/testcase' - -$KCODE = 'UTF8' - -rcsid = %w$Id: 16runner.rb 1541 2005-05-10 11:28:20Z nahi $ -Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze -Release = rcsid[3].freeze - -module Test - module Unit - module Assertions - alias assert_raise assert_raises - end - end -end - -class BulkTestSuite < Test::Unit::TestSuite - def self.suite - suite = Test::Unit::TestSuite.new - ObjectSpace.each_object(Class) do |klass| - suite << klass.suite if (Test::Unit::TestCase > klass) - end - suite - end -end - -runners_map = { - 'console' => proc do |suite| - require 'test/unit/ui/console/testrunner' - passed = Test::Unit::UI::Console::TestRunner.run(suite).passed? - exit(passed ? 0 : 1) - end, - 'gtk' => proc do |suite| - require 'test/unit/ui/gtk/testrunner' - Test::Unit::UI::GTK::TestRunner.run(suite) - end, - 'fox' => proc do |suite| - require 'test/unit/ui/fox/testrunner' - Test::Unit::UI::Fox::TestRunner.run(suite) - end, -} - -def test_require(list) - list.each do |tc_name| - if File.directory?(tc_name) - newlist = Dir.glob(File.join(tc_name, "**", "test_*.rb")).sort - test_require(newlist) - else - dir = File.expand_path(File.dirname(tc_name)) - backup = $:.dup - $:.push(dir) - require tc_name - $:.replace(backup) - end - end -end - -argv = ARGV -if argv.empty? - argv = Dir.glob(File.join(File.dirname(__FILE__), "**", "test_*.rb")).sort -end - -test_require(argv) - -runner = 'console' -GC.start -runners_map[runner].call(BulkTestSuite.suite) diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.rb deleted file mode 100644 index 51de2bb2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.rb +++ /dev/null @@ -1,83 +0,0 @@ -require 'xsd/qname' - -# {http://soapinterop.org/xsd}ArrayOfstring -class ArrayOfstring < ::Array - @@schema_type = "string" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOfint -class ArrayOfint < ::Array - @@schema_type = "int" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOffloat -class ArrayOffloat < ::Array - @@schema_type = "float" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOfSOAPStruct -class ArrayOfSOAPStruct < ::Array - @@schema_type = "SOAPStruct" - @@schema_ns = "http://soapinterop.org/xsd" -end - -# {http://soapinterop.org/xsd}SOAPStruct -class SOAPStruct - @@schema_type = "SOAPStruct" - @@schema_ns = "http://soapinterop.org/xsd" - @@schema_element = [["varString", "String"], ["varInt", "Int"], ["varFloat", "Float"]] - - attr_accessor :varString - attr_accessor :varInt - attr_accessor :varFloat - - def initialize(varString = nil, varInt = nil, varFloat = nil) - @varString = varString - @varInt = varInt - @varFloat = varFloat - end -end - -# {http://soapinterop.org/xsd}ArrayOfstring -class ArrayOfstring < ::Array - @@schema_type = "string" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOfint -class ArrayOfint < ::Array - @@schema_type = "int" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOffloat -class ArrayOffloat < ::Array - @@schema_type = "float" - @@schema_ns = "http://www.w3.org/2001/XMLSchema" -end - -# {http://soapinterop.org/xsd}ArrayOfSOAPStruct -class ArrayOfSOAPStruct < ::Array - @@schema_type = "SOAPStruct" - @@schema_ns = "http://soapinterop.org/xsd" -end - -# {http://soapinterop.org/xsd}SOAPStruct -class SOAPStruct - @@schema_type = "SOAPStruct" - @@schema_ns = "http://soapinterop.org/xsd" - @@schema_element = [["varString", "String"], ["varInt", "Int"], ["varFloat", "Float"]] - - attr_accessor :varString - attr_accessor :varInt - attr_accessor :varFloat - - def initialize(varString = nil, varInt = nil, varFloat = nil) - @varString = varString - @varInt = varInt - @varFloat = varFloat - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.wsdl deleted file mode 100644 index 21b57024..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTest.wsdl +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestC.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestC.wsdl deleted file mode 100644 index 1f1335af..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestC.wsdl +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestDriver.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestDriver.rb deleted file mode 100644 index 6c579e1a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/InteropTestDriver.rb +++ /dev/null @@ -1,327 +0,0 @@ -require 'InteropTest.rb' - -require 'soap/rpc/driver' - -class InteropTestPortType < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://dev.ctor.org/soapsrv" - MappingRegistry = ::SOAP::Mapping::Registry.new - - MappingRegistry.set( - ArrayOfstring, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") } - ) - MappingRegistry.set( - ArrayOfint, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "int") } - ) - MappingRegistry.set( - ArrayOffloat, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "float") } - ) - MappingRegistry.set( - SOAPStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new("http://soapinterop.org/xsd", "SOAPStruct") } - ) - MappingRegistry.set( - ArrayOfSOAPStruct, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://soapinterop.org/xsd", "SOAPStruct") } - ) - - Methods = [ - ["echoString", "echoString", - [ - ["in", "inputString", ["::SOAP::SOAPString"]], - ["retval", "return", ["::SOAP::SOAPString"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStringArray", "echoStringArray", - [ - ["in", "inputStringArray", ["String[]", "http://www.w3.org/2001/XMLSchema", "string"]], - ["retval", "return", ["String[]", "http://www.w3.org/2001/XMLSchema", "string"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoInteger", "echoInteger", - [ - ["in", "inputInteger", ["::SOAP::SOAPInt"]], - ["retval", "return", ["::SOAP::SOAPInt"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoIntegerArray", "echoIntegerArray", - [ - ["in", "inputIntegerArray", ["Integer[]", "http://www.w3.org/2001/XMLSchema", "int"]], - ["retval", "return", ["Integer[]", "http://www.w3.org/2001/XMLSchema", "int"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoFloat", "echoFloat", - [ - ["in", "inputFloat", ["::SOAP::SOAPFloat"]], - ["retval", "return", ["::SOAP::SOAPFloat"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoFloatArray", "echoFloatArray", - [ - ["in", "inputFloatArray", ["Float[]", "http://www.w3.org/2001/XMLSchema", "float"]], - ["retval", "return", ["Float[]", "http://www.w3.org/2001/XMLSchema", "float"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStruct", "echoStruct", - [ - ["in", "inputStruct", ["SOAPStruct", "http://soapinterop.org/xsd", "SOAPStruct"]], - ["retval", "return", ["SOAPStruct", "http://soapinterop.org/xsd", "SOAPStruct"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStructArray", "echoStructArray", - [ - ["in", "inputStructArray", ["SOAPStruct[]", "http://soapinterop.org/xsd", "SOAPStruct"]], - ["retval", "return", ["SOAPStruct[]", "http://soapinterop.org/xsd", "SOAPStruct"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoVoid", "echoVoid", - [], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoBase64", "echoBase64", - [ - ["in", "inputBase64", ["::SOAP::SOAPBase64"]], - ["retval", "return", ["::SOAP::SOAPBase64"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoDate", "echoDate", - [ - ["in", "inputDate", ["::SOAP::SOAPDateTime"]], - ["retval", "return", ["::SOAP::SOAPDateTime"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoHexBinary", "echoHexBinary", - [ - ["in", "inputHexBinary", ["::SOAP::SOAPHexBinary"]], - ["retval", "return", ["::SOAP::SOAPHexBinary"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoDecimal", "echoDecimal", - [ - ["in", "inputDecimal", ["::SOAP::SOAPDecimal"]], - ["retval", "return", ["::SOAP::SOAPDecimal"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoBoolean", "echoBoolean", - [ - ["in", "inputBoolean", ["::SOAP::SOAPBoolean"]], - ["retval", "return", ["::SOAP::SOAPBoolean"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = MappingRegistry - init_methods - end - -private - - def init_methods - Methods.each do |name_as, name, params, soapaction, namespace, style| - qname = XSD::QName.new(namespace, name_as) - if style == :document - @proxy.add_document_method(soapaction, name, params) - add_document_method_interface(name, params) - else - @proxy.add_rpc_method(qname, soapaction, name, params) - add_rpc_method_interface(name, params) - end - if name_as != name and name_as.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, name_as) do |*arg| - __send__(name, *arg) - end - end - end - end -end - -require 'soap/rpc/driver' - -class InteropTestPortType < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://dev.ctor.org/soapsrv" - MappingRegistry = ::SOAP::Mapping::Registry.new - - MappingRegistry.set( - ArrayOfstring, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") } - ) - MappingRegistry.set( - ArrayOfint, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "int") } - ) - MappingRegistry.set( - ArrayOffloat, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "float") } - ) - MappingRegistry.set( - SOAPStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new("http://soapinterop.org/xsd", "SOAPStruct") } - ) - MappingRegistry.set( - ArrayOfSOAPStruct, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new("http://soapinterop.org/xsd", "SOAPStruct") } - ) - - Methods = [ - ["echoString", "echoString", - [ - ["in", "inputString", ["::SOAP::SOAPString"]], - ["retval", "return", ["::SOAP::SOAPString"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStringArray", "echoStringArray", - [ - ["in", "inputStringArray", ["String[]", "http://www.w3.org/2001/XMLSchema", "string"]], - ["retval", "return", ["String[]", "http://www.w3.org/2001/XMLSchema", "string"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoInteger", "echoInteger", - [ - ["in", "inputInteger", ["::SOAP::SOAPInt"]], - ["retval", "return", ["::SOAP::SOAPInt"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoIntegerArray", "echoIntegerArray", - [ - ["in", "inputIntegerArray", ["Integer[]", "http://www.w3.org/2001/XMLSchema", "int"]], - ["retval", "return", ["Integer[]", "http://www.w3.org/2001/XMLSchema", "int"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoFloat", "echoFloat", - [ - ["in", "inputFloat", ["::SOAP::SOAPFloat"]], - ["retval", "return", ["::SOAP::SOAPFloat"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoFloatArray", "echoFloatArray", - [ - ["in", "inputFloatArray", ["Float[]", "http://www.w3.org/2001/XMLSchema", "float"]], - ["retval", "return", ["Float[]", "http://www.w3.org/2001/XMLSchema", "float"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStruct", "echoStruct", - [ - ["in", "inputStruct", ["SOAPStruct", "http://soapinterop.org/xsd", "SOAPStruct"]], - ["retval", "return", ["SOAPStruct", "http://soapinterop.org/xsd", "SOAPStruct"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoStructArray", "echoStructArray", - [ - ["in", "inputStructArray", ["SOAPStruct[]", "http://soapinterop.org/xsd", "SOAPStruct"]], - ["retval", "return", ["SOAPStruct[]", "http://soapinterop.org/xsd", "SOAPStruct"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoVoid", "echoVoid", - [], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoBase64", "echoBase64", - [ - ["in", "inputBase64", ["::SOAP::SOAPBase64"]], - ["retval", "return", ["::SOAP::SOAPBase64"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoDate", "echoDate", - [ - ["in", "inputDate", ["::SOAP::SOAPDateTime"]], - ["retval", "return", ["::SOAP::SOAPDateTime"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoHexBinary", "echoHexBinary", - [ - ["in", "inputHexBinary", ["::SOAP::SOAPHexBinary"]], - ["retval", "return", ["::SOAP::SOAPHexBinary"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoDecimal", "echoDecimal", - [ - ["in", "inputDecimal", ["::SOAP::SOAPDecimal"]], - ["retval", "return", ["::SOAP::SOAPDecimal"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ], - ["echoBoolean", "echoBoolean", - [ - ["in", "inputBoolean", ["::SOAP::SOAPBoolean"]], - ["retval", "return", ["::SOAP::SOAPBoolean"]] - ], - "http://soapinterop.org/", "http://soapinterop.org/", :rpc - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = MappingRegistry - init_methods - end - -private - - def init_methods - Methods.each do |name_as, name, params, soapaction, namespace, style| - qname = XSD::QName.new(namespace, name_as) - if style == :document - @proxy.add_document_method(soapaction, name, params) - add_document_method_interface(name, params) - else - @proxy.add_rpc_method(qname, soapaction, name, params) - add_rpc_method_interface(name, params) - end - if name_as != name and name_as.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, name_as) do |*arg| - __send__(name, *arg) - end - end - end - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/README.txt b/vendor/gems/soap4r-1.5.8/test/interopR2/README.txt deleted file mode 100644 index bca58a2a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -Clients/Server for SOAPBuilders Interoperability Lab "Round 2" -http://www.whitemesa.com/interop.htm diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2.wsdl deleted file mode 100644 index a7785d41..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2.wsdl +++ /dev/null @@ -1,461 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupB.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupB.wsdl deleted file mode 100644 index e87eaacd..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupB.wsdl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupCClient.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupCClient.rb deleted file mode 100644 index dc755b22..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAP4R_SOAPBuildersInteropTest_R2GroupCClient.rb +++ /dev/null @@ -1,176 +0,0 @@ -#!/usr/bin/env ruby -require 'InteropTestDriver.rb' - -endpoint_url = ARGV.shift -obj = InteropTestPortType.new(endpoint_url) - -# Uncomment the below line to see SOAP wiredumps. -# obj.wiredump_dev = STDERR - -# SYNOPSIS -# echoString(inputString) -# -# ARGS -# inputString String - {http://www.w3.org/2001/XMLSchema}string -# -# RETURNS -# v_return String - {http://www.w3.org/2001/XMLSchema}string -# -inputString = nil -puts obj.echoString(inputString) - -# SYNOPSIS -# echoStringArray(inputStringArray) -# -# ARGS -# inputStringArray ArrayOfstring - {http://soapinterop.org/xsd}ArrayOfstring -# -# RETURNS -# v_return ArrayOfstring - {http://soapinterop.org/xsd}ArrayOfstring -# -inputStringArray = nil -puts obj.echoStringArray(inputStringArray) - -# SYNOPSIS -# echoInteger(inputInteger) -# -# ARGS -# inputInteger Int - {http://www.w3.org/2001/XMLSchema}int -# -# RETURNS -# v_return Int - {http://www.w3.org/2001/XMLSchema}int -# -inputInteger = nil -puts obj.echoInteger(inputInteger) - -# SYNOPSIS -# echoIntegerArray(inputIntegerArray) -# -# ARGS -# inputIntegerArray ArrayOfint - {http://soapinterop.org/xsd}ArrayOfint -# -# RETURNS -# v_return ArrayOfint - {http://soapinterop.org/xsd}ArrayOfint -# -inputIntegerArray = nil -puts obj.echoIntegerArray(inputIntegerArray) - -# SYNOPSIS -# echoFloat(inputFloat) -# -# ARGS -# inputFloat Float - {http://www.w3.org/2001/XMLSchema}float -# -# RETURNS -# v_return Float - {http://www.w3.org/2001/XMLSchema}float -# -inputFloat = nil -puts obj.echoFloat(inputFloat) - -# SYNOPSIS -# echoFloatArray(inputFloatArray) -# -# ARGS -# inputFloatArray ArrayOffloat - {http://soapinterop.org/xsd}ArrayOffloat -# -# RETURNS -# v_return ArrayOffloat - {http://soapinterop.org/xsd}ArrayOffloat -# -inputFloatArray = nil -puts obj.echoFloatArray(inputFloatArray) - -# SYNOPSIS -# echoStruct(inputStruct) -# -# ARGS -# inputStruct SOAPStruct - {http://soapinterop.org/xsd}SOAPStruct -# -# RETURNS -# v_return SOAPStruct - {http://soapinterop.org/xsd}SOAPStruct -# -inputStruct = nil -puts obj.echoStruct(inputStruct) - -# SYNOPSIS -# echoStructArray(inputStructArray) -# -# ARGS -# inputStructArray ArrayOfSOAPStruct - {http://soapinterop.org/xsd}ArrayOfSOAPStruct -# -# RETURNS -# v_return ArrayOfSOAPStruct - {http://soapinterop.org/xsd}ArrayOfSOAPStruct -# -inputStructArray = nil -puts obj.echoStructArray(inputStructArray) - -# SYNOPSIS -# echoVoid -# -# ARGS -# N/A -# -# RETURNS -# N/A -# - -puts obj.echoVoid - -# SYNOPSIS -# echoBase64(inputBase64) -# -# ARGS -# inputBase64 Base64Binary - {http://www.w3.org/2001/XMLSchema}base64Binary -# -# RETURNS -# v_return Base64Binary - {http://www.w3.org/2001/XMLSchema}base64Binary -# -inputBase64 = nil -puts obj.echoBase64(inputBase64) - -# SYNOPSIS -# echoDate(inputDate) -# -# ARGS -# inputDate DateTime - {http://www.w3.org/2001/XMLSchema}dateTime -# -# RETURNS -# v_return DateTime - {http://www.w3.org/2001/XMLSchema}dateTime -# -inputDate = nil -puts obj.echoDate(inputDate) - -# SYNOPSIS -# echoHexBinary(inputHexBinary) -# -# ARGS -# inputHexBinary HexBinary - {http://www.w3.org/2001/XMLSchema}hexBinary -# -# RETURNS -# v_return HexBinary - {http://www.w3.org/2001/XMLSchema}hexBinary -# -inputHexBinary = nil -puts obj.echoHexBinary(inputHexBinary) - -# SYNOPSIS -# echoDecimal(inputDecimal) -# -# ARGS -# inputDecimal Decimal - {http://www.w3.org/2001/XMLSchema}decimal -# -# RETURNS -# v_return Decimal - {http://www.w3.org/2001/XMLSchema}decimal -# -inputDecimal = nil -puts obj.echoDecimal(inputDecimal) - -# SYNOPSIS -# echoBoolean(inputBoolean) -# -# ARGS -# inputBoolean Boolean - {http://www.w3.org/2001/XMLSchema}boolean -# -# RETURNS -# v_return Boolean - {http://www.w3.org/2001/XMLSchema}boolean -# -inputBoolean = nil -puts obj.echoBoolean(inputBoolean) diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2.wsdl deleted file mode 100644 index a7785d41..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2.wsdl +++ /dev/null @@ -1,461 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrB.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrB.wsdl deleted file mode 100644 index 61209c75..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrB.wsdl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrC.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrC.wsdl deleted file mode 100644 index 337a548d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/SOAPBuildersInterop_R2GrC.wsdl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/base.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/base.rb deleted file mode 100644 index e53162eb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/base.rb +++ /dev/null @@ -1,288 +0,0 @@ -require 'soap/soap' -require 'soap/mapping' - - -InterfaceNS = 'http://soapinterop.org/' -TypeNS = 'http://soapinterop.org/xsd' -ApacheNS = 'http://xml.apache.org/xml-soap' - - -module SOAPBuildersInterop -extend SOAP - - -MethodsBase = [ - ['echoVoid'], - ['echoString', - ['in', 'inputString', nil], ['retval', 'return', nil]], - ['echoStringArray', - ['in', 'inputStringArray', nil], ['retval', 'return', nil]], - ['echoInteger', - ['in', 'inputInteger', nil], ['retval', 'return', nil]], - ['echoIntegerArray', - ['in', 'inputIntegerArray', nil], ['retval', 'return', nil]], - ['echoFloat', - ['in', 'inputFloat', nil], ['retval', 'return', nil]], - ['echoFloatArray', - ['in', 'inputFloatArray', nil], ['retval', 'return', nil]], - ['echoStruct', - ['in', 'inputStruct', nil], ['retval', 'return', nil]], - ['echoStructArray', - ['in', 'inputStructArray', nil], ['retval', 'return', nil]], - ['echoDate', - ['in', 'inputDate', nil], ['retval', 'return', nil]], - ['echoBase64', - ['in', 'inputBase64', nil], ['retval', 'return', nil]], - ['echoHexBinary', - ['in', 'inputHexBinary', nil], ['retval', 'return', nil]], - ['echoBoolean', - ['in', 'inputBoolean', nil], ['retval', 'return', nil]], - ['echoDecimal', - ['in', 'inputDecimal', nil], ['retval', 'return', nil]], - ['echoMap', - ['in', 'inputMap', nil], ['retval', 'return', nil]], - ['echoMapArray', - ['in', 'inputMapArray', nil], ['retval', 'return', nil]], - - ['echoDouble', - ['in', 'inputDouble', nil], ['retval', 'return', nil]], - ['echoXSDDateTime', - ['in', 'inputXSDDateTime', nil], ['retval', 'return', nil]], - ['echoXSDDate', - ['in', 'inputXSDDate', nil], ['retval', 'return', nil]], - ['echoXSDTime', - ['in', 'inputXSDTime', nil], ['retval', 'return', nil]], -] - -MethodsGroupB = [ - ['echoStructAsSimpleTypes', - ['in', 'inputStruct', nil], ['out', 'outputString', nil], ['out', 'outputInteger', nil], ['out', 'outputFloat', nil]], - ['echoSimpleTypesAsStruct', - ['in', 'inputString', nil], ['in', 'inputInteger', nil], ['in', 'inputFloat', nil], ['retval', 'return', nil]], - ['echo2DStringArray', - ['in', 'input2DStringArray', nil], ['retval', 'return', nil]], - ['echoNestedStruct', - ['in', 'inputStruct', nil], ['retval', 'return', nil]], - ['echoNestedArray', - ['in', 'inputStruct', nil], ['retval', 'return', nil]], -] - -MethodsPolyMorph = [ - ['echoPolyMorph', - ['in', 'inputPolyMorph', nil], ['retval', 'return', nil]], - ['echoPolyMorphStruct', - ['in', 'inputPolyMorphStruct', nil], ['retval', 'return', nil]], - ['echoPolyMorphArray', - ['in', 'inputPolyMorphArray', nil], ['retval', 'return', nil]], -] - - -module FloatSupport - def floatEquals( lhs, rhs ) - lhsVar = lhs.is_a?( SOAP::SOAPFloat )? lhs.data : lhs - rhsVar = rhs.is_a?( SOAP::SOAPFloat )? rhs.data : rhs - lhsVar == rhsVar - end -end - -class SOAPStruct - include SOAP::Marshallable - include FloatSupport - - attr_accessor :varInt, :varFloat, :varString - - def initialize( varInt, varFloat, varString ) - @varInt = varInt - @varFloat = varFloat ? SOAP::SOAPFloat.new( varFloat ) : nil - @varString = varString - end - - def ==( rhs ) - r = if rhs.is_a?( self.class ) - ( self.varInt == rhs.varInt && - floatEquals( self.varFloat, rhs.varFloat ) && - self.varString == rhs.varString ) - else - false - end - r - end - - def to_s - "#{ varInt }:#{ varFloat }:#{ varString }" - end -end - - -class SOAPStructStruct - include SOAP::Marshallable - include FloatSupport - - attr_accessor :varInt, :varFloat, :varString, :varStruct - - def initialize( varInt, varFloat, varString, varStruct = nil ) - @varInt = varInt - @varFloat = varFloat ? SOAP::SOAPFloat.new( varFloat ) : nil - @varString = varString - @varStruct = varStruct - end - - def ==( rhs ) - r = if rhs.is_a?( self.class ) - ( self.varInt == rhs.varInt && - floatEquals( self.varFloat, rhs.varFloat ) && - self.varString == rhs.varString && - self.varStruct == rhs.varStruct ) - else - false - end - r - end - - def to_s - "#{ varInt }:#{ varFloat }:#{ varString }:#{ varStruct }" - end -end - - -class PolyMorphStruct - include SOAP::Marshallable - - attr_reader :varA, :varB, :varC - - def initialize( varA, varB, varC ) - @varA = varA - @varB = varB - @varC = varC - end - - def ==( rhs ) - r = if rhs.is_a?( self.class ) - ( self.varA == rhs.varA && - self.varB == rhs.varB && - self.varC == rhs.varC ) - else - false - end - r - end - - def to_s - "#{ varA }:#{ varB }:#{ varC }" - end -end - - -class SOAPArrayStruct - include SOAP::Marshallable - include FloatSupport - - attr_accessor :varInt, :varFloat, :varString, :varArray - - def initialize( varInt, varFloat, varString, varArray = nil ) - @varInt = varInt - @varFloat = varFloat ? SOAP::SOAPFloat.new( varFloat ) : nil - @varString = varString - @varArray = varArray - end - - def ==( rhs ) - r = if rhs.is_a?( self.class ) - ( self.varInt == rhs.varInt && - floatEquals( self.varFloat, rhs.varFloat ) && - self.varString == rhs.varString && - self.varArray == rhs.varArray ) - else - false - end - r - end - - def to_s - "#{ varInt }:#{ varFloat }:#{ varString }:#{ varArray }" - end -end - - -class StringArray < Array; end -class IntArray < Array; end -class FloatArray < Array; end -class SOAPStructArray < Array; end -class SOAPMapArray < Array; end -class ArrayOfanyType < Array; end - - -MappingRegistry = SOAP::Mapping::Registry.new - -MappingRegistry.set( - ::SOAPBuildersInterop::SOAPStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new( TypeNS, "SOAPStruct" ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::SOAPStructStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new( TypeNS, "SOAPStructStruct" ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::PolyMorphStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new( TypeNS, "PolyMorphStruct" ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::SOAPArrayStruct, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - { :type => XSD::QName.new( TypeNS, "SOAPArrayStruct" ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::StringArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new( XSD::Namespace, XSD::StringLiteral ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::IntArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new( XSD::Namespace, XSD::IntLiteral ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::FloatArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new( XSD::Namespace, XSD::FloatLiteral ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::SOAPStructArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new( TypeNS, 'SOAPStruct' ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::SOAPMapArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::QName.new( ApacheNS, 'Map' ) } -) - -MappingRegistry.set( - ::SOAPBuildersInterop::ArrayOfanyType, - ::SOAP::SOAPArray, - ::SOAP::Mapping::Registry::TypedArrayFactory, - { :type => XSD::AnyTypeName } -) - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/client.NetRemoting.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/client.NetRemoting.rb deleted file mode 100644 index 1403d87c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/client.NetRemoting.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'dotNetRemotingWebServices' -$serverBase = 'http://www.mssoapinterop.org/remoting/ServiceA.soap' -$serverGroupB = 'http://www.mssoapinterop.org/remoting/ServiceB.soap' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/client.log b/vendor/gems/soap4r-1.5.8/test/interopR2/client.log deleted file mode 100644 index d859cb3e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/client.log +++ /dev/null @@ -1,4 +0,0 @@ -File: client.log - Wiredumps for SOAP4R client / localhsot server. -Date: Wed Jul 04 23:08:41 +0900 2007 - -==== test_echoMapArray_multibyte_char ======================================== diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/client.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/client.rb deleted file mode 100644 index 8bf77290..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/client.rb +++ /dev/null @@ -1,1234 +0,0 @@ -$KCODE = 'EUC' - -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/mapping' -require 'base' -require 'interopResultBase' -require 'xsd/xmlparser/rexmlparser' -#XSD::Charset.encoding = 'EUC' - -class Float - Precision = 5 - def ==(rhs) - if rhs.is_a?(Float) - if self.nan? and rhs.nan? - true - elsif self.infinite? == rhs.infinite? - true - elsif (rhs - self).abs <= (10 ** (- Precision)) - true - else - false - end - else - false - end - end -end - -class FakeFloat < SOAP::SOAPFloat - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeDateTime < SOAP::SOAPDateTime - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeDecimal < SOAP::SOAPDecimal - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeInt < SOAP::SOAPInt - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class SOAPBuildersTest < Test::Unit::TestCase - include SOAP - include SOAPBuildersInterop - - NegativeZero = (-1.0 / (1.0 / 0.0)) - - class << self - include SOAP - def setup(name, location) - setup_log(name) - setup_drv(location) - end - - def teardown - end - - private - - def setup_log(name) - filename = File.basename($0).sub(/\.rb$/, '') << '.log' - @@log = File.open(filename, 'w') - @@log << "File: #{ filename } - Wiredumps for SOAP4R client / #{ name } server.\n" - @@log << "Date: #{ Time.now }\n\n" - end - - def setup_drv(location) - namespace = InterfaceNS - soap_action = InterfaceNS - @@drv = RPC::Driver.new(location, namespace, soap_action) - @@drv.mapping_registry = SOAPBuildersInterop::MappingRegistry - if $DEBUG - @@drv.wiredump_dev = STDOUT - else - @@drv.wiredump_dev = @@log - end - method_def(@@drv, soap_action) - end - - def method_def(drv, soap_action = nil) - do_method_def(drv, SOAPBuildersInterop::MethodsBase, soap_action) - do_method_def(drv, SOAPBuildersInterop::MethodsGroupB, soap_action) - end - - def do_method_def(drv, defs, soap_action = nil) - defs.each do |name, *params| - drv.add_rpc_operation( - XSD::QName.new(InterfaceNS, name), soap_action, name, params) - end - end - end - - def setup - end - - def teardown - end - - def drv - @@drv - end - - def log_test - /`([^']+)'/ =~ caller(1)[0] - title = $1 - title = "==== " + title + " " << "=" * (title.length > 72 ? 0 : (72 - title.length)) - @@log << "#{title}\n\n" - end - - def assert_exception(klass_or_module) - begin - yield - assert(false, "Exception was not raised.") - rescue Exception => e - if klass_or_module.is_a?(Module) - assert_kind_of(klass_or_module, e) - elsif klass_or_module.is_a?(Class) - assert_instance_of(klass_or_module, e) - else - assert(false, "Must be a klass or a mogule.") - end - end - end - - def inspect_with_id(obj) - case obj - when Array - obj.collect { |ele| inspect_with_id(ele) } - else - # String#== compares content of args. - "#{ obj.class }##{ obj.__id__ }" - end - end - - def dump_result(title, result, resultStr) - @@test_result.add( - SOAPBuildersInteropResult::TestResult.new( - title, - result, - resultStr, - $wireDumpDev.dup - ) - ) - $wireDumpLogFile << "Result: #{ resultStr || 'OK' }\n\n" - $wireDumpLogFile << $wireDumpDev - $wireDumpLogFile << "\n" - - $wireDumpDev.replace('') - end - - def test_echoVoid - log_test - var = drv.echoVoid() - assert_equal(nil, var) - end - - def test_echoString - log_test - arg = "SOAP4R Interoperability Test" - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_Entity_reference - log_test - arg = "<>\"& <>"& &&><<<" - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_haracter_reference - log_test - arg = "\x20 \040 \x7f\177" - tobe = " \177\177\177\177" - var = drv.echoString(SOAP::SOAPRawString.new(arg)) - assert_equal(tobe, var) - end - - def test_echoString_Leading_and_trailing_whitespace - log_test - arg = " SOAP4R\nInteroperability\nTest " - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_EUC_encoded - log_test - arg = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_EUC_encoded_again - log_test - arg = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_SJIS_encoded - log_test - arg = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - require 'nkf' - arg = NKF.nkf("-sm0", arg) - drv.options["soap.mapping.external_ces"] = 'SJIS' - begin - var = drv.echoString(arg) - assert_equal(arg, var) - ensure - drv.options["soap.mapping.external_ces"] = nil - end - end - - def test_echoString_empty - log_test - arg = '' - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_space - log_test - arg = ' ' - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoString_whitespaces - log_test - arg = "\r \n \t \r \n \t" - var = drv.echoString(arg) - assert_equal(arg, var) - end - - def test_echoStringArray - log_test - arg = StringArray["SOAP4R\n", " Interoperability ", "\tTest\t"] - var = drv.echoStringArray(arg) - assert_equal(arg, var) - end - - def test_echoStringArray_multi_ref - log_test - str1 = "SOAP4R" - str2 = "SOAP4R" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - assert_equal(arg, var) - end - - def test_echoStringArray_multi_ref_idmatch - log_test - str1 = "SOAP4R" - str2 = "SOAP4R" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - assert_equal(inspect_with_id(var[0]), inspect_with_id(var[2])) - end - - def test_echoStringArray_empty_multi_ref_idmatch - log_test - str1 = "" - str2 = "" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - assert_equal(inspect_with_id(var[0]), inspect_with_id(var[2])) - end - - def test_echoInteger_123 - log_test - arg = 123 - var = drv.echoInteger(arg) - assert_equal(arg, var) - end - - def test_echoInteger_2147483647 - log_test - arg = 2147483647 - var = drv.echoInteger(arg) - assert_equal(arg, var) - end - - def test_echoInteger_negative_2147483648 - log_test - arg = -2147483648 - var = drv.echoInteger(arg) - assert_equal(arg, var) - end - - def test_echoInteger_2147483648_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("2147483648") - var = drv.echoInteger(arg) - end - end - - def test_echoInteger_negative_2147483649_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("-2147483649") - var = drv.echoInteger(arg) - end - end - - def test_echoInteger_0_0_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("0.0") - var = drv.echoInteger(arg) - end - end - - def test_echoInteger_negative_5_2_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("-5.2") - var = drv.echoInteger(arg) - end - end - - def test_echoInteger_0_000000000a_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("0.000000000a") - var = drv.echoInteger(arg) - end - end - - def test_echoInteger_plus_minus_5_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeInt.new("+-5") - var = drv.echoInteger(arg) - end - end - - def test_echoIntegerArray - log_test - arg = IntArray[1, 2, 3] - var = drv.echoIntegerArray(arg) - assert_equal(arg, var) - end - - def test_echoIntegerArray_empty - log_test - arg = SOAP::SOAPArray.new(SOAP::ValueArrayName, 1, XSD::XSDInt::Type) - var = drv.echoIntegerArray(arg) - assert_equal([], var) - end - - def test_echoFloat - log_test - arg = 3.14159265358979 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_scientific_notation - log_test - arg = 12.34e36 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_scientific_notation_2 - log_test - arg = FakeFloat.new("12.34e36") - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(12.34e36, var) - end - - def test_echoFloat_scientific_notation_3 - log_test - arg = FakeFloat.new("12.34E+36") - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(12.34e36, var) - end - - def test_echoFloat_scientific_notation_4 - log_test - arg = FakeFloat.new("-1.4E") - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(1.4, var) - end - - def test_echoFloat_positive_lower_boundary - log_test - arg = 1.4e-45 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_negative_lower_boundary - log_test - arg = -1.4e-45 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_special_values_positive_0 - log_test - arg = 0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_special_values_negative_0 - log_test - arg = NegativeZero - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_special_values_NaN - log_test - arg = 0.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_special_values_positive_INF - log_test - arg = 1.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_special_values_negative_INF - log_test - arg = -1.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - assert_equal(arg, var) - end - - def test_echoFloat_0_000a_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeFloat.new("0.0000000000000000a") - var = drv.echoFloat(arg) - end - end - - def test_echoFloat_00a_0001_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeFloat.new("00a.000000000000001") - var = drv.echoFloat(arg) - end - end - - def test_echoFloat_plus_minus_5_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeFloat.new("+-5") - var = drv.echoFloat(arg) - end - end - - def test_echoFloat_5_0_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeFloat.new("5_0") - var = drv.echoFloat(arg) - end - end - - def test_echoFloatArray - log_test - arg = FloatArray[SOAPFloat.new(0.0001), SOAPFloat.new(1000.0), - SOAPFloat.new(0.0)] - var = drv.echoFloatArray(arg) - assert_equal(arg.collect { |ele| ele.data }, var) - end - - def test_echoFloatArray_special_values_NaN_positive_INF_negative_INF - log_test - nan = SOAPFloat.new(0.0/0.0) - inf = SOAPFloat.new(1.0/0.0) - inf_ = SOAPFloat.new(-1.0/0.0) - arg = FloatArray[nan, inf, inf_] - var = drv.echoFloatArray(arg) - assert_equal(arg.collect { |ele| ele.data }, var) - end - - def test_echoStruct - log_test - arg = SOAPStruct.new(1, 1.1, "a") - var = drv.echoStruct(arg) - assert_equal(arg, var) - end - - def test_echoStruct_nil_members - log_test - arg = SOAPStruct.new(nil, nil, nil) - var = drv.echoStruct(arg) - assert_equal(arg, var) - end - - def test_echoStructArray - log_test - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - s3 = SOAPStruct.new(3, 3.3, "c") - arg = SOAPStructArray[s1, s2, s3] - var = drv.echoStructArray(arg) - assert_equal(arg, var) - end - - def test_echoStructArray_anyType_Array - log_test - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - s3 = SOAPStruct.new(3, 3.3, "c") - arg = [s1, s2, s3] - var = drv.echoStructArray(arg) - assert_equal(arg, var) - end - - def test_echoStructArray_multi_ref - log_test - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = SOAPStructArray[s1, s1, s2] - var = drv.echoStructArray(arg) - assert_equal(arg, var) - end - - def test_echoStructArray_multi_ref_idmatch - log_test - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = SOAPStructArray[s1, s1, s2] - var = drv.echoStructArray(arg) - assert_equal(inspect_with_id(var[0]), inspect_with_id(var[1])) - end - - def test_echoStructArray_anyType_Array_multi_ref_idmatch - log_test - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = [s1, s2, s2] - var = drv.echoStructArray(arg) - assert_equal(inspect_with_id(var[1]), inspect_with_id(var[2])) - end - - def test_echoStructArray_multi_ref_idmatch_varString_of_elem1_varString_of_elem2 - log_test - str1 = "a" - str2 = "a" - s1 = SOAPStruct.new(1, 1.1, str1) - s2 = SOAPStruct.new(2, 2.2, str1) - s3 = SOAPStruct.new(3, 3.3, str2) - arg = SOAPStructArray[s1, s2, s3] - var = drv.echoStructArray(arg) - assert_equal(inspect_with_id(var[0].varString), inspect_with_id(var[1].varString)) - end - - def test_echoStructArray_anyType_Array_multi_ref_idmatch_varString_of_elem2_varString_of_elem3 - log_test - str1 = "b" - str2 = "b" - s1 = SOAPStruct.new(1, 1.1, str2) - s2 = SOAPStruct.new(2, 2.2, str1) - s3 = SOAPStruct.new(3, 3.3, str1) - arg = [s1, s2, s3] - var = drv.echoStructArray(arg) - assert_equal(inspect_with_id(var[1].varString), inspect_with_id(var[2].varString)) - end - - def test_echoDate_now - log_test - t = Time.now.gmtime - arg = DateTime.new(t.year, t.mon, t.mday, t.hour, t.min, t.sec) - var = drv.echoDate(arg) - assert_equal(arg.to_s, var.to_s) - end - - def test_echoDate_before_1970 - log_test - t = Time.now.gmtime - arg = DateTime.new(1, 1, 1, 0, 0, 0) - var = drv.echoDate(arg) - assert_equal(arg.to_s, var.to_s) - end - - def test_echoDate_after_2038 - log_test - t = Time.now.gmtime - arg = DateTime.new(2038, 12, 31, 0, 0, 0) - var = drv.echoDate(arg) - assert_equal(arg.to_s, var.to_s) - end - - def test_echoDate_negative_10_01_01T00_00_00Z - log_test - t = Time.now.gmtime - arg = DateTime.new(-10, 1, 1, 0, 0, 0) - var = drv.echoDate(arg) - assert_equal(arg.to_s, var.to_s) - end - - def test_echoDate_time_precision_msec - log_test - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40.012') - argDate = arg.data - var = drv.echoDate(arg) - assert_equal(argDate, var) - end - - def test_echoDate_time_precision_long - log_test - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40.0000000000123456789012345678900000000000') - argDate = arg.data - var = drv.echoDate(arg) - assert_equal(argDate, var) - end - - def test_echoDate_positive_TZ - log_test - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40+07:00') - argNormalized = DateTime.new(2001, 6, 16, 18, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_negative_TZ - log_test - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40-07:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_positive_00_00_TZ - log_test - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40+00:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_negative_00_00_TZ - log_test - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40-00:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_min_TZ - log_test - arg = SOAP::SOAPDateTime.new('2001-06-16T00:00:01+00:01') - argNormalized = DateTime.new(2001, 6, 15, 23, 59, 1) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_year_9999 - log_test - arg = SOAP::SOAPDateTime.new('10000-06-16T18:13:40-07:00') - argNormalized = DateTime.new(10000, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_year_0 - log_test - arg = SOAP::SOAPDateTime.new('-0001-06-16T18:13:40-07:00') - argNormalized = DateTime.new(0, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_year_4713 - log_test - arg = SOAP::SOAPDateTime.new('-4713-01-01T12:00:00') - argNormalized = DateTime.new(-4712, 1, 1, 12, 0, 0) - var = drv.echoDate(arg) - assert_equal(argNormalized, var) - end - - def test_echoDate_year_0000_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDateTime.new("0000-05-18T16:52:20Z") - var = drv.echoDate(arg) - end - end - - def test_echoDate_year_nn_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDateTime.new("05-05-18T16:52:20Z") - var = drv.echoDate(arg) - end - end - - def test_echoDate_no_day_part_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDateTime.new("2002-05T16:52:20Z") - var = drv.echoDate(arg) - end - end - - def test_echoDate_no_sec_part_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDateTime.new("2002-05-18T16:52Z") - var = drv.echoDate(arg) - end - end - - def test_echoDate_empty_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDateTime.new("") - var = drv.echoDate(arg) - end - end - - def test_echoBase64_xsd_base64Binary - log_test - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPBase64.new(str) - arg.as_xsd # Force xsd:base64Binary instead of soap-enc:base64 - var = drv.echoBase64(arg) - assert_equal(str, var) - end - - def test_echoBase64_xsd_base64Binary_empty - log_test - str = "" - arg = SOAP::SOAPBase64.new(str) - arg.as_xsd # Force xsd:base64Binary instead of soap-enc:base64 - var = drv.echoBase64(arg) - assert_equal(str, var) - end - - def test_echoBase64_SOAP_ENC_base64 - log_test - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - assert_equal(str, var) - end - - def test_echoBase64_0 - log_test - str = "\0" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - assert_equal(str, var) - end - - def test_echoBase64_0a_0 - log_test - str = "a\0b\0\0c\0\0\0" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - assert_equal(str, var) - end - - def test_echoBase64_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = SOAP::SOAPBase64.new("dummy") - arg.instance_eval { @data = '-' } - var = drv.echoBase64(arg) - end - end - - def test_echoHexBinary - log_test - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - assert_equal(str, var) - end - - def test_echoHexBinary_empty - log_test - str = "" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - assert_equal(str, var) - end - - def test_echoHexBinary_0 - log_test - str = "\0" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - assert_equal(str, var) - end - - def test_echoHexBinary_0a_0 - log_test - str = "a\0b\0\0c\0\0\0" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - assert_equal(str, var) - end - - def test_echoHexBinary_lower_case - log_test - str = "lower case" - arg = SOAP::SOAPHexBinary.new - arg.set_encoded((str.unpack("H*")[0]).tr('A-F', 'a-f')) - var = drv.echoHexBinary(arg) - assert_equal(str, var) - end - - def test_echoHexBinary_0FG7_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = SOAP::SOAPHexBinary.new("dummy") - arg.instance_eval { @data = '0FG7' } - var = drv.echoHexBinary(arg) - end - end - - def test_echoBoolean_true - log_test - arg = true - var = drv.echoBoolean(arg) - assert_equal(arg, var) - end - - def test_echoBoolean_false - log_test - arg = false - var = drv.echoBoolean(arg) - assert_equal(arg, var) - end - - def test_echoBoolean_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = SOAP::SOAPBoolean.new(true) - arg.instance_eval { @data = 'junk' } - var = drv.echoBoolean(arg) - end - end - - def test_echoDecimal_123456 - log_test - arg = "123456789012345678" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = arg - assert_equal(normalized, var) - end - - def test_echoDecimal_0_123 - log_test - arg = "+0.12345678901234567" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = arg.sub(/0$/, '').sub(/^\+/, '') - assert_equal(normalized, var) - end - - def test_echoDecimal_00000123 - log_test - arg = ".00000123456789012" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = '0' << arg.sub(/0$/, '') - assert_equal(normalized, var) - end - - def test_echoDecimal_negative_00000123 - log_test - arg = "-.00000123456789012" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = '-0' << arg.sub(/0$/, '').sub(/-/, '') - assert_equal(normalized, var) - end - - def test_echoDecimal_123_456 - log_test - arg = "-123456789012345.008" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - assert_equal(arg, var) - end - - def test_echoDecimal_123 - log_test - arg = "-12345678901234567." - normalized = arg.sub(/\.$/, '') - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - assert_equal(normalized, var) - end - - def test_echoDecimal_0_000a_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDecimal.new("0.0000000000000000a") - var = drv.echoDecimal(arg) - end - end - - def test_echoDecimal_00a_0001_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDecimal.new("00a.000000000000001") - var = drv.echoDecimal(arg) - end - end - - def test_echoDecimal_plus_minus_5_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDecimal.new("+-5") - var = drv.echoDecimal(arg) - end - end - - def test_echoDecimal_5_0_junk - log_test - assert_exception(SOAP::RPC::ServerException) do - arg = FakeDecimal.new("5_0") - var = drv.echoDecimal(arg) - end - end - - def test_echoMap - log_test - arg = { "a" => 1, "b" => 2 } - var = drv.echoMap(arg) - assert_equal(arg, var) - end - - def test_echoMap_boolean_base64_nil_float - log_test - arg = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - var = drv.echoMap(arg) - assert_equal(arg, var) - end - - def test_echoMap_multibyte_char - log_test - arg = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - var = drv.echoMap(arg) - assert_equal(arg, var) - end - - def test_echoMap_Struct - log_test - obj = SOAPStruct.new(1, 1.1, "a") - arg = { 1 => obj, 2 => obj } - var = drv.echoMap(arg) - assert_equal(arg, var) - end - - def test_echoMap_multi_ref_idmatch_value_for_key_a - log_test - value = "c" - arg = { "a" => value, "b" => value } - var = drv.echoMap(arg) - assert_equal(inspect_with_id(var["a"]), inspect_with_id(var["b"])) - end - - def test_echoMap_Struct_multi_ref_idmatch_varString_of_a_key - log_test - str = "" - obj = SOAPStruct.new(1, 1.1, str) - arg = { obj => "1", "1" => obj } - var = drv.echoMap(arg) - assert_equal(inspect_with_id(var.index("1").varString), inspect_with_id(var.fetch("1").varString)) - end - - def test_echoMapArray - log_test - map1 = { "a" => 1, "b" => 2 } - map2 = { "a" => 1, "b" => 2 } - map3 = { "a" => 1, "b" => 2 } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - assert_equal(arg, var) - end - - def test_echoMapArray_boolean_base64_nil_float - log_test - map1 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - map2 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - map3 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - assert_equal(arg, var) - end - - def test_echoMapArray_multibyte_char - log_test - map1 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - map2 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - map3 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - assert_equal(arg, var) - end - - def test_echoMapArray_multi_ref_idmatch - log_test - map1 = { "a" => 1, "b" => 2 } - map2 = { "a" => 1, "b" => 2 } - arg = [map1, map1, map2] - var = drv.echoMapArray(arg) - assert_equal(inspect_with_id(var[0]), inspect_with_id(var[1])) - end - - def test_echoStructAsSimpleTypes - log_test - arg = SOAPStruct.new(1, 1.1, "a") - ret, out1, out2 = drv.echoStructAsSimpleTypes(arg) - var = SOAPStruct.new(out1, out2, ret) - assert_equal(arg, var) - end - - def test_echoStructAsSimpleTypes_nil - log_test - arg = SOAPStruct.new(nil, nil, nil) - ret, out1, out2 = drv.echoStructAsSimpleTypes(arg) - var = SOAPStruct.new(out1, out2, ret) - assert_equal(arg, var) - end - - def test_echoSimpleTypesAsStruct - log_test - arg = SOAPStruct.new(1, 1.1, "a") - var = drv.echoSimpleTypesAsStruct(arg.varString, arg.varInt, arg.varFloat) - assert_equal(arg, var) - end - - def test_echoSimpleTypesAsStruct_nil - log_test - arg = SOAPStruct.new(nil, nil, nil) - var = drv.echoSimpleTypesAsStruct(arg.varString, arg.varInt, arg.varFloat) - assert_equal(arg, var) - end - - def test_echo2DStringArray - log_test -# arg = SOAP::SOAPArray.new(SOAP::ValueArrayName, 2, XSD::XSDString::Type) -# arg[0, 0] = obj2soap('r0c0') -# arg[1, 0] = obj2soap('r1c0') -# arg[2, 0] = obj2soap('r2c0') -# arg[0, 1] = obj2soap('r0c1') -# arg[1, 1] = obj2soap('r1c1') -# arg[2, 1] = obj2soap('r2c1') -# arg[0, 2] = obj2soap('r0c2') -# arg[1, 2] = obj2soap('r1c2') -# arg[2, 2] = obj2soap('r2c2') - - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - arg.add(SOAP::Mapping.obj2soap('r0c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r0c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r0c2', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c2', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c2', SOAPBuildersInterop::MappingRegistry)) - argNormalized = [ - ['r0c0', 'r1c0', 'r2c0'], - ['r0c1', 'r1c1', 'r2c1'], - ['r0c2', 'r1c2', 'r2c2'], - ] - - var = drv.echo2DStringArray(arg) - assert_equal(argNormalized, var) - end - - def test_echo2DStringArray_anyType_array - log_test - # ary2md converts Arry ((of Array)...) into M-D anyType Array - arg = [ - ['r0c0', 'r0c1', 'r0c2'], - ['r1c0', 'r1c1', 'r1c2'], - ['r2c0', 'r0c1', 'r2c2'], - ] - - paramArg = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::AnyTypeLiteral, SOAPBuildersInterop::MappingRegistry) - paramArg.type = XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D') - var = drv.echo2DStringArray(paramArg) - assert_equal(arg, var) - end - - def test_echo2DStringArray_multi_ref - log_test - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - - item = 'item' - arg.add('r0c0') - arg.add('r1c0') - arg.add(item) - arg.add('r0c1') - arg.add('r1c1') - arg.add('r2c1') - arg.add(item) - arg.add('r1c2') - arg.add('r2c2') - argNormalized = [ - ['r0c0', 'r1c0', 'item'], - ['r0c1', 'r1c1', 'r2c1'], - ['item', 'r1c2', 'r2c2'], - ] - - var = drv.echo2DStringArray(arg) - assert_equal(argNormalized, var) - end - - def test_echo2DStringArray_multi_ref_idmatch - log_test - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - - item = 'item' - arg.add('r0c0') - arg.add('r1c0') - arg.add(item) - arg.add('r0c1') - arg.add('r1c1') - arg.add('r2c1') - arg.add(item) - arg.add('r1c2') - arg.add('r2c2') - - var = drv.echo2DStringArray(arg) - assert_equal(inspect_with_id(var[2][0]), inspect_with_id(var[0][2])) - end - - def test_echoNestedStruct - log_test - arg = SOAPStructStruct.new(1, 1.1, "a", - SOAPStruct.new(2, 2.2, "b") - ) - var = drv.echoNestedStruct(arg) - assert_equal(arg, var) - end - - def test_echoNestedStruct_nil - log_test - arg = SOAPStructStruct.new(nil, nil, nil, - SOAPStruct.new(nil, nil, nil) - ) - var = drv.echoNestedStruct(arg) - assert_equal(arg, var) - end - - def test_echoNestedStruct_multi_ref_idmatch - log_test - str1 = "" - arg = SOAPStructStruct.new(1, 1.1, str1, - SOAPStruct.new(2, 2.2, str1) - ) - var = drv.echoNestedStruct(arg) - assert_equal(inspect_with_id(var.varString), inspect_with_id(var.varStruct.varString)) - end - - def test_echoNestedArray - log_test - arg = SOAPArrayStruct.new(1, 1.1, "a", StringArray["2", "2.2", "b"]) - var = drv.echoNestedArray(arg) - assert_equal(arg, var) - end - - def test_echoNestedArray_anyType_array - log_test - arg = SOAPArrayStruct.new(1, 1.1, "a", ["2", "2.2", "b"]) - var = drv.echoNestedArray(arg) - assert_equal(arg, var) - end - - def test_echoNestedArray_multi_ref - log_test - str = "" - arg = SOAPArrayStruct.new(1, 1.1, str, StringArray["2", str, "b"]) - var = drv.echoNestedArray(arg) - assert_equal(arg, var) - end - - def test_echoNestedArray_multi_ref_idmatch - log_test - str = "" - arg = SOAPArrayStruct.new(1, 1.1, str, StringArray["2", str, "b"]) - var = drv.echoNestedArray(arg) - assert_equal(inspect_with_id(var.varString), inspect_with_id(var.varArray[1])) - end -end - -if $0 == __FILE__ - #name = ARGV.shift || 'localhost' - #location = ARGV.shift || 'http://localhost:10080/' - name = 'localhsot'; location = 'http://localhost:10080/' - SOAPBuildersTest.setup(name, location) -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C.rb deleted file mode 100644 index cbc940be..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = '4S4C' -$server = 'http://soap.4s4c.com/ilab/soap.asp' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) - -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C2.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C2.rb deleted file mode 100644 index 8bb67fbf..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/client4S4C2.rb +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = '4S4C2' -$server = 'http://soap.4s4c.com/ilab2/soap.asp' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) - -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientASP.NET.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientASP.NET.rb deleted file mode 100644 index aa65325d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientASP.NET.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'MSASPdotNETWebServices' -$serverBase = 'http://www.mssoapinterop.org/asmx/simple.asmx' -$serverGroupB = 'http://www.mssoapinterop.org/asmx/simpleB.asmx' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheAxis.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheAxis.rb deleted file mode 100644 index da4b7693..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheAxis.rb +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'ApacheAxis' -$server = 'http://nagoya.apache.org:5049/axis/services/echo' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheSOAP.rb deleted file mode 100644 index 7740a0bf..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientApacheSOAP.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'ApacheSOAP2.2' -$serverBase = 'http://nagoya.apache.org:5049/soap/servlet/rpcrouter' -$serverGroupB = 'None' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase( drvBase ) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB( drvGroupB ) - -doTestBase( drvBase ) -#doTestGroupB( drvGroupB ) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientBEAWebLogic.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientBEAWebLogic.rb deleted file mode 100644 index 8513e4c5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientBEAWebLogic.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'BEAWebLogic8.1' -$serverBase = 'http://webservice.bea.com:7001/base/SoapInteropBaseService' -$serverGroupB = 'http://webservice.bea.com:7001/groupb/SoapInteropGroupBService' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientBase.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientBase.rb deleted file mode 100644 index b1377eea..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientBase.rb +++ /dev/null @@ -1,1967 +0,0 @@ -$KCODE = 'EUC' - -require 'logger' -require 'soap/rpc/driver' -require 'soap/mapping' -require 'base' -require 'interopResultBase' - -include SOAP -include SOAPBuildersInterop - -$soapAction = 'http://soapinterop.org/' -$testResultServer = 'http://dev.ctor.org/soapsrv' -$testResultDrv = SOAP::RPC::Driver.new($testResultServer, - SOAPBuildersInteropResult::InterfaceNS) - -SOAPBuildersInteropResult::Methods.each do |name, *params| - $testResultDrv.add_rpc_operation( - XSD::QName.new(SOAPBuildersInteropResult::InterfaceNS, name), - nil, name, params) -end - -client = SOAPBuildersInteropResult::Endpoint.new -client.processorName = 'SOAP4R' -client.processorVersion = '1.5' -client.uri = '*:*' -client.wsdl = "#{$wsdlBase} #{$wsdlGroupB}" - -server = SOAPBuildersInteropResult::Endpoint.new -server.endpointName = $serverName -server.uri = $server || "#{ $serverBase }, #{ $serverGroupB }" -server.wsdl = "#{$wsdlBase} #{$wsdlGroupB}" - -$testResults = SOAPBuildersInteropResult::InteropResults.new(client, server) - -$wireDumpDev = '' -def $wireDumpDev.close; end - -$wireDumpLogFile = STDERR - - -### -## Method definition. -# -def methodDef(drv) - drv.soapaction = $soapAction - methodDefBase(drv) - methodDefGroupB(drv) -end - -def methodDefBase(drv) - SOAPBuildersInterop::MethodsBase.each do |name, *params| - drv.add_rpc_operation( - XSD::QName.new(InterfaceNS, name), $soapAction, name, params) - end -end - -def methodDefGroupB(drv) - SOAPBuildersInterop::MethodsGroupB.each do |name, *params| - drv.add_rpc_operation( - XSD::QName.new(InterfaceNS, name), $soapAction, name, params) - end -end - - -### -## Helper function -# -class Float - Precision = 5 - - def ==(rhs) - if rhs.is_a?(Float) - if self.nan? and rhs.nan? - true - elsif self.infinite? == rhs.infinite? - true - elsif (rhs - self).abs <= (10 ** (- Precision)) - true - else - false - end - else - false - end - end -end - -def assert(expected, actual) - if expected == actual - 'OK' - else - "Expected = " << expected.inspect << " // Actual = " << actual.inspect - end -end - -def setWireDumpLogFile(postfix = "") - logFilename = File.basename($0).sub(/\.rb$/, '') << postfix << '.log' - f = File.open(logFilename, 'w') - f << "File: #{ logFilename } - Wiredumps for SOAP4R client / #{ $serverName } server.\n" - f << "Date: #{ Time.now }\n\n" - $wireDumpLogFile = f -end - -def getWireDumpLogFileBase(postfix = "") - File.basename($0).sub(/\.rb$/, '') + postfix -end - -def getIdObj(obj) - case obj - when Array - obj.collect { |ele| - getIdObj(ele) - } - else - # String#== compares content of args. - "#{ obj.class }##{ obj.__id__ }" - end -end - -def dumpTitle(title) - p title - $wireDumpLogFile << "##########\n# " << title << "\n\n" -end - -def dumpNormal(title, expected, actual) - result = assert(expected, actual) - if result == 'OK' - dumpResult(title, true, nil) - else - dumpResult(title, false, result) - end -end - -def dumpException(title) - result = "Exception: #{ $! } (#{ $!.class})\n" << $@.join("\n") - dumpResult(title, false, result) -end - -def dumpResult(title, result, resultStr) - $testResults.add( - SOAPBuildersInteropResult::TestResult.new( - title, - result, - resultStr, - $wireDumpDev.dup - ) - ) - $wireDumpLogFile << "Result: #{ resultStr || 'OK' }\n\n" - $wireDumpLogFile << $wireDumpDev - $wireDumpLogFile << "\n" - - $wireDumpDev.replace('') -end - -def submitTestResult - $testResultDrv.addResults($testResults) -end - -class FakeFloat < SOAP::SOAPFloat - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeDateTime < SOAP::SOAPDateTime - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeDecimal < SOAP::SOAPDecimal - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - -class FakeInt < SOAP::SOAPInt - def initialize(str) - super() - @data = str - end - - def to_s - @data.to_s - end -end - - -### -## Invoke methods. -# -def doTest(drv) - doTestBase(drv) - doTestGroupB(drv) -end - -def doTestBase(drv) - setWireDumpLogFile('_Base') - drv.wiredump_dev = $wireDumpDev -# drv.wiredump_filebase = getWireDumpLogFileBase('_Base') - - drv.mapping_registry = SOAPBuildersInterop::MappingRegistry - - title = 'echoVoid' - dumpTitle(title) - begin - var = drv.echoVoid() - dumpNormal(title, nil, var) - rescue Exception - dumpException(title) - end - - title = 'echoString' - dumpTitle(title) - begin - arg = "SOAP4R Interoperability Test" - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (Entity reference)' - dumpTitle(title) - begin - arg = "<>\"& <>"& &&><<<" - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (Character reference)' - dumpTitle(title) - begin - arg = "\x20 \040 \x7f\177" - tobe = " \177\177\177\177" - var = drv.echoString(SOAP::SOAPRawString.new(arg)) - dumpNormal(title, tobe, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (Leading and trailing whitespace)' - dumpTitle(title) - begin - arg = " SOAP4R\nInteroperability\nTest " - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (EUC encoded)' - dumpTitle(title) - begin - arg = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (EUC encoded) again' - dumpTitle(title) - begin - arg = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (empty)' - dumpTitle(title) - begin - arg = '' - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (space)' - dumpTitle(title) - begin - arg = ' ' - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoString (whitespaces:\r \n \t \r \n \t)' - dumpTitle(title) - begin - arg = "\r \n \t \r \n \t" - var = drv.echoString(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStringArray' - dumpTitle(title) - begin - arg = StringArray["SOAP4R\n", " Interoperability ", "\tTest\t"] - var = drv.echoStringArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echoStringArray (sparse)' -# dumpTitle(title) -# begin -# arg = [nil, "SOAP4R\n", nil, " Interoperability ", nil, "\tTest\t", nil] -# soapAry = SOAP::Mapping.ary2soap(arg, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStringArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoStringArray (multi-ref)' - dumpTitle(title) - begin - str1 = "SOAP4R" - str2 = "SOAP4R" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStringArray (multi-ref: elem1 == elem3)' - dumpTitle(title) - begin - str1 = "SOAP4R" - str2 = "SOAP4R" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - dumpNormal(title, getIdObj(var[0]), getIdObj(var[2])) - rescue Exception - dumpException(title) - end - - title = 'echoStringArray (empty, multi-ref: elem1 == elem3)' - dumpTitle(title) - begin - str1 = "" - str2 = "" - arg = StringArray[str1, str2, str1] - var = drv.echoStringArray(arg) - dumpNormal(title, getIdObj(var[0]), getIdObj(var[2])) - rescue Exception - dumpException(title) - end - -# title = 'echoStringArray (sparse, multi-ref)' -# dumpTitle(title) -# begin -# str = "SOAP4R" -# arg = StringArray[nil, nil, nil, nil, nil, str, nil, str] -# soapAry = SOAP::Mapping.ary2soap(arg, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStringArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoInteger (Int: 123)' - dumpTitle(title) - begin - arg = 123 - var = drv.echoInteger(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoInteger (Int: 2147483647)' - dumpTitle(title) - begin - arg = 2147483647 - var = drv.echoInteger(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoInteger (Int: -2147483648)' - dumpTitle(title) - begin - arg = -2147483648 - var = drv.echoInteger(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoInteger (2147483648: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("2147483648") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoInteger (-2147483649: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("-2147483649") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoInteger (0.0: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("0.0") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoInteger (-5.2: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("-5.2") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoInteger (0.000000000a: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("0.000000000a") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoInteger (+-5: junk)' - dumpTitle(title) - begin - begin - arg = FakeInt.new("+-5") - var = drv.echoInteger(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoIntegerArray' - dumpTitle(title) - begin - arg = IntArray[1, 2, 3] - var = drv.echoIntegerArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echoIntegerArray (nil)' -# dumpTitle(title) -# begin -# arg = IntArray[nil, nil, nil] -# var = drv.echoIntegerArray(arg) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoIntegerArray (empty)' - dumpTitle(title) - begin - arg = SOAP::SOAPArray.new(SOAP::ValueArrayName, 1, XSD::XSDInt::Type) - var = drv.echoIntegerArray(arg) - dumpNormal(title, [], var) - rescue Exception - dumpException(title) - end - -# title = 'echoIntegerArray (sparse)' -# dumpTitle(title) -# begin -# arg = [nil, 1, nil, 2, nil, 3, nil] -# soapAry = SOAP::Mapping.ary2soap(arg, XSD::Namespace, XSD::XSDInt::Type, SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoIntegerArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoFloat' - dumpTitle(title) - begin - arg = 3.14159265358979 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (scientific notation)' - dumpTitle(title) - begin - arg = 12.34e36 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (scientific notation 2)' - dumpTitle(title) - begin - arg = FakeFloat.new("12.34e36") - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, 12.34e36, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (scientific notation 3)' - dumpTitle(title) - begin - arg = FakeFloat.new("12.34E+36") - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, 12.34e36, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (scientific notation 4)' - dumpTitle(title) - begin - arg = FakeFloat.new("-1.4E") - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, 1.4, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (positive lower boundary)' - dumpTitle(title) - begin - arg = 1.4e-45 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (negative lower boundary)' - dumpTitle(title) - begin - arg = -1.4e-45 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (special values: +0)' - dumpTitle(title) - begin - arg = 0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (special values: -0)' - dumpTitle(title) - begin - arg = (-1.0 / (1.0 / 0.0)) - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (special values: NaN)' - dumpTitle(title) - begin - arg = 0.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (special values: INF)' - dumpTitle(title) - begin - arg = 1.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (special values: -INF)' - dumpTitle(title) - begin - arg = -1.0/0.0 - var = drv.echoFloat(SOAPFloat.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloat (0.000a: junk)' - dumpTitle(title) - begin - begin - arg = FakeFloat.new("0.0000000000000000a") - var = drv.echoFloat(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoFloat (00a.0001: junk)' - dumpTitle(title) - begin - begin - arg = FakeFloat.new("00a.000000000000001") - var = drv.echoFloat(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoFloat (+-5: junk)' - dumpTitle(title) - begin - begin - arg = FakeFloat.new("+-5") - var = drv.echoFloat(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoFloat (5_0: junk)' - dumpTitle(title) - begin - begin - arg = FakeFloat.new("5_0") - var = drv.echoFloat(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoFloatArray' - dumpTitle(title) - begin - arg = FloatArray[SOAPFloat.new(0.0001), SOAPFloat.new(1000.0), SOAPFloat.new(0.0)] - var = drv.echoFloatArray(arg) - dumpNormal(title, arg.collect { |ele| ele.data }, var) - rescue Exception - dumpException(title) - end - - title = 'echoFloatArray (special values: NaN, INF, -INF)' - dumpTitle(title) - begin - nan = SOAPFloat.new(0.0/0.0) - inf = SOAPFloat.new(1.0/0.0) - inf_ = SOAPFloat.new(-1.0/0.0) - arg = FloatArray[nan, inf, inf_] - var = drv.echoFloatArray(arg) - dumpNormal(title, arg.collect { |ele| ele.data }, var) - rescue Exception - dumpException(title) - end - -# title = 'echoFloatArray (sparse)' -# dumpTitle(title) -# begin -# arg = [nil, nil, 0.0001, 1000.0, 0.0, nil, nil] -# soapAry = SOAP::Mapping.ary2soap(arg, XSD::Namespace, XSD::FloatLiteral, SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoFloatArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoStruct' - dumpTitle(title) - begin - arg = SOAPStruct.new(1, 1.1, "a") - var = drv.echoStruct(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStruct (nil members)' - dumpTitle(title) - begin - arg = SOAPStruct.new(nil, nil, nil) - var = drv.echoStruct(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStructArray' - dumpTitle(title) - begin - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - s3 = SOAPStruct.new(3, 3.3, "c") - arg = SOAPStructArray[s1, s2, s3] - var = drv.echoStructArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStructArray (anyType Array)' - dumpTitle(title) - begin - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - s3 = SOAPStruct.new(3, 3.3, "c") - arg = [s1, s2, s3] - var = drv.echoStructArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echoStructArray (sparse)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# s3 = SOAPStruct.new(3, 3.3, "c") -# arg = [nil, s1, s2, s3] -# soapAry = SOAP::Mapping.ary2soap(arg, TypeNS, "SOAPStruct", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStructArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoStructArray (multi-ref)' - dumpTitle(title) - begin - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = SOAPStructArray[s1, s1, s2] - var = drv.echoStructArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStructArray (multi-ref: elem1 == elem2)' - dumpTitle(title) - begin - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = SOAPStructArray[s1, s1, s2] - var = drv.echoStructArray(arg) - dumpNormal(title, getIdObj(var[0]), getIdObj(var[1])) - rescue Exception - dumpException(title) - end - - title = 'echoStructArray (anyType Array, multi-ref: elem2 == elem3)' - dumpTitle(title) - begin - s1 = SOAPStruct.new(1, 1.1, "a") - s2 = SOAPStruct.new(2, 2.2, "b") - arg = [s1, s2, s2] - var = drv.echoStructArray(arg) - dumpNormal(title, getIdObj(var[1]), getIdObj(var[2])) - rescue Exception - dumpException(title) - end - -# title = 'echoStructArray (sparse, multi-ref)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# arg = [nil, s1, nil, nil, s2, nil, s2] -# soapAry = SOAP::Mapping.ary2soap(arg, TypeNS, "SOAPStruct", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStructArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - -# title = 'echoStructArray (sparse, multi-ref: elem5 == elem7)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# arg = [nil, s1, nil, nil, s2, nil, s2] -# soapAry = SOAP::Mapping.ary2soap(arg, TypeNS, "SOAPStruct", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStructArray(soapAry) -# dumpNormal(title, getIdObj(var[4]), getIdObj(var[6])) -# rescue Exception -# dumpException(title) -# end - - title = 'echoStructArray (multi-ref: varString of elem1 == varString of elem2)' - dumpTitle(title) - begin - str1 = "a" - str2 = "a" - s1 = SOAPStruct.new(1, 1.1, str1) - s2 = SOAPStruct.new(2, 2.2, str1) - s3 = SOAPStruct.new(3, 3.3, str2) - arg = SOAPStructArray[s1, s2, s3] - var = drv.echoStructArray(arg) - dumpNormal(title, getIdObj(var[0].varString), getIdObj(var[1].varString)) - rescue Exception - dumpException(title) - end - - title = 'echoStructArray (anyType Array, multi-ref: varString of elem2 == varString of elem3)' - dumpTitle(title) - begin - str1 = "b" - str2 = "b" - s1 = SOAPStruct.new(1, 1.1, str2) - s2 = SOAPStruct.new(2, 2.2, str1) - s3 = SOAPStruct.new(3, 3.3, str1) - arg = [s1, s2, s3] - var = drv.echoStructArray(arg) - dumpNormal(title, getIdObj(var[1].varString), getIdObj(var[2].varString)) - rescue Exception - dumpException(title) - end - -# title = 'echoStructArray (sparse, multi-ref: varString of elem5 == varString of elem7)' -# dumpTitle(title) -# begin -# str1 = "c" -# str2 = "c" -# s1 = SOAPStruct.new(1, 1.1, str2) -# s2 = SOAPStruct.new(2, 2.2, str1) -# s3 = SOAPStruct.new(3, 3.3, str1) -# arg = [nil, s1, nil, nil, s2, nil, s3] -# soapAry = SOAP::Mapping.ary2soap(arg, TypeNS, "SOAPStruct", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoStructArray(soapAry) -# dumpNormal(title, getIdObj(var[4].varString), getIdObj(var[6].varString)) -# rescue Exception -# dumpException(title) -# end - -# title = 'echoStructArray (2D Array)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# s3 = SOAPStruct.new(3, 3.3, "c") -# arg = [ -# [s1, nil, s2], -# [nil, s2, s3], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::AnyTypeLiteral, SOAPBuildersInterop::MappingRegistry) -# -# var = drv.echoStructArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end -# -# title = 'echoStructArray (2D Array, sparse)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# s3 = SOAPStruct.new(3, 3.3, "c") -# arg = [ -# [s1, nil, s2], -# [nil, s2, s3], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, TypeNS, "SOAPStruct", SOAPBuildersInterop::MappingRegistry) -## md.sparse = true -# -# var = drv.echoStructArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end -# -# title = 'echoStructArray (anyType, 2D Array, sparse)' -# dumpTitle(title) -# begin -# s1 = SOAPStruct.new(1, 1.1, "a") -# s2 = SOAPStruct.new(2, 2.2, "b") -# s3 = SOAPStruct.new(3, 3.3, "c") -# arg = [ -# [s1, nil, s2], -# [nil, s2, s3], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::AnyTypeLiteral, SOAPBuildersInterop::MappingRegistry) -# md.sparse = true -# -# var = drv.echoStructArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoDate (now)' - dumpTitle(title) - begin - t = Time.now.gmtime - arg = DateTime.new(t.year, t.mon, t.mday, t.hour, t.min, t.sec) - var = drv.echoDate(arg) - dumpNormal(title, arg.to_s, var.to_s) - rescue Exception - dumpException(title) - end - - title = 'echoDate (before 1970: 1-01-01T00:00:00Z)' - dumpTitle(title) - begin - t = Time.now.gmtime - arg = DateTime.new(1, 1, 1, 0, 0, 0) - var = drv.echoDate(arg) - dumpNormal(title, arg.to_s, var.to_s) - rescue Exception - dumpException(title) - end - - title = 'echoDate (after 2038: 2038-12-31T00:00:00Z)' - dumpTitle(title) - begin - t = Time.now.gmtime - arg = DateTime.new(2038, 12, 31, 0, 0, 0) - var = drv.echoDate(arg) - dumpNormal(title, arg.to_s, var.to_s) - rescue Exception - dumpException(title) - end - - title = 'echoDate (negative: -10-01-01T00:00:00Z)' - dumpTitle(title) - begin - t = Time.now.gmtime - arg = DateTime.new(-10, 1, 1, 0, 0, 0) - var = drv.echoDate(arg) - dumpNormal(title, arg.to_s, var.to_s) - rescue Exception - dumpException(title) - end - - title = 'echoDate (time precision: msec)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40.012') - argDate = arg.data - var = drv.echoDate(arg) - dumpNormal(title, argDate, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (time precision: long)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40.0000000000123456789012345678900000000000') - argDate = arg.data - var = drv.echoDate(arg) - dumpNormal(title, argDate, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (positive TZ)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40+07:00') - argNormalized = DateTime.new(2001, 6, 16, 18, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (negative TZ)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-16T18:13:40-07:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (+00:00 TZ)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40+00:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (-00:00 TZ)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-17T01:13:40-00:00') - argNormalized = DateTime.new(2001, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (min TZ)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('2001-06-16T00:00:01+00:01') - argNormalized = DateTime.new(2001, 6, 15, 23, 59, 1) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (year > 9999)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('10000-06-16T18:13:40-07:00') - argNormalized = DateTime.new(10000, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (year < 0)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('-0001-06-16T18:13:40-07:00') - argNormalized = DateTime.new(0, 6, 17, 1, 13, 40) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (year == -4713)' - dumpTitle(title) - begin - arg = SOAP::SOAPDateTime.new('-4713-01-01T12:00:00') - argNormalized = DateTime.new(-4712, 1, 1, 12, 0, 0) - var = drv.echoDate(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDate (year 0000: junk)' - dumpTitle(title) - begin - begin - arg = FakeDateTime.new("0000-05-18T16:52:20Z") - var = drv.echoDate(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDate (year nn: junk)' - dumpTitle(title) - begin - begin - arg = FakeDateTime.new("05-05-18T16:52:20Z") - var = drv.echoDate(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDate (no day part: junk)' - dumpTitle(title) - begin - begin - arg = FakeDateTime.new("2002-05T16:52:20Z") - var = drv.echoDate(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDate (no sec part: junk)' - dumpTitle(title) - begin - begin - arg = FakeDateTime.new("2002-05-18T16:52Z") - var = drv.echoDate(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDate (empty: junk)' - dumpTitle(title) - begin - begin - arg = FakeDateTime.new("") - var = drv.echoDate(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (xsd:base64Binary)' - dumpTitle(title) - begin - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPBase64.new(str) - arg.as_xsd # Force xsd:base64Binary instead of soap-enc:base64 - var = drv.echoBase64(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (xsd:base64Binary, empty)' - dumpTitle(title) - begin - str = "" - arg = SOAP::SOAPBase64.new(str) - arg.as_xsd # Force xsd:base64Binary instead of soap-enc:base64 - var = drv.echoBase64(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (SOAP-ENC:base64)' - dumpTitle(title) - begin - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (\0)' - dumpTitle(title) - begin - str = "\0" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (\0a\0)' - dumpTitle(title) - begin - str = "a\0b\0\0c\0\0\0" - arg = SOAP::SOAPBase64.new(str) - var = drv.echoBase64(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoBase64 (-: junk)' - dumpTitle(title) - begin - begin - arg = SOAP::SOAPBase64.new("dummy") - arg.instance_eval { @data = '-' } - var = drv.echoBase64(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary' - dumpTitle(title) - begin - str = "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary(empty)' - dumpTitle(title) - begin - str = "" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary(\0)' - dumpTitle(title) - begin - str = "\0" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary(\0a\0)' - dumpTitle(title) - begin - str = "a\0b\0\0c\0\0\0" - arg = SOAP::SOAPHexBinary.new(str) - var = drv.echoHexBinary(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary(lower case)' - dumpTitle(title) - begin - str = "lower case" - arg = SOAP::SOAPHexBinary.new - arg.set_encoded((str.unpack("H*")[0]).tr('A-F', 'a-f')) - var = drv.echoHexBinary(arg) - dumpNormal(title, str, var) - rescue Exception - dumpException(title) - end - - title = 'echoHexBinary (0FG7: junk)' - dumpTitle(title) - begin - begin - arg = SOAP::SOAPHexBinary.new("dummy") - arg.instance_eval { @data = '0FG7' } - var = drv.echoHexBinary(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoBoolean (true)' - dumpTitle(title) - begin - arg = true - var = drv.echoBoolean(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoBoolean (false)' - dumpTitle(title) - begin - arg = false - var = drv.echoBoolean(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoBoolean (junk)' - dumpTitle(title) - begin - begin - arg = SOAP::SOAPBoolean.new(true) - arg.instance_eval { @data = 'junk' } - var = drv.echoBoolean(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (123456)' - dumpTitle(title) - begin - arg = "123456789012345678" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = arg - dumpNormal(title, normalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (+0.123)' - dumpTitle(title) - begin - arg = "+0.12345678901234567" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = arg.sub(/0$/, '').sub(/^\+/, '') - dumpNormal(title, normalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (.00000123)' - dumpTitle(title) - begin - arg = ".00000123456789012" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = '0' << arg.sub(/0$/, '') - dumpNormal(title, normalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (-.00000123)' - dumpTitle(title) - begin - arg = "-.00000123456789012" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - normalized = '-0' << arg.sub(/0$/, '').sub(/-/, '') - dumpNormal(title, normalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (-123.456)' - dumpTitle(title) - begin - arg = "-123456789012345.008" - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (-123.)' - dumpTitle(title) - begin - arg = "-12345678901234567." - normalized = arg.sub(/\.$/, '') - var = drv.echoDecimal(SOAP::SOAPDecimal.new(arg)) - dumpNormal(title, normalized, var) - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (0.000a: junk)' - dumpTitle(title) - begin - begin - arg = FakeDecimal.new("0.0000000000000000a") - var = drv.echoDecimal(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (00a.0001: junk)' - dumpTitle(title) - begin - begin - arg = FakeDecimal.new("00a.000000000000001") - var = drv.echoDecimal(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (+-5: junk)' - dumpTitle(title) - begin - begin - arg = FakeDecimal.new("+-5") - var = drv.echoDecimal(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - - title = 'echoDecimal (5_0: junk)' - dumpTitle(title) - begin - begin - arg = FakeDecimal.new("5_0") - var = drv.echoDecimal(arg) - dumpNormal(title, 'Fault', 'No error occurred.') - rescue SOAP::RPC::ServerException, SOAP::FaultError - dumpNormal(title, true, true) - end - rescue Exception - dumpException(title) - end - -if false # unless $noEchoMap - - title = 'echoMap' - dumpTitle(title) - begin - arg = { "a" => 1, "b" => 2 } - var = drv.echoMap(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoMap (boolean, base64, nil, float)' - dumpTitle(title) - begin - arg = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - var = drv.echoMap(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoMap (multibyte char)' - dumpTitle(title) - begin - arg = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - var = drv.echoMap(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoMap (Struct)' - dumpTitle(title) - begin - obj = SOAPStruct.new(1, 1.1, "a") - arg = { 1 => obj, 2 => obj } - var = drv.echoMap(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoMap (multi-ref: value for key "a" == value for key "b")' - dumpTitle(title) - begin - value = "c" - arg = { "a" => value, "b" => value } - var = drv.echoMap(arg) - dumpNormal(title, getIdObj(var["a"]), getIdObj(var["b"])) - rescue Exception - dumpException(title) - end - - title = 'echoMap (Struct, multi-ref: varString of a key == varString of a value)' - dumpTitle(title) - begin - str = "" - obj = SOAPStruct.new(1, 1.1, str) - arg = { obj => "1", "1" => obj } - var = drv.echoMap(arg) - dumpNormal(title, getIdObj(var.index("1").varString), getIdObj(var.fetch("1").varString)) - rescue Exception - dumpException(title) - end - - title = 'echoMapArray' - dumpTitle(title) - begin - map1 = { "a" => 1, "b" => 2 } - map2 = { "a" => 1, "b" => 2 } - map3 = { "a" => 1, "b" => 2 } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoMapArray (boolean, base64, nil, float)' - dumpTitle(title) - begin - map1 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - map2 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - map3 = { true => "\0", "\0" => nil, nil => 0.0001, 0.0001 => false } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echoMapArray (sparse)' -# dumpTitle(title) -# begin -# map1 = { "a" => 1, "b" => 2 } -# map2 = { "a" => 1, "b" => 2 } -# map3 = { "a" => 1, "b" => 2 } -# arg = [nil, nil, map1, nil, map2, nil, map3, nil, nil] -# soapAry = SOAP::Mapping.ary2soap(arg, ApacheNS, "Map", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoMapArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoMapArray (multibyte char)' - dumpTitle(title) - begin - map1 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - map2 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - map3 = { "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" => 1, 1 => "Hello (ÆüËܸìJapanese) ¤³¤ó¤Ë¤Á¤Ï" } - arg = [map1, map2, map3] - var = drv.echoMapArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echoMapArray (sparse, multi-ref)' -# dumpTitle(title) -# begin -# map1 = { "a" => 1, "b" => 2 } -# map2 = { "a" => 1, "b" => 2 } -# arg = [nil, nil, map1, nil, map2, nil, map1, nil, nil] -# soapAry = SOAP::Mapping.ary2soap(arg, ApacheNS, "Map", SOAPBuildersInterop::MappingRegistry) -# soapAry.sparse = true -# var = drv.echoMapArray(soapAry) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoMapArray (multi-ref: elem1 == elem2)' - dumpTitle(title) - begin - map1 = { "a" => 1, "b" => 2 } - map2 = { "a" => 1, "b" => 2 } - arg = [map1, map1, map2] - var = drv.echoMapArray(arg) - dumpNormal(title, getIdObj(var[0]), getIdObj(var[1])) - rescue Exception - dumpException(title) - end -end - -end - - -### -## Invoke methods. -# -def doTestGroupB(drv) - setWireDumpLogFile('_GroupB') - drv.wiredump_dev = $wireDumpDev -# drv.wiredump_filebase = getWireDumpLogFileBase('_GroupB') - - drv.mapping_registry = SOAPBuildersInterop::MappingRegistry - - title = 'echoStructAsSimpleTypes' - dumpTitle(title) - begin - arg = SOAPStruct.new(1, 1.1, "a") - ret, out1, out2 = drv.echoStructAsSimpleTypes(arg) - var = SOAPStruct.new(out1, out2, ret) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoStructAsSimpleTypes (nil)' - dumpTitle(title) - begin - arg = SOAPStruct.new(nil, nil, nil) - ret, out1, out2 = drv.echoStructAsSimpleTypes(arg) - var = SOAPStruct.new(out1, out2, ret) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoSimpleTypesAsStruct' - dumpTitle(title) - begin - arg = SOAPStruct.new(1, 1.1, "a") - var = drv.echoSimpleTypesAsStruct(arg.varString, arg.varInt, arg.varFloat) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoSimpleTypesAsStruct (nil)' - dumpTitle(title) - begin - arg = SOAPStruct.new(nil, nil, nil) - var = drv.echoSimpleTypesAsStruct(arg.varString, arg.varInt, arg.varFloat) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echo2DStringArray' - dumpTitle(title) - begin - -# arg = SOAP::SOAPArray.new(SOAP::ValueArrayName, 2, XSD::XSDString::Type) -# arg[0, 0] = obj2soap('r0c0') -# arg[1, 0] = obj2soap('r1c0') -# arg[2, 0] = obj2soap('r2c0') -# arg[0, 1] = obj2soap('r0c1') -# arg[1, 1] = obj2soap('r1c1') -# arg[2, 1] = obj2soap('r2c1') -# arg[0, 2] = obj2soap('r0c2') -# arg[1, 2] = obj2soap('r1c2') -# arg[2, 2] = obj2soap('r2c2') - - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - arg.add(SOAP::Mapping.obj2soap('r0c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c0', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r0c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c1', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r0c2', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r1c2', SOAPBuildersInterop::MappingRegistry)) - arg.add(SOAP::Mapping.obj2soap('r2c2', SOAPBuildersInterop::MappingRegistry)) - argNormalized = [ - ['r0c0', 'r1c0', 'r2c0'], - ['r0c1', 'r1c1', 'r2c1'], - ['r0c2', 'r1c2', 'r2c2'], - ] - - var = drv.echo2DStringArray(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echo2DStringArray (anyType array)' - dumpTitle(title) - begin - # ary2md converts Arry ((of Array)...) into M-D anyType Array - arg = [ - ['r0c0', 'r0c1', 'r0c2'], - ['r1c0', 'r1c1', 'r1c2'], - ['r2c0', 'r0c1', 'r2c2'], - ] - - paramArg = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::AnyTypeLiteral, SOAPBuildersInterop::MappingRegistry) - paramArg.type = XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D') - var = drv.echo2DStringArray(paramArg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - -# title = 'echo2DStringArray (sparse)' -# dumpTitle(title) -# begin -# # ary2md converts Arry ((of Array)...) into M-D anyType Array -# arg = [ -# ['r0c0', nil, 'r0c2'], -# [nil, 'r1c1', 'r1c2'], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# md.sparse = true -# -# var = drv.echo2DStringArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - -# title = 'echo2DStringArray (anyType, sparse)' -# dumpTitle(title) -# begin -# # ary2md converts Arry ((of Array)...) into M-D anyType Array -# arg = [ -# ['r0c0', nil, 'r0c2'], -# [nil, 'r1c1', 'r1c2'], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# md.sparse = true -# -# var = drv.echo2DStringArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echo2DStringArray (multi-ref)' - dumpTitle(title) - begin - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - - item = 'item' - arg.add('r0c0') - arg.add('r1c0') - arg.add(item) - arg.add('r0c1') - arg.add('r1c1') - arg.add('r2c1') - arg.add(item) - arg.add('r1c2') - arg.add('r2c2') - argNormalized = [ - ['r0c0', 'r1c0', 'item'], - ['r0c1', 'r1c1', 'r2c1'], - ['item', 'r1c2', 'r2c2'], - ] - - var = drv.echo2DStringArray(arg) - dumpNormal(title, argNormalized, var) - rescue Exception - dumpException(title) - end - - title = 'echo2DStringArray (multi-ref: ele[2, 0] == ele[0, 2])' - dumpTitle(title) - begin - arg = SOAP::SOAPArray.new(XSD::QName.new('http://soapinterop.org/xsd', 'ArrayOfString2D'), 2, XSD::XSDString::Type) - arg.size = [3, 3] - arg.size_fixed = true - - item = 'item' - arg.add('r0c0') - arg.add('r1c0') - arg.add(item) - arg.add('r0c1') - arg.add('r1c1') - arg.add('r2c1') - arg.add(item) - arg.add('r1c2') - arg.add('r2c2') - - var = drv.echo2DStringArray(arg) - dumpNormal(title, getIdObj(var[2][0]), getIdObj(var[0][2])) - rescue Exception - dumpException(title) - end - -# title = 'echo2DStringArray (sparse, multi-ref)' -# dumpTitle(title) -# begin -# # ary2md converts Arry ((of Array)...) into M-D anyType Array -# str = "BANG!" -# arg = [ -# ['r0c0', nil, str ], -# [nil, str, 'r1c2'], -# ] -# md = SOAP::Mapping.ary2md(arg, 2, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# md.sparse = true -# -# var = drv.echo2DStringArray(md) -# dumpNormal(title, arg, var) -# rescue Exception -# dumpException(title) -# end - - title = 'echoNestedStruct' - dumpTitle(title) - begin - arg = SOAPStructStruct.new(1, 1.1, "a", - SOAPStruct.new(2, 2.2, "b") - ) - var = drv.echoNestedStruct(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoNestedStruct (nil)' - dumpTitle(title) - begin - arg = SOAPStructStruct.new(nil, nil, nil, - SOAPStruct.new(nil, nil, nil) - ) - var = drv.echoNestedStruct(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoNestedStruct (multi-ref: varString of StructStruct == varString of Struct)' - dumpTitle(title) - begin - str1 = "" - arg = SOAPStructStruct.new(1, 1.1, str1, - SOAPStruct.new(2, 2.2, str1) - ) - var = drv.echoNestedStruct(arg) - dumpNormal(title, getIdObj(var.varString), getIdObj(var.varStruct.varString)) - rescue Exception - dumpException(title) - end - - title = 'echoNestedArray' - dumpTitle(title) - begin - arg = SOAPArrayStruct.new(1, 1.1, "a", StringArray["2", "2.2", "b"]) - var = drv.echoNestedArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoNestedArray (anyType array)' - dumpTitle(title) - begin - arg = SOAPArrayStruct.new(1, 1.1, "a", ["2", "2.2", "b"]) - var = drv.echoNestedArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoNestedArray (multi-ref)' - dumpTitle(title) - begin - str = "" - arg = SOAPArrayStruct.new(1, 1.1, str, StringArray["2", str, "b"]) - var = drv.echoNestedArray(arg) - dumpNormal(title, arg, var) - rescue Exception - dumpException(title) - end - - title = 'echoNestedArray (multi-ref: varString == varArray[1])' - dumpTitle(title) - begin - str = "" - arg = SOAPArrayStruct.new(1, 1.1, str, StringArray["2", str, "b"]) - var = drv.echoNestedArray(arg) - dumpNormal(title, getIdObj(var.varString), getIdObj(var.varArray[1])) - rescue Exception - dumpException(title) - end - -# title = 'echoNestedArray (sparse, multi-ref)' -# dumpTitle(title) -# begin -# str = "!" -# subAry = [nil, nil, str, nil, str, nil] -# ary = SOAP::Mapping.ary2soap(subAry, XSD::Namespace, XSD::StringLiteral, SOAPBuildersInterop::MappingRegistry) -# ary.sparse = true -# arg = SOAPArrayStruct.new(1, 1.1, str, ary) -# argNormalized = SOAPArrayStruct.new(1, 1.1, str, subAry) -# var = drv.echoNestedArray(arg) -# dumpNormal(title, argNormalized, var) -# rescue Exception -# dumpException(title) -# end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientCapeConnect.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientCapeConnect.rb deleted file mode 100644 index 32a91470..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientCapeConnect.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'CapeConnect' - -$server = 'http://interop.capeclear.com/ccx/soapbuilders-round2' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drvBase) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -#doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientDelphi.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientDelphi.rb deleted file mode 100644 index 344b098f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientDelphi.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'Delphi' - -$serverBase = 'http://soap-server.borland.com/WebServices/Interop/cgi-bin/InteropService.exe/soap/InteropTestPortType' -$serverGroupB = 'http://soap-server.borland.com/WebServices/Interop/cgi-bin/InteropGroupB.exe/soap/InteropTestPortTypeB' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientEasySoap.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientEasySoap.rb deleted file mode 100644 index 579decbe..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientEasySoap.rb +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'EasySoap++' - -$server = 'http://easysoap.sourceforge.net/cgi-bin/interopserver' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientFrontier.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientFrontier.rb deleted file mode 100644 index ce569217..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientFrontier.rb +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'Frontier' - -$serverBase = 'http://www.soapware.org/xmethodsInterop' - -#$wsdlBase = 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInterop/SOAP4R_SOAPBuildersInteropTest_R2base.wsdl' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB(drvGroupB) - -=begin -require 'soap/wsdlDriver' -drvBase = SOAP::WSDLDriverFactory.new($wsdlBase).create_rpc_driver -drvBase.endpoint_url = $serverBase -=end - -doTestBase(drvBase) -#doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientGLUE.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientGLUE.rb deleted file mode 100644 index f32cf465..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientGLUE.rb +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'GLUE' - -$serverBase = 'http://www.themindelectric.net:8005/glue/round2' -$serverGroupB = 'http://www.themindelectric.net:8005/glue/round2B' - -$wsdlBase = 'http://www.themindelectric.net:8005/glue/round2.wsdl' -$wsdlGroupB = 'http://www.themindelectric.net:8005/glue/round2B.wsdl' - -$noEchoMap = true - -require 'clientBase' - -=begin -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) -=end - -require 'soap/wsdlDriver' -drvBase = SOAP::WSDLDriverFactory.new($wsdlBase).create_rpc_driver -drvBase.endpoint_url = $serverBase -drvBase.wiredump_dev = STDOUT -drvGroupB = SOAP::WSDLDriverFactory.new($wsdlGroupB).create_rpc_driver -drvGroupB.endpoint_url = $serverGroupB - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientHP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientHP.rb deleted file mode 100644 index ca018a5d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientHP.rb +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'HPSOAP' -$server = 'http://soap.bluestone.com/hpws/soap/EchoService' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) - -methodDef(drv) - -doTest(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientJAX-RPC.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientJAX-RPC.rb deleted file mode 100644 index 471f9324..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientJAX-RPC.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'JAX-RPC' - -$serverBase = 'http://soapinterop.java.sun.com:80/round2/base' -$serverGroupB = 'http://soapinterop.java.sun.com:80/round2/groupb' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef( drvBase ) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB( drvGroupB ) - -doTestBase( drvBase ) -doTestGroupB( drvGroupB ) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientJSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientJSOAP.rb deleted file mode 100644 index 69ca8584..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientJSOAP.rb +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SpheonJSOAP' -$server = 'http://soap.fmui.de/RPC' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) - -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientKafkaXSLT.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientKafkaXSLT.rb deleted file mode 100644 index 0980350b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientKafkaXSLT.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'KafkaXSLTSOAP' - -$server = 'http://www.thoughtpost.com/services/interop.asmx' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit2.0.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit2.0.rb deleted file mode 100644 index 3c3e323a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit2.0.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'MicrosoftSoapToolkitV2' -$serverBase = 'http://mssoapinterop.org/stk/InteropB.wsdl' -$serverGroupB = 'http://mssoapinterop.org/stk/InteropBtyped.wsdl' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit3.0.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit3.0.rb deleted file mode 100644 index a878edd6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientMSSOAPToolkit3.0.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'MicrosoftSoapToolkit3.0' -$serverBase = 'http://mssoapinterop.org/stkV3/InteropTyped.wsdl' -$serverGroupB = 'http://mssoapinterop.org/stkV3/InteropBtyped.wsdl' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuSOAP.rb deleted file mode 100644 index 51fa2fd4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuSOAP.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'NuSOAP' - -$serverBase = 'http://dietrich.ganx4.com/nusoap/testbed/round2_base_server.php' -$serverGroupB = 'http://dietrich.ganx4.com/nusoap/testbed/round2_groupb_server.php' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuWave.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuWave.rb deleted file mode 100644 index 934bf97e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientNuWave.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'NuWave' - -$server = ' http://interop.nuwave-tech.com:7070/interop/base.wsdl' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -#doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientOpenLink.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientOpenLink.rb deleted file mode 100644 index 210d2da8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientOpenLink.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'OpenLink' - -$server = 'http://demo.openlinksw.com:8890/Interop' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientOracle.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientOracle.rb deleted file mode 100644 index 273f51fa..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientOracle.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'Oracle' - -$server = 'http://ws-interop.oracle.com/soapbuilder/r2/InteropTest' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -#doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientPEAR.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientPEAR.rb deleted file mode 100644 index 9cb612e3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientPEAR.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'PEAR' - -$server = 'http://www.caraveo.com/soap_interop/server_round2.php' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientPhalanx.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientPhalanx.rb deleted file mode 100644 index f1e0ddca..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientPhalanx.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'Phalanx' - -$serverBase = 'http://www.phalanxsys.com/ilabA/typed/target.asp' -$serverGroupB = 'http://www.phalanxsys.com/ilabB/typed/target.asp' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSIMACE.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSIMACE.rb deleted file mode 100644 index 41ab1de8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSIMACE.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SIM' -$serverBase = 'http://soapinterop.simdb.com/round2' -$serverGroupB = 'http://soapinterop.simdb.com/round2B' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP4R.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP4R.rb deleted file mode 100644 index 65001cd1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP4R.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SOAP4R' - -$server = 'http://dev.ctor.org/soapsrv' -#$server = 'http://rrr.jin.gr.jp/soapsrv' -#$server = 'http://dev.ctor.org/soapsrv' -#$server = 'http://localhost:10080' -#require 'xsd/datatypes1999' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -#submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP__Lite.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP__Lite.rb deleted file mode 100644 index 85e636c6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSOAP__Lite.rb +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SOAP::Lite' - -$server = 'http://services.soaplite.com/interop.cgi' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSQLData.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSQLData.rb deleted file mode 100644 index 1b414e45..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSQLData.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SQLDataSOAPServer' -$serverBase = 'http://soapclient.com/interop/sqldatainterop.wsdl' -$serverGroupB = 'http://soapclient.com/interop/InteropB.wsdl' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSilverStream.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSilverStream.rb deleted file mode 100644 index 77a7a7fb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSilverStream.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SilverStream' - -$server = 'http://explorer.ne.mediaone.net/app/interop/interop' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drvBase) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -#doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSpray2001.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSpray2001.rb deleted file mode 100644 index 8b6de9c2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSpray2001.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'Spray2001' -$serverBase = 'http://www.dolphinharbor.org/services/interop2001' -$serverGroupB = 'http://www.dolphinharbor.org/services/interopB2001' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSun.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientSun.rb deleted file mode 100644 index f447e8ac..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientSun.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'SunMicrosystems' - -$serverBase = 'http://soapinterop.java.sun.com:80/round2/base' -$serverGroupB = 'http://soapinterop.java.sun.com:80/round2/groupb' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientVWOpentalkSoap.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientVWOpentalkSoap.rb deleted file mode 100644 index 83a94aa4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientVWOpentalkSoap.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'VWOpentalkSoap' - -$server = 'http://www.cincomsmalltalk.com/soap/interop' -$serverGroupB = 'http://www.cincomsmalltalk.com/r2groupb/interop' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drv) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drv) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASP.rb deleted file mode 100644 index d8fe389a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASP.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'WASPforJava' - -$serverBase = 'http://soap.systinet.net:6060/InteropService/' -$serverGroupB = 'http://soap.systinet.net:6060/InteropBService/' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASPC.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASPC.rb deleted file mode 100644 index 65aaa890..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWASPC.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'WASPforC++' - -$serverBase = 'http://soap.systinet.net:6070/InteropService/' -$serverGroupB = 'http://soap.systinet.net:6070/InteropBService/' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWebMethods.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientWebMethods.rb deleted file mode 100644 index ceee3126..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWebMethods.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'webMethods' - -$server = 'http://ewsdemo.webMethods.com:80/soap/rpc' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWhiteMesa.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientWhiteMesa.rb deleted file mode 100644 index 544278de..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWhiteMesa.rb +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'WhiteMesaSOAPServer' -$serverBase = 'http://www.whitemesa.net/interop/std' -$serverGroupB = 'http://www.whitemesa.net/interop/std/groupB' - -$wsdlBase = 'http://www.whitemesa.net/wsdl/std/interop.wsdl' -$wsdlGroupB = 'http://www.whitemesa.net/wsdl/std/interopB.wsdl' - -require 'clientBase' - -=begin -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) -=end - -require 'soap/wsdlDriver' -drvBase = SOAP::WSDLDriverFactory.new($wsdlBase).create_rpc_driver -drvBase.endpoint_url = $serverBase -drvGroupB = SOAP::WSDLDriverFactory.new($wsdlGroupB).create_rpc_driver -drvGroupB.endpoint_url = $serverGroupB - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWingfoot.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientWingfoot.rb deleted file mode 100644 index 91d03234..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientWingfoot.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'WingfootSOAPServer' - -$server = 'http://www.wingfoot.com/servlet/wserver' -$noEchoMap = true - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDef(drv) - -doTestBase(drv) -doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLBus.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLBus.rb deleted file mode 100644 index 9f58d0b9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLBus.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'IONAXMLBus' - -$serverBase = 'http://interop.xmlbus.com:7002/xmlbus/container/InteropTest/BaseService/BasePort' -$serverGroupB = 'http://interop.xmlbus.com:7002/xmlbus/container/InteropTest/GroupBService/GroupBPort' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLRPC-EPI.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLRPC-EPI.rb deleted file mode 100644 index 5de7e346..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXMLRPC-EPI.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'XMLRPC-EPI' -$serverBase = 'http://xmlrpc-epi.sourceforge.net/xmlrpc_php/interop-server.php' -#$serverGroupB = 'http://soapinterop.simdb.com/round2B' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase( drvBase ) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB( drvGroupB ) - -doTestBase( drvBase ) -#doTestGroupB( drvGroupB ) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientXSOAP.rb deleted file mode 100644 index d6fb2f73..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientXSOAP.rb +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'XSOAP1.2' - -$server = 'http://www.wingfoot.com/servlet/wserver' - -require 'clientBase' - -drv = SOAP::RPC::Driver.new($server, InterfaceNS) -methodDefBase(drv) - -doTestBase(drv) -#doTestGroupB(drv) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientZSI.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientZSI.rb deleted file mode 100644 index 343282cd..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientZSI.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'ZSI' - -$serverBase = 'http://63.142.188.184:1122/' -$serverGroupB = 'http://63.142.188.184:1122/' - -require 'clientBase' -#$soapAction = 'urn:soapinterop' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef( drvBase ) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB( drvGroupB ) - -doTestBase( drvBase ) -doTestGroupB( drvGroupB ) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clienteSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clienteSOAP.rb deleted file mode 100644 index b82b358a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clienteSOAP.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'eSoap' - -$serverBase = 'http://www.quakersoft.net/cgi-bin/interop2_server.cgi' -$noEchoMap = true - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDefBase(drvBase) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -#doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientgSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientgSOAP.rb deleted file mode 100644 index 0951ee19..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientgSOAP.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'gSOAP' - -$serverBase = 'http://websrv.cs.fsu.edu/~engelen/interop2.cgi' -$serverGroupB = 'http://websrv.cs.fsu.edu/~engelen/interop2B.cgi' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef(drvBase) - -drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/clientkSOAP.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/clientkSOAP.rb deleted file mode 100644 index 0037a387..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/clientkSOAP.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -$serverName = 'kSOAP' - -$serverBase = 'http://kissen.cs.uni-dortmund.de:8080/ksoapinterop' - -require 'clientBase' - -drvBase = SOAP::RPC::Driver.new($serverBase, InterfaceNS) -methodDef(drvBase) - -#drvGroupB = SOAP::RPC::Driver.new($serverGroupB, InterfaceNS) -#methodDefGroupB(drvGroupB) - -doTestBase(drvBase) -#doTestGroupB(drvGroupB) -submitTestResult diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/groupc.wsdl b/vendor/gems/soap4r-1.5.8/test/interopR2/groupc.wsdl deleted file mode 100644 index 71deea55..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/groupc.wsdl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/iSimonReg.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/iSimonReg.rb deleted file mode 100644 index 7b27eb2a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/iSimonReg.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'soap/soap' -require 'soap/rpcUtils' - -module SimonReg - TypeNS = 'http://soap.pocketsoap.com/registration/types' - - module Services - - InterfaceNS = 'http://soap.pocketsoap.com/registration/services' - - class Service - include SOAP::Marshallable - @typeName = 'Service' - @typeNamespace = SimonReg::TypeNS - - attr_accessor :id, :name, :description, :wsdlURL, :websiteURL - - def initialize( id = nil, name = nil, description = nil, wsdlURL = nil, websiteURL = nil ) - - @id = id - @name = name - @description = description - @wsdlURL = wsdlURL - @websiteURL = websiteURL - end - end - - Methods = { - 'ServiceList' => [ 'services' ], - 'Servers' => [ 'Servers', 'serviceID' ], - 'Clients' => [ 'Clients', 'serviceID' ], - } - end - - module Clients - - InterfaceNS = 'http://soap.pocketsoap.com/registration/clients' - - class ClientInfo - include SOAP::Marshallable - @typeName = 'clientInfo' - @typeNamespace = SimonReg::TypeNS - - attr_accessor :name, :version, :resultsURL - - def initialize( name = nil, version = nil, resultsURL = nil ) - - @name = name - @version = version - @resultsURL = resultsURL - end - end - - Methods = { - 'RegisterClient' => [ 'clientID', 'serviceID', 'clientInfo' ], - 'UpdateClient' => [ 'void', 'clientID', 'clientInfo' ], - 'RemoveClient' => [ 'void', 'clientID' ], - } - end - - module Servers - - InterfaceNS = 'http://soap.pocketsoap.com/registration/servers' - - class ServerInfo - include SOAP::Marshallable - @typeName = 'serverInfo' - @typeNamespace = SimonReg::TypeNS - - attr_accessor :name, :version, :endpointURL, :wsdlURL - - def initialize( name = nil, version = nil, endpointURL = nil, wsdlURL = nil ) - - @name = name - @version = version - @endpointURL = endpointURL - @wsdlURL = wsdlURL - end - end - - Methods = { - 'RegisterServer' => [ 'serverID', 'serviceID', 'serverInfo' ], - 'UpdateServer' => [ 'void', 'serverID', 'serverInfo' ], - 'RemoveServer' => [ 'void', 'serverID' ], - } - end - - module Subscriber - - InterfaceNS = 'http://soap.pocketsoap.com/registration/subscriber' - - class SubscriberInfo - include SOAP::Marshallable - @typeName = 'subscriberInfo' - @typeNamespace = SimonReg::TypeNS - - attr_accessor :notificationID, :expires - - def initialize( notificationID = nil, expires = nil ) - - @notificationID = notificationID - @expires = expires - end - end - - Methods = { - 'Subscribe' => [ 'subscriberInfo', 'serviceID', 'ServerChanges', 'ClientChanges', 'NotificationURL' ], - 'Renew' => [ 'expires', 'notificationID' ], - 'Cancel' => [ 'void', 'notificationID' ], - } - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/interopResultBase.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/interopResultBase.rb deleted file mode 100644 index 6e301fcb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/interopResultBase.rb +++ /dev/null @@ -1,114 +0,0 @@ -require 'soap/mapping' - - -module SOAPBuildersInteropResult -extend SOAP - - -InterfaceNS = 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInteropResult/0.0.1' -TypeNS = 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInteropResult/type/0.0.1' - - -class Endpoint - include SOAP::Marshallable - - attr_accessor :processorName, :processorVersion, :endpointName, :uri, :wsdl - - def initialize( endpointName = nil, uri = nil, wsdl = nil ) - @processorName = 'unknown' - @processorVersion = nil - @endpointName = endpointName - @uri = uri - @wsdl = wsdl - end - - def name - if @endpointName - @endpointName - elsif @processorVersion - "#{ @processorName }-#{ @processorVersion }" - else - "#{ @processorName }" - end - end -end - - -class TestResult - include SOAP::Marshallable - - attr_accessor :testName, :result, :comment, :wiredump - - def initialize( testName, result, comment = nil, wiredump = nil ) - @testName = testName - @result = result - @comment = comment - @wiredump = wiredump - end -end - - -class InteropResults - include SOAP::Marshallable - include Enumerable - - attr_accessor :dateTime, :server, :client - - def initialize( client = nil, server = nil ) - @dateTime = Time.now - @server = server - @client = client - @testResults = [] - end - - def add( testResult ) - @testResults << testResult - end - - def clear - @testResults.clear - end - - def each - @testResults.each do | item | - yield( item ) - end - end - - def size - @testResults.size - end -end - - -Methods = [ - [ 'addResults', ['in', 'interopResults' ]], - [ 'deleteResults', ['in', 'client'], ['in', 'server']], -] - - - -MappingRegistry = SOAP::Mapping::Registry.new - -MappingRegistry.set( - ::SOAPBuildersInteropResult::Endpoint, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - [ XSD::QName.new(TypeNS, 'Endpoint') ] -) - -MappingRegistry.set( - ::SOAPBuildersInteropResult::TestResult, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - [ XSD::QName.new(TypeNS, 'TestResult') ] -) -MappingRegistry.set( - ::SOAPBuildersInteropResult::InteropResults, - ::SOAP::SOAPStruct, - ::SOAP::Mapping::Registry::TypedStructFactory, - [ XSD::QName.new(TypeNS, 'InteropResults') ] -) - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/interopService.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/interopService.rb deleted file mode 100644 index 613609d1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/interopService.rb +++ /dev/null @@ -1,247 +0,0 @@ -require 'interopbase' - -class InteropService - include SOAP - - # In echoVoid, 'retval' is not defined. So nothing will be returned. - def echoVoid - return SOAP::RPC::SOAPVoid.new - end - - def echoBoolean(inputBoolean) - inputBoolean - end - - def echoString(inputString) - clone(inputString) - end - - def echoStringArray(inputStringArray) - clone(inputStringArray) - end - - def echoInteger(inputInteger) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoIntegerArray(inputIntegerArray) - clone(inputIntegerArray) - end - - # Float is mapped to SOAPDouble by default. - def echoFloat(inputFloat) - SOAP::SOAPFloat.new(inputFloat) - end - - def echoDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoFloatArray(inputFloatArray) - outArray = SOAPBuildersInterop::FloatArray.new - inputFloatArray.each do |f| - outArray << SOAPFloat.new(f) - end - outArray - end - - def echoStruct(inputStruct) - clone_Struct(inputStruct) - end - - def echoStructArray(inputStructArray) - clone_StructArray(inputStructArray) - end - - def echoDate(inputDate) - clone(inputDate) - end - - def echoBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoDouble(inputDouble) - SOAP::SOAPDouble.new(inputDouble) - end - - # for Round 2 group B - def echoStructAsSimpleTypes(inputStruct) - outputString = inputStruct.varString - outputInteger = inputStruct.varInt - outputFloat = inputStruct.varFloat ? SOAPFloat.new(inputStruct.varFloat) : nil - # retVal is not returned to SOAP client because retVal of this method is - # not defined in method definition. - # retVal, out, out, out - return nil, outputString, outputInteger, outputFloat - end - - def echoSimpleTypesAsStruct(inputString, inputInt, inputFloat) - SOAPBuildersInterop::SOAPStruct.new(inputInt, inputFloat, inputString) - end - - def echo2DStringArray(ary) - # In Ruby, M-D Array is converted to Array of Array now. - mdary = SOAP::Mapping.ary2md(ary, 2, XSD::Namespace, XSD::StringLiteral) - if mdary.include?(nil) - mdary.sparse = true - end - mdary - end - - def echoNestedStruct(inputStruct) - clone_StructStruct(inputStruct) - end - - def echoNestedArray(inputStruct) - clone_Struct(inputStruct) - end - - def echoMap(inputMap) - clone(inputMap) - end - - def echoMapArray(inputMapArray) - clone(inputMapArray) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - - - def echoXSDBoolean(inputBoolean) - inputBoolean - end - - def echoXSDString(inputString) - clone(inputString) - end - - def echoXSDDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoXSDFloat(inputFloat) - SOAPFloat.new(inputFloat) - end - - def echoXSDDouble(inputDouble) - SOAP::SOAPDouble.new(clone(inputDouble)) - end - - def echoXSDDuration(inputDuration) - SOAP::SOAPDuration.new(clone(inputDuration)) - end - - def echoXSDDateTime(inputXSDDateTime) - clone(inputXSDDateTime) - end - - def echoXSDTime(inputXSDTime) - SOAP::SOAPTime.new(clone(inputXSDTime)) - end - - def echoXSDDate(inputXSDDate) - SOAP::SOAPDate.new(clone(inputXSDDate)) - end - - def echoXSDgYearMonth(inputGYearMonth) - SOAP::SOAPgYearMonth.new(clone(inputGYearMonth)) - end - - def echoXSDgYear(inputGYear) - SOAP::SOAPgYear.new(clone(inputGYear)) - end - - def echoXSDgMonthDay(inputGMonthDay) - SOAP::SOAPgMonthDay.new(clone(inputGMonthDay)) - end - - def echoXSDgDay(inputGDay) - SOAP::SOAPgDay.new(clone(inputGDay)) - end - - def echoXSDgMonth(inputGMonth) - SOAP::SOAPgMonth.new(clone(inputGMonth)) - end - - def echoXSDHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoXSDBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoXSDanyURI(inputAnyURI) - clone(inputAnyURI) - end - - def echoXSDQName(inputQName) - SOAP::SOAPQName.new(clone(inputQName)) - end - - def echoXSDInteger(inputXSDInteger) - clone(inputXSDInteger) - end - - def echoXSDLong(inputLong) - SOAP::SOAPLong.new(clone(inputLong)) - end - - def echoXSDInt(inputInt) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - -private - - def clone(obj) - begin - return Marshal.load(Marshal.dump(obj)) - rescue TypeError - return obj - end - end - - def clone_Struct(struct) - result = clone(struct) - result.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - result - end - - def clone_StructArray(structArray) - result = clone(structArray) - result.map { |ele| - ele.varFloat = SOAPFloat.new(ele.varFloat) if ele.varFloat - } - result - end - - def clone_StructStruct(structStruct) - result = clone(structStruct) - result.varFloat = SOAPFloat.new(structStruct.varFloat) if structStruct.varFloat - if struct = result.varStruct - struct.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - end - result - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/rwikiInteropService.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/rwikiInteropService.rb deleted file mode 100644 index 5536f68b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/rwikiInteropService.rb +++ /dev/null @@ -1,104 +0,0 @@ -require 'drb/drb' -require 'rw-lib' -require 'interopResultBase' - -class RWikiInteropService - def initialize - @rwiki_uri = 'druby://localhost:7174' - @rwiki = DRbObject.new(nil, @rwiki_uri) - end - - # [ 'addResults', ['in', 'interopResults' ]] - # [ 'deleteResults', ['in', 'client'], ['in', 'server']] - - def addResults(interopResults) - pageName = pageName(interopResults.client, interopResults.server) - - passResults = interopResults.find_all { | testResult | - testResult.result - } - passStr = passResults.collect { | passResult | - str = "* #{ passResult.testName } ((<[wiredump]|\"##{passResult.testName}\">))\n" - if passResult.comment - str << "\n #{ passResult.comment.gsub(/[\r\n]/, '') }\n" - end - str - } - passStr = 'Nothing...' if passStr.empty? - - failResults = interopResults.find_all { | testResult | - !testResult.result - } - failStr = failResults.collect { | failResult | - str = ":#{ failResult.testName } ((<[wiredump]|\"##{failResult.testName}\">))\n Result:\n" - resultStr = failResult.comment.gsub(/\r?\n/, "\n ") - str << " #{ resultStr }\n" - str - } - failStr = 'Nothing!' if failStr.empty? - - pageStr =<<__EOS__ -= #{ pageName } - -* Date: #{ interopResults.dateTime } -* Server - * Name: #{ interopResults.server.name } - * Endpoint: #{ interopResults.server.uri } - * WSDL: #{ interopResults.server.wsdl } -* Client - * Name: #{ interopResults.client.name } - * Endpoint: #{ interopResults.client.uri } - * WSDL: #{ interopResults.client.wsdl } - -== Pass - -#{ passResults.size } / #{ interopResults.size } - -#{ passStr } - -== Fail - -#{ failResults.size } / #{ interopResults.size } - -#{ failStr } - -== Wiredumps - -__EOS__ - - interopResults.each do | testResult | - pageStr <<<<__EOS__ -=== #{ testResult.testName } - - #{ testResult.wiredump.gsub(/\r/, '^M').gsub(/\t/, '^I').gsub(/\n/, "\n ") } - -__EOS__ - end - - set(pageName, pageStr) - - msg = "; #{ passResults.size } / #{ interopResults.size } (#{ interopResults.dateTime })" - addLink(pageName, msg) - end - - def deleteResults(client, server) - set(pageName(client, server), '') - end - -private - - def set(pageName, pageSrc) - page = @rwiki.page(pageName) - page.src = pageSrc - end - - def pageName(client, server) - "InteropResults::#{ client.name }-#{ server.name }" - end - - def addLink(pageName, msg) - page = @rwiki.page('InteropResults') - # Race condition... Page source might be mixed with others's. - page.src = (page.src || '') << "\n* ((<\"#{ pageName }\">))\n #{ msg }" - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/server.cgi b/vendor/gems/soap4r-1.5.8/test/interopR2/server.cgi deleted file mode 100644 index d676aa67..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/server.cgi +++ /dev/null @@ -1,270 +0,0 @@ -#!/usr/bin/env ruby - -$:.unshift(".") - -#$KCODE = "UTF8" # Set $KCODE before loading 'soap/xmlparser'. -#$KCODE = "EUC" -$KCODE = "SJIS" - -require 'soap/rpc/cgistub' -require 'base' - -class InteropApp < SOAP::CGIStub - include SOAP - - def initialize(*arg) - super(*arg) - self.mapping_registry = SOAPBuildersInterop::MappingRegistry - self.level = Logger::Severity::ERROR - end - - def on_init - (SOAPBuildersInterop::MethodsBase + SOAPBuildersInterop::MethodsGroupB + SOAPBuildersInterop::MethodsPolyMorph).each do |name, *params| - add_method(self, name, params) - end - end - - # In echoVoid, 'retval' is not defined. So nothing will be returned. - def echoVoid - return SOAP::RPC::SOAPVoid.new - end - - def echoBoolean(inputBoolean) - inputBoolean - end - - def echoString(inputString) - clone(inputString) - end - - def echoStringArray(inputStringArray) - clone(inputStringArray) - end - - def echoInteger(inputInteger) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoIntegerArray(inputIntegerArray) - clone(inputIntegerArray) - end - - # Float is mapped to SOAPDouble by default. - def echoFloat(inputFloat) - SOAP::SOAPFloat.new(inputFloat) - end - - def echoDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoFloatArray(inputFloatArray) - outArray = SOAPBuildersInterop::FloatArray.new - inputFloatArray.each do |f| - outArray << SOAPFloat.new(f) - end - outArray - end - - def echoStruct(inputStruct) - clone_Struct(inputStruct) - end - - def echoStructArray(inputStructArray) - clone_StructArray(inputStructArray) - end - - def echoDate(inputDate) - clone(inputDate) - end - - def echoBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoDouble(inputDouble) - SOAP::SOAPDouble.new(inputDouble) - end - - # for Round 2 group B - def echoStructAsSimpleTypes(inputStruct) - outputString = inputStruct.varString - outputInteger = inputStruct.varInt - outputFloat = inputStruct.varFloat ? SOAPFloat.new(inputStruct.varFloat) : nil - # retVal is not returned to SOAP client because retVal of this method is - # not defined in method definition. - # retVal, out, out, out - return nil, outputString, outputInteger, outputFloat - end - - def echoSimpleTypesAsStruct(inputString, inputInt, inputFloat) - SOAPBuildersInterop::SOAPStruct.new(inputInt, inputFloat, inputString) - end - - def echo2DStringArray(ary) - # In Ruby, M-D Array is converted to Array of Array now. - mdary = SOAP::Mapping.ary2md(ary, 2, XSD::Namespace, XSD::StringLiteral) - if mdary.include?(nil) - mdary.sparse = true - end - mdary - end - - def echoNestedStruct(inputStruct) - clone_StructStruct(inputStruct) - end - - def echoNestedArray(inputStruct) - clone_Struct(inputStruct) - end - - def echoMap(inputMap) - clone(inputMap) - end - - def echoMapArray(inputMapArray) - clone(inputMapArray) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - - - def echoXSDBoolean(inputBoolean) - inputBoolean - end - - def echoXSDString(inputString) - clone(inputString) - end - - def echoXSDDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoXSDFloat(inputFloat) - SOAPFloat.new(inputFloat) - end - - def echoXSDDouble(inputDouble) - SOAP::SOAPDouble.new(clone(inputDouble)) - end - - def echoXSDDuration(inputDuration) - SOAP::SOAPDuration.new(clone(inputDuration)) - end - - def echoXSDDateTime(inputXSDDateTime) - clone(inputXSDDateTime) - end - - def echoXSDTime(inputXSDTime) - SOAP::SOAPTime.new(clone(inputXSDTime)) - end - - def echoXSDDate(inputXSDDate) - SOAP::SOAPDate.new(clone(inputXSDDate)) - end - - def echoXSDgYearMonth(inputGYearMonth) - SOAP::SOAPgYearMonth.new(clone(inputGYearMonth)) - end - - def echoXSDgYear(inputGYear) - SOAP::SOAPgYear.new(clone(inputGYear)) - end - - def echoXSDgMonthDay(inputGMonthDay) - SOAP::SOAPgMonthDay.new(clone(inputGMonthDay)) - end - - def echoXSDgDay(inputGDay) - SOAP::SOAPgDay.new(clone(inputGDay)) - end - - def echoXSDgMonth(inputGMonth) - SOAP::SOAPgMonth.new(clone(inputGMonth)) - end - - def echoXSDHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoXSDBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoXSDanyURI(inputAnyURI) - clone(inputAnyURI) - end - - def echoXSDQName(inputQName) - SOAP::SOAPQName.new(clone(inputQName)) - end - - def echoXSDInteger(inputXSDInteger) - clone(inputXSDInteger) - end - - def echoXSDLong(inputLong) - SOAP::SOAPLong.new(clone(inputLong)) - end - - def echoXSDInt(inputInt) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - -private - - def clone(obj) - begin - return Marshal.load(Marshal.dump(obj)) - rescue TypeError - return obj - end - end - - def clone_Struct(struct) - result = clone(struct) - result.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - result - end - - def clone_StructArray(structArray) - result = clone(structArray) - result.map { |ele| - ele.varFloat = SOAPFloat.new(ele.varFloat) if ele.varFloat - } - result - end - - def clone_StructStruct(structStruct) - result = clone(structStruct) - result.varFloat = SOAPFloat.new(structStruct.varFloat) if structStruct.varFloat - if struct = result.varStruct - struct.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - end - result - end -end - -InteropApp.new('InteropApp', InterfaceNS).start diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/server.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/server.rb deleted file mode 100644 index c9454616..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/server.rb +++ /dev/null @@ -1,275 +0,0 @@ -#!/usr/bin/env ruby - -$:.unshift(".") - -#$KCODE = "UTF8" # Set $KCODE before loading 'soap/xmlparser'. -#$KCODE = "EUC" -$KCODE = "SJIS" - -require 'soap/rpc/standaloneServer' -require 'base' -require 'xsd/xmlparser/rexmlparser' - -class InteropApp < SOAP::RPC::StandaloneServer - include SOAP - - def initialize(*arg) - super(*arg) - self.mapping_registry = SOAPBuildersInterop::MappingRegistry - self.level = Logger::Severity::ERROR - end - - def on_init - (SOAPBuildersInterop::MethodsBase + SOAPBuildersInterop::MethodsGroupB + SOAPBuildersInterop::MethodsPolyMorph).each do |name, *params| - add_method(self, name, params) - end - end - - # In echoVoid, 'retval' is not defined. So nothing will be returned. - def echoVoid - return SOAP::RPC::SOAPVoid.new - end - - def echoBoolean(inputBoolean) - inputBoolean - end - - def echoString(inputString) - clone(inputString) - end - - def echoStringArray(inputStringArray) - clone(inputStringArray) - end - - def echoInteger(inputInteger) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoIntegerArray(inputIntegerArray) - clone(inputIntegerArray) - end - - # Float is mapped to SOAPDouble by default. - def echoFloat(inputFloat) - SOAP::SOAPFloat.new(inputFloat) - end - - def echoDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoFloatArray(inputFloatArray) - outArray = SOAPBuildersInterop::FloatArray.new - inputFloatArray.each do |f| - outArray << SOAPFloat.new(f) - end - outArray - end - - def echoStruct(inputStruct) - clone_Struct(inputStruct) - end - - def echoStructArray(inputStructArray) - clone_StructArray(inputStructArray) - end - - def echoDate(inputDate) - clone(inputDate) - end - - def echoBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoDouble(inputDouble) - SOAP::SOAPDouble.new(inputDouble) - end - - # for Round 2 group B - def echoStructAsSimpleTypes(inputStruct) - outputString = inputStruct.varString - outputInteger = inputStruct.varInt - outputFloat = inputStruct.varFloat ? SOAPFloat.new(inputStruct.varFloat) : nil - # retVal is not returned to SOAP client because retVal of this method is - # not defined in method definition. - # retVal, out, out, out - return nil, outputString, outputInteger, outputFloat - end - - def echoSimpleTypesAsStruct(inputString, inputInt, inputFloat) - SOAPBuildersInterop::SOAPStruct.new(inputInt, inputFloat, inputString) - end - - def echo2DStringArray(ary) - # In Ruby, M-D Array is converted to Array of Array now. - mdary = SOAP::Mapping.ary2md(ary, 2, XSD::Namespace, XSD::StringLiteral) - if mdary.include?(nil) - mdary.sparse = true - end - mdary - end - - def echoNestedStruct(inputStruct) - clone_StructStruct(inputStruct) - end - - def echoNestedArray(inputStruct) - clone_Struct(inputStruct) - end - - def echoMap(inputMap) - clone(inputMap) - end - - def echoMapArray(inputMapArray) - clone(inputMapArray) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - - - def echoXSDBoolean(inputBoolean) - inputBoolean - end - - def echoXSDString(inputString) - clone(inputString) - end - - def echoXSDDecimal(inputDecimal) - SOAP::SOAPDecimal.new(clone(inputDecimal)) - end - - def echoXSDFloat(inputFloat) - SOAPFloat.new(inputFloat) - end - - def echoXSDDouble(inputDouble) - SOAP::SOAPDouble.new(clone(inputDouble)) - end - - def echoXSDDuration(inputDuration) - SOAP::SOAPDuration.new(clone(inputDuration)) - end - - def echoXSDDateTime(inputXSDDateTime) - clone(inputXSDDateTime) - end - - def echoXSDTime(inputXSDTime) - SOAP::SOAPTime.new(clone(inputXSDTime)) - end - - def echoXSDDate(inputXSDDate) - SOAP::SOAPDate.new(clone(inputXSDDate)) - end - - def echoXSDgYearMonth(inputGYearMonth) - SOAP::SOAPgYearMonth.new(clone(inputGYearMonth)) - end - - def echoXSDgYear(inputGYear) - SOAP::SOAPgYear.new(clone(inputGYear)) - end - - def echoXSDgMonthDay(inputGMonthDay) - SOAP::SOAPgMonthDay.new(clone(inputGMonthDay)) - end - - def echoXSDgDay(inputGDay) - SOAP::SOAPgDay.new(clone(inputGDay)) - end - - def echoXSDgMonth(inputGMonth) - SOAP::SOAPgMonth.new(clone(inputGMonth)) - end - - def echoXSDHexBinary(inputHexBinary) - SOAP::SOAPHexBinary.new(clone(inputHexBinary)) - end - - def echoXSDBase64(inputBase64) - o = SOAP::SOAPBase64.new(clone(inputBase64)) - o.as_xsd - o - end - - def echoXSDanyURI(inputAnyURI) - clone(inputAnyURI) - end - - def echoXSDQName(inputQName) - SOAP::SOAPQName.new(clone(inputQName)) - end - - def echoXSDInteger(inputXSDInteger) - clone(inputXSDInteger) - end - - def echoXSDLong(inputLong) - SOAP::SOAPLong.new(clone(inputLong)) - end - - def echoXSDInt(inputInt) - SOAP::SOAPInt.new(clone(inputInteger)) - end - - def echoPolyMorph(anObject) - clone(anObject) - end - - alias echoPolyMorphStruct echoPolyMorph - alias echoPolyMorphArray echoPolyMorph - -private - - def clone(obj) - begin - return Marshal.load(Marshal.dump(obj)) - rescue TypeError - return obj - end - end - - def clone_Struct(struct) - result = clone(struct) - result.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - result - end - - def clone_StructArray(structArray) - result = clone(structArray) - result.map { |ele| - ele.varFloat = SOAPFloat.new(ele.varFloat) if ele.varFloat - } - result - end - - def clone_StructStruct(structStruct) - result = clone(structStruct) - result.varFloat = SOAPFloat.new(structStruct.varFloat) if structStruct.varFloat - if struct = result.varStruct - struct.varFloat = SOAPFloat.new(struct.varFloat) if struct.varFloat - end - result - end -end - -if __FILE__ == $0 - svr = InteropApp.new('InteropApp', InterfaceNS, '0.0.0.0', 10080) - trap("INT") { svr.shutdown } - svr.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/simonReg.rb b/vendor/gems/soap4r-1.5.8/test/interopR2/simonReg.rb deleted file mode 100644 index 552702c7..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/simonReg.rb +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/env ruby - -proxy = ARGV.shift || nil - -require 'soap/driver' -require 'logger' - -require 'iSimonReg' - -server = 'http://www.4s4c.com/services/4s4c.ashx' - -class SimonRegApp < Logger::Application - include SimonReg - -private - - AppName = 'SimonRegApp' - - def initialize( server, proxy ) - super( AppName ) - @server = server - @proxy = proxy - @logId = Time.now.gmtime.strftime( "%Y-%m-%dT%X+0000" ) - @drvServices = nil - @drvClients = nil - @drvServers = nil - @drvSubscriber = nil - end - - def run() - @log.level = WARN - wireDump = getWireDumpLogFile - - # Services portType - @drvServices = SOAP::Driver.new( @log, @logId, Services::InterfaceNS, @server, @proxy ) - @drvServices.setWireDumpDev( wireDump ) - - Services::Methods.each do | method, params | - @drvServices.addMethod( method, *( params[1..-1] )) - end - @drvServices.extend( Services ) - - # Clients portType - @drvClients = SOAP::Driver.new( @log, @logId, Clients::InterfaceNS, @server, @proxy ) - @drvClients.setWireDumpDev( wireDump ) - - Clients::Methods.each do | method, params | - @drvClients.addMethod( method, *( params[1..-1] )) - end - @drvClients.extend( Clients ) - - # Servers portType - @drvServers = SOAP::Driver.new( @log, @logId, Servers::InterfaceNS, @server, @proxy ) - @drvServers.setWireDumpDev( wireDump ) - - Servers::Methods.each do | method, params | - @drvServers.addMethod( method, *( params[1..-1] )) - end - @drvServers.extend( Services ) - - # Services portType - @drvSubscriber = SOAP::Driver.new( @log, @logId, Subscriber::InterfaceNS, @server, @proxy ) - @drvSubscriber.setWireDumpDev( wireDump ) - - Subscriber::Methods.each do | method, params | - @drvSubscriber.addMethod( method, *( params[1..-1] )) - end - @drvSubscriber.extend( Subscriber ) - - # Service information - #services = @drvServices.ServiceList - #groupA = services.find { | service | service.name == 'SoapBuilders Interop Group A' } - #groupB = services.find { | service | service.name == 'SoapBuilders Interop Group B' } - - # SOAP4R information - version = '1.4.1' - soap4rClientInfo = Clients::ClientInfo.new( 'SOAP4R', version, - 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/wiki.cgi?cmd=view;name=InteropResults' - ) - soap4rServerInfo = Servers::ServerInfo.new( 'SOAP4R', version, - 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInterop/', - 'http://www.jin.gr.jp/~nahi/Ruby/SOAP4R/SOAPBuildersInterop/SOAP4R_SOAPBuildersInteropTest_R2base.wsdl' ) - soap4rGroupAClientID = '{7B1DF876-055E-4259-ACAE-55E13E399264}' - soap4rGroupBClientID = '{62723003-BC86-4BC0-AABC-C6A3FDE11655}' - soap4rGroupAServerID = '{3094F6C7-F6AA-4BE5-A4EB-194C82103728}' - soap4rGroupBServerID = '{A16357C9-6C7F-45CD-AC3D-72F0FC5F4F99}' - - # Client registration - # clientID = @drvClients.RegisterClient( groupA.id, soap4rClientInfo ) - # clientID = @drvClients.RegisterClient( groupB.id, soap4rClientInfo ) - - # Client remove - # @drvClients.RemoveClient( soap4rClientID ) - - # Server registration - # serverID = @drvServers.RegisterServer( groupA.id, soap4rServerInfo ) - # serverID = @drvServers.RegisterServer( groupB.id, soap4rServerInfo ) - # p serverID - - # Update - @drvClients.UpdateClient( soap4rGroupAClientID, soap4rClientInfo ) - @drvClients.UpdateClient( soap4rGroupBClientID, soap4rClientInfo ) - @drvServers.UpdateServer( soap4rGroupAServerID, soap4rServerInfo ) - @drvServers.UpdateServer( soap4rGroupBServerID, soap4rServerInfo ) - end - - - ### - ## Other utility methods - # - def log( sev, message ) - @log.add( sev, "<#{ @logId }> #{ message }", @appName ) if @log - end - - def getWireDumpLogFile - logFilename = File.basename( $0 ) + '.log' - f = File.open( logFilename, 'w' ) - f << "File: #{ logFilename } - Wiredumps for SOAP4R client.\n" - f << "Date: #{ Time.now }\n\n" - end -end - -app = SimonRegApp.new( server, proxy ).start() diff --git a/vendor/gems/soap4r-1.5.8/test/interopR2/test.sh b/vendor/gems/soap4r-1.5.8/test/interopR2/test.sh deleted file mode 100644 index 75d0ef1e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR2/test.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - - -ruby clientSOAP4R.rb - -ruby client4S4C.rb -ruby client4S4C2.rb -ruby clientApacheAxis.rb -ruby clientApacheSOAP.rb -ruby clientASP.NET.rb -ruby clientBEAWebLogic.rb -ruby clientCapeConnect.rb -ruby clientDelphi.rb -ruby clientEasySoap.rb -ruby clienteSOAP.rb -ruby clientgSOAP.rb -ruby clientFrontier.rb -ruby clientGLUE.rb -ruby clientHP.rb -ruby clientXMLBus.rb -ruby clientKafkaXSLT.rb -ruby clientkSOAP.rb -ruby client.NetRemoting.rb -ruby clientMSSOAPToolkit2.0.rb -ruby clientMSSOAPToolkit3.0.rb -ruby clientNuSOAP.rb -ruby clientNuWave.rb -ruby clientOpenLink.rb -ruby clientOracle.rb -ruby clientPEAR.rb -ruby clientPhalanx.rb -ruby clientSilverStream.rb -ruby clientSIMACE.rb -ruby clientSOAP::Lite.rb -ruby clientJSOAP.rb -ruby clientSpray2001.rb -ruby clientSQLData.rb -ruby clientSun.rb -ruby clientVWOpentalkSoap.rb -ruby clientWASP.rb -ruby clientWASPC.rb -ruby clientWebMethods.rb -ruby clientWhiteMesa.rb -ruby clientWingfoot.rb -ruby clientXSOAP.rb - -# Permanent -#ruby clientTclSOAP.rb -#ruby clientXMLRPC-EPI.rb -#ruby clientZSI.rb diff --git a/vendor/gems/soap4r-1.5.8/test/interopR4/client.rb b/vendor/gems/soap4r-1.5.8/test/interopR4/client.rb deleted file mode 100644 index edf1c604..00000000 --- a/vendor/gems/soap4r-1.5.8/test/interopR4/client.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' - - -class TestInteropR4 < Test::Unit::TestCase - include SOAP - - class ArrayOfBinary < Array; end - MappingRegistry = Mapping::DefaultRegistry.dup - MappingRegistry.add( - ArrayOfBinary, - SOAPArray, - Mapping::Registry::TypedArrayFactory, - { :type => XSD::XSDBase64Binary::Type } - ) - - class << self - include SOAP - def setup(name, location) - setup_log(name) - setup_drv(location) - end - - def teardown - end - - private - - def setup_log(name) - filename = File.basename($0).sub(/\.rb$/, '') << '.log' - @@log = File.open(filename, 'w') - @@log << "File: #{ filename } - Wiredumps for SOAP4R client / #{ name } server.\n" - @@log << "Date: #{ Time.now }\n\n" - end - - def setup_drv(location) - namespace = "http://soapinterop.org/attachments/" - soap_action = "http://soapinterop.org/attachments/" - @@drv = RPC::Driver.new(location, namespace, soap_action) - @@drv.mapping_registry = MappingRegistry - @@drv.wiredump_dev = @@log - method_def(@@drv, soap_action) - end - - def method_def(drv, soap_action = nil) - drv.add_method("EchoAttachment", - [['in', 'In', nil], ['retval', 'Out', nil]]) - drv.add_method("EchoAttachments", - [['in', 'In', nil], ['retval', 'Out', nil]]) - drv.add_method("EchoAttachmentAsBase64", - [['in', 'In', nil], ['retval', 'Out', nil]]) - drv.add_method("EchoBase64AsAttachment", - [['in', 'In', nil], ['retval', 'Out', nil]]) - end - end - - def setup - end - - def teardown - end - - def drv - @@drv - end - - def log_test - /`([^']+)'/ =~ caller(1)[0] - title = $1 - title = "==== " + title + " " << "=" * (title.length > 72 ? 0 : (72 - title.length)) - @@log << "#{title}\n\n" - end - - def test_EchoAttachment - log_test - var = drv.EchoAttachment(Attachment.new("foobar")) - assert_equal("foobar", var.content) - end - - def test_EchoAttachments - log_test - var = drv.EchoAttachments( - ArrayOfBinary[ - Attachment.new("foobar"), - Attachment.new("abc\0\0\0def"), - Attachment.new("ghi") - ] - ) - assert_equal(3, var.size) - assert_equal("foobar", var[0].content) - assert_equal("abc\0\0\0def", var[1].content) - assert_equal("ghi", var[2].content) - end - - def test_EchoAttachmentAsBase64 - log_test - var = drv.EchoAttachmentAsBase64(Attachment.new("foobar")) - assert_equal("foobar", var) - end - - def test_EchoBase64AsAttachment - log_test - var = drv.EchoBase64AsAttachment("abc\0\1\2def") - assert_equal("abc\0\1\2def", var.content) - end -end - -if $0 == __FILE__ - name = ARGV.shift || 'localhost' - location = ARGV.shift || 'http://localhost:10080/' - TestInteropR4.setup(name, location) -end diff --git a/vendor/gems/soap4r-1.5.8/test/runner.rb b/vendor/gems/soap4r-1.5.8/test/runner.rb deleted file mode 100644 index e0f00ee2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/runner.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test/unit' - -rcsid = %w$Id: runner.rb 1751 2007-05-02 08:15:55Z nahi $ -Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze -Release = rcsid[3].freeze - -exit Test::Unit::AutoRunner.run(true, File.dirname($0)) diff --git a/vendor/gems/soap4r-1.5.8/test/sm11/classDef.rb b/vendor/gems/soap4r-1.5.8/test/sm11/classDef.rb deleted file mode 100644 index 9cee5432..00000000 --- a/vendor/gems/soap4r-1.5.8/test/sm11/classDef.rb +++ /dev/null @@ -1,155 +0,0 @@ -# http://dopg.gr.jp/sm11.xsd -class C_struct - attr_accessor :e_boolean # {http://www.w3.org/2001/XMLSchema}boolean - attr_accessor :e_short # {http://www.w3.org/2001/XMLSchema}short - attr_accessor :e_int # {http://www.w3.org/2001/XMLSchema}int - attr_accessor :e_long # {http://www.w3.org/2001/XMLSchema}long - attr_accessor :e_float # {http://www.w3.org/2001/XMLSchema}float - attr_accessor :e_double # {http://www.w3.org/2001/XMLSchema}double - attr_accessor :e_String # {http://www.w3.org/2001/XMLSchema}string - - def initialize( e_boolean = nil, - e_short = nil, - e_int = nil, - e_long = nil, - e_float = nil, - e_double = nil, - e_String = nil ) - @e_boolean = nil - @e_short = nil - @e_int = nil - @e_long = nil - @e_float = nil - @e_double = nil - @e_String = nil - end -end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfboolean < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfshort < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfint < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOflong < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOffloat < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfdouble < Array; end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfstring < Array; end - -# http://dopg.gr.jp/sm11.xsd -class F_struct - attr_accessor :e_c_struct # {http://dopg.gr.jp/sm11.xsd}C_struct - attr_accessor :e_c_array_e_boolean # {http://dopg.gr.jp/sm11.xsd}ArrayOfboolean - attr_accessor :e_c_array_e_short # {http://dopg.gr.jp/sm11.xsd}ArrayOfshort - attr_accessor :e_c_array_e_int # {http://dopg.gr.jp/sm11.xsd}ArrayOfint - attr_accessor :e_c_array_e_long # {http://dopg.gr.jp/sm11.xsd}ArrayOflong - attr_accessor :e_c_array_e_float # {http://dopg.gr.jp/sm11.xsd}ArrayOffloat - attr_accessor :e_c_array_e_double # {http://dopg.gr.jp/sm11.xsd}ArrayOfdouble - attr_accessor :e_c_array_e_String # {http://dopg.gr.jp/sm11.xsd}ArrayOfstring - - def initialize( e_c_struct = nil, - e_c_array_e_boolean = nil, - e_c_array_e_short = nil, - e_c_array_e_int = nil, - e_c_array_e_long = nil, - e_c_array_e_float = nil, - e_c_array_e_double = nil, - e_c_array_e_String = nil ) - @e_c_struct = nil - @e_c_array_e_boolean = nil - @e_c_array_e_short = nil - @e_c_array_e_int = nil - @e_c_array_e_long = nil - @e_c_array_e_float = nil - @e_c_array_e_double = nil - @e_c_array_e_String = nil - end -end - -# http://dopg.gr.jp/sm11.xsd -class ArrayOfC_struct < Array; end - -# http://dopg.gr.jp/sm11.xsd -class A_except < StandardError - attr_accessor :v1 # {http://www.w3.org/2001/XMLSchema}boolean - attr_accessor :v4 # {http://www.w3.org/2001/XMLSchema}short - attr_accessor :v5 # {http://www.w3.org/2001/XMLSchema}int - attr_accessor :v6 # {http://www.w3.org/2001/XMLSchema}long - attr_accessor :v7 # {http://www.w3.org/2001/XMLSchema}float - attr_accessor :v8 # {http://www.w3.org/2001/XMLSchema}double - attr_accessor :v9 # {http://www.w3.org/2001/XMLSchema}string - - def initialize( v1 = nil, - v4 = nil, - v5 = nil, - v6 = nil, - v7 = nil, - v8 = nil, - v9 = nil ) - @v1 = nil - @v4 = nil - @v5 = nil - @v6 = nil - @v7 = nil - @v8 = nil - @v9 = nil - end -end - -# http://dopg.gr.jp/sm11.xsd -class C_except < StandardError - attr_accessor :v10 # {http://dopg.gr.jp/sm11.xsd}C_struct - attr_accessor :v21 # {http://dopg.gr.jp/sm11.xsd}ArrayOfboolean - attr_accessor :v24 # {http://dopg.gr.jp/sm11.xsd}ArrayOfshort - attr_accessor :v25 # {http://dopg.gr.jp/sm11.xsd}ArrayOfint - attr_accessor :v26 # {http://dopg.gr.jp/sm11.xsd}ArrayOflong - attr_accessor :v27 # {http://dopg.gr.jp/sm11.xsd}ArrayOffloat - attr_accessor :v28 # {http://dopg.gr.jp/sm11.xsd}ArrayOfdouble - attr_accessor :v29 # {http://dopg.gr.jp/sm11.xsd}ArrayOfstring - - def initialize( v10 = nil, - v21 = nil, - v24 = nil, - v25 = nil, - v26 = nil, - v27 = nil, - v28 = nil, - v29 = nil ) - @v10 = nil - @v21 = nil - @v24 = nil - @v25 = nil - @v26 = nil - @v27 = nil - @v28 = nil - @v29 = nil - end -end - -# http://dopg.gr.jp/sm11.xsd -class F_except1 < StandardError - attr_accessor :v40 # {http://dopg.gr.jp/sm11.xsd}F_struct - - def initialize( v40 = nil ) - @v40 = nil - end -end - -# http://dopg.gr.jp/sm11.xsd -class F_except2 < StandardError - attr_accessor :v50 # {http://dopg.gr.jp/sm11.xsd}ArrayOfC_struct - - def initialize( v50 = nil ) - @v50 = nil - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/sm11/client.rb b/vendor/gems/soap4r-1.5.8/test/sm11/client.rb deleted file mode 100644 index 705d4919..00000000 --- a/vendor/gems/soap4r-1.5.8/test/sm11/client.rb +++ /dev/null @@ -1,542 +0,0 @@ -# Done -# /^void/ def/ -# /^}/ end/ -# /System.out.print/STDOUT.puts/g -# /try { \(.*\) }/\1/ -# /\.set\([^(]*\)(\([^)]*\))/.\1 = \2/ -# /E_/e_/ -# /\.get\([^(]*\)()/.\1/ -# /(short)// -# -require 'soap/baseData' - -class Sm11Caller - include SOAP - - attr_reader :target - - def initialize( target ) - @target = target - end - -private - def cons_0000() - _v1 = C_struct.new() - _v1.e_boolean = false - _v1.e_short = SOAPShort.new(-100) - _v1.e_int = SOAPInt.new(-100000) - _v1.e_long = SOAPLong.new(-10000000000) - _v1.e_float = SOAPFloat.new(0.123) - _v1.e_double = 0.12e3 - _v1.e_String = "abc" - return(_v1) - end - def comp_0000(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def cons_0001() - _v1 = C_struct.new() - _v1.e_boolean = false - _v1.e_short = SOAPShort.new(-100) - _v1.e_int = SOAPInt.new(-100000) - _v1.e_long = SOAPLong.new(-10000000000) - _v1.e_float = SOAPFloat.new(0.123) - _v1.e_double = 0.12e3 - _v1.e_String = "abc" - return(_v1) - end - def cons_0003() - _v1 = C_struct.new() - _v1.e_boolean = false - _v1.e_short = SOAPShort.new(-100) - _v1.e_int = SOAPInt.new(-100000) - _v1.e_long = SOAPLong.new(-10000000000) - _v1.e_float = SOAPFloat.new(0.123) - _v1.e_double = 0.12e3 - _v1.e_String = "abc" - return(_v1) - end - def cons_0002() - _v1 = F_struct.new() - _v1.e_c_struct = cons_0003() - _v1.e_c_array_e_boolean = ArrayOfboolean[false, false] - _v1.e_c_array_e_short = ArrayOfshort[-100, -100] - _v1.e_c_array_e_int = ArrayOfint[-100000, -100000] - _v1.e_c_array_e_long = ArrayOflong[-10000000000, -10000000000] - _v1.e_c_array_e_float = ArrayOffloat[0.123, 0.123] - _v1.e_c_array_e_double = ArrayOfdouble[0.12e3, 0.12e3] - _v1.e_c_array_e_String = ArrayOfstring["abc", "abc"] - return(_v1) - end - def comp_0002(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def comp_0001(_v1) - return(true && - comp_0002(_v1.e_c_struct) && - (true && (_v1.e_c_array_e_boolean[0] == true) && (_v1.e_c_array_e_boolean[1] == true)) && - (true && (_v1.e_c_array_e_short[0] == -200) && (_v1.e_c_array_e_short[1] == -200)) && - (true && (_v1.e_c_array_e_int[0] == -200000) && (_v1.e_c_array_e_int[1] == -200000)) && - (true && (_v1.e_c_array_e_long[0] == -20000000000) && (_v1.e_c_array_e_long[1] == -20000000000)) && - (true && (_v1.e_c_array_e_float[0] == 1.234) && (_v1.e_c_array_e_float[1] == 1.234)) && - (true && (_v1.e_c_array_e_double[0] == 1.23e4) && (_v1.e_c_array_e_double[1] == 1.23e4)) && - (true && (_v1.e_c_array_e_String[0] == "def") && (_v1.e_c_array_e_String[1] == "def")) - ) - end - def cons_0004() - _v1 = C_struct.new() - _v1.e_boolean = false - _v1.e_short = SOAPShort.new(-100) - _v1.e_int = SOAPInt.new(-100000) - _v1.e_long = SOAPLong.new(-10000000000) - _v1.e_float = SOAPFloat.new(0.123) - _v1.e_double = 0.12e3 - _v1.e_String = "abc" - return(_v1) - end - def comp_0003(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def cons_0006() - _v1 = C_struct.new() - _v1.e_boolean = false - _v1.e_short = SOAPShort.new(-100) - _v1.e_int = SOAPInt.new(-100000) - _v1.e_long = SOAPLong.new(-10000000000) - _v1.e_float = SOAPFloat.new(0.123) - _v1.e_double = 0.12e3 - _v1.e_String = "abc" - return(_v1) - end - def cons_0005() - _v1 = F_struct.new() - _v1.e_c_struct = cons_0006() - _v1.e_c_array_e_boolean = ArrayOfboolean[false, false] - _v1.e_c_array_e_short = ArrayOfshort[-100, -100] - _v1.e_c_array_e_int = ArrayOfint[-100000, -100000] - _v1.e_c_array_e_long = ArrayOflong[-10000000000, -10000000000] - _v1.e_c_array_e_float = ArrayOffloat[0.123, 0.123] - _v1.e_c_array_e_double = ArrayOfdouble[0.12e3, 0.12e3] - _v1.e_c_array_e_String = ArrayOfstring["abc", "abc"] - return(_v1) - end - def comp_0004(_v1) - return(true && - (_v1.v1()) && - (_v1.v4 == -200) && - (_v1.v5 == -200000) && - (_v1.v6 == -20000000000) && - (_v1.v7 == 1.234) && - (_v1.v8 == 1.23e4) && - (_v1.v9 == "def") - ) - end - def comp_0006(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def comp_0005(_v1) - return(true && - comp_0006(_v1.v10) && - (true && (_v1.v21[0] == true) && (_v1.v21[1] == true)) && - (true && (_v1.v24[0] == -200) && (_v1.v24[1] == -200)) && - (true && (_v1.v25[0] == -200000) && (_v1.v25[1] == -200000)) && - (true && (_v1.v26[0] == -20000000000) && (_v1.v26[1] == -20000000000)) && - (true && (_v1.v27[0] == 1.234) && (_v1.v27[1] == 1.234)) && - (true && (_v1.v28[0] == 1.23e4) && (_v1.v28[1] == 1.23e4)) && - (true && (_v1.v29[0] == "def") && (_v1.v29[1] == "def")) - ) - end - def comp_0009(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def comp_0008(_v1) - return(true && - comp_0009(_v1.e_c_struct) && - (true && (_v1.e_c_array_e_boolean[0] == true) && (_v1.e_c_array_e_boolean[1] == true)) && - (true && (_v1.e_c_array_e_short[0] == -200) && (_v1.e_c_array_e_short[1] == -200)) && - (true && (_v1.e_c_array_e_int[0] == -200000) && (_v1.e_c_array_e_int[1] == -200000)) && - (true && (_v1.e_c_array_e_long[0] == -20000000000) && (_v1.e_c_array_e_long[1] == -20000000000)) && - (true && (_v1.e_c_array_e_float[0] == 1.234) && (_v1.e_c_array_e_float[1] == 1.234)) && - (true && (_v1.e_c_array_e_double[0] == 1.23e4) && (_v1.e_c_array_e_double[1] == 1.23e4)) && - (true && (_v1.e_c_array_e_String[0] == "def") && (_v1.e_c_array_e_String[1] == "def")) - ) - end - def comp_0007(_v1) - return(true && - comp_0008(_v1.v40) - ) - end - def comp_0011(_v1) - return(true && - (_v1.e_boolean()) && - (_v1.e_short == -200) && - (_v1.e_int == -200000) && - (_v1.e_long == -20000000000) && - (_v1.e_float == 1.234) && - (_v1.e_double == 1.23e4) && - (_v1.e_String == "def") - ) - end - def comp_0010(_v1) - return(true && - (true && comp_0011(_v1.v50[0]) && comp_0011(_v1.v50[1])) - ) - end - - def call_op0() - STDOUT.puts("op0\n") - target.op0() - end - def call_op1() - STDOUT.puts("op1\n") - a1 = false - target.op1(a1) - end - def call_op4() - STDOUT.puts("op4\n") - a1 = SOAPShort.new(-100) - target.op4(a1) - end - def call_op5() - STDOUT.puts("op5\n") - a1 = -100000 - target.op5(a1) - end - def call_op6() - STDOUT.puts("op6\n") - a1 = -10000000000 - target.op6(a1) - end - def call_op7() - STDOUT.puts("op7\n") - a1 = SOAPFloat.new(0.123) - target.op7(a1) - end - def call_op8() - STDOUT.puts("op8\n") - a1 = 0.12e3 - target.op8(a1) - end - def call_op9() - STDOUT.puts("op9\n") - a1 = "abc" - target.op9(a1) - end - def call_op11() - STDOUT.puts("op11\n") - _ret = target.op11() - raise unless _ret.is_a?( TrueClass ) - if (!(_ret == true)); STDOUT.puts("_ret value error in op11\n"); end - end - def call_op14() - STDOUT.puts("op14\n") - _ret = target.op14() - raise unless _ret.is_a?( Integer ) - if (!(_ret == -200)); STDOUT.puts("_ret value error in op14\n"); end - end - def call_op15() - STDOUT.puts("op15\n") - _ret = target.op15() - raise unless _ret.is_a?( Integer ) - if (!(_ret == -200000)); STDOUT.puts("_ret value error in op15\n"); end - end - def call_op16() - STDOUT.puts("op16\n") - _ret = target.op16() - raise unless _ret.is_a?( Integer ) - if (!(_ret == -20000000000)); STDOUT.puts("_ret value error in op16\n"); end - end - def call_op17() - STDOUT.puts("op17\n") - _ret = target.op17() - raise unless _ret.is_a?( Float ) - if (!(_ret == 1.234)); STDOUT.puts("_ret value error in op17\n"); end - end - def call_op18() - STDOUT.puts("op18\n") - _ret = target.op18() - raise unless _ret.is_a?( Float ) - if (!(_ret == 1.23e4)); STDOUT.puts("_ret value error in op18\n"); end - end - def call_op19() - STDOUT.puts("op19\n") - _ret = target.op19() - raise unless _ret.is_a?( String ) - if (!(_ret == "def")); STDOUT.puts("_ret value error in op19\n"); end - end - def call_op21() - STDOUT.puts("op21\n") - a1 = false - _ret = target.op21(a1) - raise unless _ret.is_a?( TrueClass ) or _ret.is_a?( FalseClass ) - if (!(_ret == true)); STDOUT.puts("_ret value error in op21\n"); end - end - def call_op24() - STDOUT.puts("op24\n") - a1 = SOAPShort.new(-100) - a2 = SOAPInt.new(-100000) - a3 = SOAPLong.new(-10000000000) - _ret = target.op24(a1,a2,a3) - raise unless _ret.is_a?( Integer ) - if (!(_ret == -200)); STDOUT.puts("_ret value error in op24\n"); end - end - def call_op25() - STDOUT.puts("op25\n") - a1 = SOAPInt.new(-100000) - a2 = SOAPLong.new(-10000000000) - a3 = SOAPFloat.new(0.123) - _ret = target.op25(a1,a2,a3) - raise unless _ret.is_a?( Integer ) - if (!(_ret == -200000)); STDOUT.puts("_ret value error in op25\n"); end - end - def call_op26() - STDOUT.puts("op26\n") - a1 = SOAPLong.new(-10000000000) - a2 = SOAPFloat.new(0.123) - a3 = 0.12e3 - _ret = target.op26(a1,a2,a3) - raise unless _ret.is_a?( Integer ) - if (!(_ret == -20000000000)); STDOUT.puts("_ret value error in op26\n"); end - end - def call_op27() - STDOUT.puts("op27\n") - a1 = SOAPFloat.new(0.123) - a2 = 0.12e3 - a3 = "abc" - _ret = target.op27(a1,a2,a3) - raise unless _ret.is_a?( Float ) - if (!(_ret == 1.234)); STDOUT.puts("_ret value error in op27\n"); end - end - def call_op28() - STDOUT.puts("op28\n") - a1 = 0.12e3 - a2 = "abc" - a3 = false - _ret = target.op28(a1,a2,a3) - raise unless _ret.is_a?( Float ) - if (!(_ret == 1.23e4)); STDOUT.puts("_ret value error in op28\n"); end - end - def call_op29() - STDOUT.puts("op29\n") - a1 = "abc" - a2 = false - _ret = target.op29(a1,a2) - raise unless _ret.is_a?( String ) - if (!(_ret == "def")); STDOUT.puts("_ret value error in op29\n"); end - end - def call_op30() - STDOUT.puts("op30\n") - a1 = cons_0000() - _ret = target.op30(a1) - if (!comp_0000(_ret)); STDOUT.puts("_ret value error in op30\n"); end - end - def call_op31() - STDOUT.puts("op31\n") - a1 = ArrayOfboolean[false, false] - _ret = target.op31(a1) - if (!(true && (_ret[0] == true) && (_ret[1] == true))); STDOUT.puts("_ret value error in op31\n"); end - end - def call_op34() - STDOUT.puts("op34\n") - a1 = ArrayOfshort[-100, -100] - _ret = target.op34(a1) - if (!(true && (_ret[0] == -200) && (_ret[1] == -200))); STDOUT.puts("_ret value error in op34\n"); end - end - def call_op35() - STDOUT.puts("op35\n") - a1 = ArrayOfint[-100000, -100000] - _ret = target.op35(a1) - if (!(true && (_ret[0] == -200000) && (_ret[1] == -200000))); STDOUT.puts("_ret value error in op35\n"); end - end - def call_op36() - STDOUT.puts("op36\n") - a1 = ArrayOflong[-10000000000, -10000000000] - _ret = target.op36(a1) - if (!(true && (_ret[0] == -20000000000) && (_ret[1] == -20000000000))); STDOUT.puts("_ret value error in op36\n"); end - end - def call_op37() - STDOUT.puts("op37\n") - a1 = ArrayOffloat[0.123, 0.123] - _ret = target.op37(a1) - if (!(true && (_ret[0] == 1.234) && (_ret[1] == 1.234))); STDOUT.puts("_ret value error in op37\n"); end - end - def call_op38() - STDOUT.puts("op38\n") - a1 = ArrayOfdouble[0.12e3, 0.12e3] - _ret = target.op38(a1) - if (!(true && (_ret[0] == 1.23e4) && (_ret[1] == 1.23e4))); STDOUT.puts("_ret value error in op38\n"); end - end - def call_op39() - STDOUT.puts("op39\n") - a1 = ArrayOfstring["abc", "abc"] - _ret = target.op39(a1) - if (!(true && (_ret[0] == "def") && (_ret[1] == "def"))); STDOUT.puts("_ret value error in op39\n"); end - end - def call_op40() - STDOUT.puts("op40\n") - a1 = cons_0001() - a2 = ArrayOfboolean[false, false] - a3 = ArrayOfint[-100000, -100000] - a4 = ArrayOfdouble[0.12e3, 0.12e3] - a5 = ArrayOfstring["abc", "abc"] - target.op40(a1,a2,a3,a4,a5) - end - def call_op41() - STDOUT.puts("op41\n") - a1 = cons_0002() - _ret = target.op41(a1) - if (!comp_0001(_ret)); STDOUT.puts("_ret value error in op41\n"); end - end - def call_op42() - STDOUT.puts("op42\n") - a1 = ArrayOfC_struct[cons_0004(), cons_0004()] - _ret = target.op42(a1) - if (!(true && comp_0003(_ret[0]) && comp_0003(_ret[1]))); STDOUT.puts("_ret value error in op42\n"); end - end - def call_op43() - STDOUT.puts("op43\n") - a1 = cons_0005() - a2 = ArrayOfC_struct[cons_0006(), cons_0006()] - target.op43(a1,a2) - end - def call_excop1() - STDOUT.puts("excop1\n") - begin - target.excop1() - rescue A_except => _exc - if (!comp_0004(_exc)); STDOUT.puts("_exc value error in excop1\n"); end - return - end - STDOUT.puts("no exception raised in excop1\n") - end - def call_excop2() - STDOUT.puts("excop2\n") - begin - target.excop2() - rescue C_except => _exc - if (!comp_0005(_exc)); STDOUT.puts("_exc value error in excop2\n"); end - return - end - STDOUT.puts("no exception raised in excop2\n") - end - def call_excop3() - STDOUT.puts("excop3\n") - begin - target.excop3() - rescue F_except1 => _exc - if (!comp_0007(_exc)); STDOUT.puts("_exc value error in excop3\n"); end - return - end - STDOUT.puts("no exception raised in excop3\n") - end - def call_excop4() - STDOUT.puts("excop4\n") - begin - target.excop4() - rescue F_except2 => _exc - if (!comp_0010(_exc)); STDOUT.puts("_exc value error in excop4\n"); end - return - end - STDOUT.puts("no exception raised in excop4\n") - end - -public - - def dispatcher(argv, start, argc) - all = (start == argc) - i = all ? start-1 : start - while (i < argc) do - if (all || ("op0" == argv[i])); call_op0(); end - if (all || ("op1" == argv[i])); call_op1(); end - if (all || ("op4" == argv[i])); call_op4(); end - if (all || ("op5" == argv[i])); call_op5(); end - if (all || ("op6" == argv[i])); call_op6(); end - if (all || ("op7" == argv[i])); call_op7(); end - if (all || ("op8" == argv[i])); call_op8(); end - if (all || ("op9" == argv[i])); call_op9(); end - if (all || ("op11" == argv[i])); call_op11(); end - if (all || ("op14" == argv[i])); call_op14(); end - if (all || ("op15" == argv[i])); call_op15(); end - if (all || ("op16" == argv[i])); call_op16(); end - if (all || ("op17" == argv[i])); call_op17(); end - if (all || ("op18" == argv[i])); call_op18(); end - if (all || ("op19" == argv[i])); call_op19(); end - if (all || ("op21" == argv[i])); call_op21(); end - if (all || ("op24" == argv[i])); call_op24(); end - if (all || ("op25" == argv[i])); call_op25(); end - if (all || ("op26" == argv[i])); call_op26(); end - if (all || ("op27" == argv[i])); call_op27(); end - if (all || ("op28" == argv[i])); call_op28(); end - if (all || ("op29" == argv[i])); call_op29(); end - if (all || ("op30" == argv[i])); call_op30(); end - if (all || ("op31" == argv[i])); call_op31(); end - if (all || ("op34" == argv[i])); call_op34(); end - if (all || ("op35" == argv[i])); call_op35(); end - if (all || ("op36" == argv[i])); call_op36(); end - if (all || ("op37" == argv[i])); call_op37(); end - if (all || ("op38" == argv[i])); call_op38(); end - if (all || ("op39" == argv[i])); call_op39(); end - if (all || ("op40" == argv[i])); call_op40(); end - if (all || ("op41" == argv[i])); call_op41(); end - if (all || ("op42" == argv[i])); call_op42(); end - if (all || ("op43" == argv[i])); call_op43(); end - if (all || ("excop1" == argv[i])); call_excop1(); end - if (all || ("excop2" == argv[i])); call_excop2(); end - if (all || ("excop3" == argv[i])); call_excop3(); end - if (all || ("excop4" == argv[i])); call_excop4(); end - - i += 1 - end - end - -end - - -#url = "http://localhost:10080/" -#url = "http://16.175.170.131:8080/axis/services/sm11Port" -#url = "http://16.175.170.131/soapsrv" -url = ARGV.shift -require 'driver' -drv = Sm11PortType.new( url ) -#drv.setWireDumpDev( STDOUT ) -Sm11Caller.new( drv ).dispatcher( ARGV, 0, ARGV.size ) diff --git a/vendor/gems/soap4r-1.5.8/test/sm11/driver.rb b/vendor/gems/soap4r-1.5.8/test/sm11/driver.rb deleted file mode 100644 index 8dacd126..00000000 --- a/vendor/gems/soap4r-1.5.8/test/sm11/driver.rb +++ /dev/null @@ -1,182 +0,0 @@ -require 'classDef' -require 'soap/proxy' -require 'soap/rpcUtils' -require 'soap/streamHandler' - -class Sm11PortType - MappingRegistry = SOAP::RPCUtils::MappingRegistry.new - - MappingRegistry.set( - C_struct, - ::SOAP::SOAPStruct, - ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, - [ "http://dopg.gr.jp/sm11.xsd", "C_struct" ] - ) - MappingRegistry.set( - ArrayOfboolean, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "boolean" ] - ) - MappingRegistry.set( - ArrayOfshort, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "short" ] - ) - MappingRegistry.set( - ArrayOfint, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "int" ] - ) - MappingRegistry.set( - ArrayOflong, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "long" ] - ) - MappingRegistry.set( - ArrayOffloat, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "float" ] - ) - MappingRegistry.set( - ArrayOfdouble, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "double" ] - ) - MappingRegistry.set( - ArrayOfstring, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "string" ] - ) - MappingRegistry.set( - F_struct, - ::SOAP::SOAPStruct, - ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, - [ "http://dopg.gr.jp/sm11.xsd", "F_struct" ] - ) - MappingRegistry.set( - ArrayOfC_struct, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://dopg.gr.jp/sm11.xsd", "C_struct" ] - ) - - Methods = [ - [ "op0", "op0", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op1", "op1", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op4", "op4", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op5", "op5", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op6", "op6", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op7", "op7", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op8", "op8", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op9", "op9", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op11", "op11", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op14", "op14", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op15", "op15", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op16", "op16", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op17", "op17", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op18", "op18", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op19", "op19", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op21", "op21", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op24", "op24", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op25", "op25", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op26", "op26", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op27", "op27", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op28", "op28", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op29", "op29", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op30", "op30", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op31", "op31", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op34", "op34", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op35", "op35", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op36", "op36", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op37", "op37", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op38", "op38", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op39", "op39", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op40", "op40", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "in", "arg3" ], [ "in", "arg4" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op41", "op41", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op42", "op42", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op43", "op43", [ [ "in", "arg0" ], [ "in", "arg1" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop1", "excop1", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop2", "excop2", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop3", "excop3", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop4", "excop4", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ] - ] - - attr_reader :endpointUrl - attr_reader :proxyUrl - - def initialize( endpointUrl, proxyUrl = nil ) - @endpointUrl = endpointUrl - @proxyUrl = proxyUrl - @httpStreamHandler = SOAP::HTTPPostStreamHandler.new( @endpointUrl, - @proxyUrl ) - @proxy = SOAP::SOAPProxy.new( nil, @httpStreamHandler, nil ) - @proxy.allowUnqualifiedElement = true - @mappingRegistry = MappingRegistry - addMethod - end - - def setWireDumpDev( dumpDev ) - @httpStreamHandler.dumpDev = dumpDev - end - - def setDefaultEncodingStyle( encodingStyle ) - @proxy.defaultEncodingStyle = encodingStyle - end - - def getDefaultEncodingStyle - @proxy.defaultEncodingStyle - end - - def call( methodName, *params ) - # Convert parameters - params.collect! { | param | - SOAP::RPCUtils.obj2soap( param, @mappingRegistry ) - } - - # Then, call @proxy.call like the following. - header, body = @proxy.call( nil, methodName, *params ) - - # Check Fault. - begin - @proxy.checkFault( body ) - rescue SOAP::FaultError => e - SOAP::RPCUtils.fault2exception( e, @mappingRegistry ) - end - - ret = body.response ? - SOAP::RPCUtils.soap2obj( body.response, @mappingRegistry ) : nil - if body.outParams - outParams = body.outParams.collect { | outParam | - SOAP::RPCUtils.soap2obj( outParam ) - } - return [ ret ].concat( outParams ) - else - return ret - end - end - -private - - def addMethod - Methods.each do | methodNameAs, methodName, params, soapAction, namespace | - @proxy.addMethodAs( methodNameAs, methodName, params, soapAction, - namespace ) - addMethodInterface( methodNameAs, params ) - end - end - - def addMethodInterface( name, params ) - self.instance_eval <<-EOD - def #{ name }( *params ) - call( "#{ name }", *params ) - end - EOD - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/sm11/servant.rb b/vendor/gems/soap4r-1.5.8/test/sm11/servant.rb deleted file mode 100644 index df872bf9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/sm11/servant.rb +++ /dev/null @@ -1,1066 +0,0 @@ -require 'classDef' - -# Done -# System.out.print -> STDOUT.puts -# a1 -> arg0 -# a2 -> arg1 -# a3 -> arg2 -# a4 -> arg3 -# a5 -> arg4 -# /if \([^{]*\){\([^}]*\)}/if \1; \2; end/ -# /\([0-9][0-9]*\)L/\1/ -# /\([0-9][0-9]*\)f/\1/ -# /\.equals(\([^)]*\))/ == \1/ -# /\.set\([^(]*\)(\([^)]*\))/.\1 = \2/ -# /E_/e_/ -# /\.get\([^(]*\)()/.\1/ -# /(short)// -# /\.V/.v/ -# -class Sm11PortType - include SOAP - - # SYNOPSIS - # op0 - # - # ARGS - # N/A - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op0 - STDOUT.puts("op0\n") - return - end - - # SYNOPSIS - # op1( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}boolean - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op1( arg0 ) - STDOUT.puts("op1\n") - if (!(arg0 == false)); STDOUT.puts("arg0 value error in op1\n"); end - return - end - - # SYNOPSIS - # op4( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}short - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op4( arg0 ) - STDOUT.puts("op4\n") - if (!(arg0 == -100)); STDOUT.puts("arg0 value error in op4\n"); end - return - end - - # SYNOPSIS - # op5( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}int - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op5( arg0 ) - STDOUT.puts("op5\n") - if (!(arg0 == -100000)); STDOUT.puts("arg0 value error in op5\n"); end - return - end - - # SYNOPSIS - # op6( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}long - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op6( arg0 ) - STDOUT.puts("op6\n") - if (!(arg0 == -10000000000)); STDOUT.puts("arg0 value error in op6\n"); end - return - end - - # SYNOPSIS - # op7( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}float - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op7( arg0 ) - STDOUT.puts("op7\n") - if (!(arg0 == 0.123)); STDOUT.puts("arg0 value error in op7\n"); end - return - end - - # SYNOPSIS - # op8( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}double - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op8( arg0 ) - STDOUT.puts("op8\n") - if (!(arg0 == 0.12e3)); STDOUT.puts("arg0 value error in op8\n"); end - return - end - - # SYNOPSIS - # op9( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}string - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op9( arg0 ) - STDOUT.puts("op9\n") - if (!(arg0 == "abc")); STDOUT.puts("arg0 value error in op9\n"); end - return - end - - # SYNOPSIS - # op11 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}boolean - # - # RAISES - # N/A - # - def op11 - STDOUT.puts("op11\n") - _ret = true - return(_ret) - end - - # SYNOPSIS - # op14 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}short - # - # RAISES - # N/A - # - def op14 - STDOUT.puts("op14\n") - _ret = SOAPShort.new(-200) - return(_ret) - end - - # SYNOPSIS - # op15 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}int - # - # RAISES - # N/A - # - def op15 - STDOUT.puts("op15\n") - _ret = SOAPInt.new( -200000 ) - return(_ret) - end - - # SYNOPSIS - # op16 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}long - # - # RAISES - # N/A - # - def op16 - STDOUT.puts("op16\n") - _ret = SOAPLong.new( -20000000000 ) - return(_ret) - end - - # SYNOPSIS - # op17 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}float - # - # RAISES - # N/A - # - def op17 - STDOUT.puts("op17\n") - _ret = SOAPFloat.new(1.234) - return(_ret) - end - - # SYNOPSIS - # op18 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}double - # - # RAISES - # N/A - # - def op18 - STDOUT.puts("op18\n") - _ret = 1.23e4 - return(_ret) - end - - # SYNOPSIS - # op19 - # - # ARGS - # N/A - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}string - # - # RAISES - # N/A - # - def op19 - STDOUT.puts("op19\n") - _ret = "def" - return(_ret) - end - - # SYNOPSIS - # op21( arg0 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}boolean - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}boolean - # - # RAISES - # N/A - # - def op21( arg0 ) - STDOUT.puts("op21\n") - if (!(arg0 == false)); STDOUT.puts("arg0 value error in op21\n"); end - _ret = true - return(_ret) - end - - # SYNOPSIS - # op24( arg0, arg1, arg2 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}short - # arg1 {http://www.w3.org/2001/XMLSchema}int - # arg2 {http://www.w3.org/2001/XMLSchema}long - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}short - # - # RAISES - # N/A - # - def op24( arg0, arg1, arg2 ) - STDOUT.puts("op24\n") - if (!(arg0 == -100)); STDOUT.puts("arg0 value error in op24\n"); end - if (!(arg1 == -100000)); STDOUT.puts("arg1 value error in op24\n"); end - if (!(arg2 == -10000000000)); STDOUT.puts("arg2 value error in op24\n"); end - _ret = SOAPShort.new(-200) - return(_ret) - end - - # SYNOPSIS - # op25( arg0, arg1, arg2 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}int - # arg1 {http://www.w3.org/2001/XMLSchema}long - # arg2 {http://www.w3.org/2001/XMLSchema}float - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}int - # - # RAISES - # N/A - # - def op25( arg0, arg1, arg2 ) - STDOUT.puts("op25\n") - if (!(arg0 == -100000)); STDOUT.puts("arg0 value error in op25\n"); end - if (!(arg1 == -10000000000)); STDOUT.puts("arg1 value error in op25\n"); end - if (!(arg2 == 0.123)); STDOUT.puts("arg2 value error in op25\n"); end - _ret = SOAPInt.new( -200000 ) - return(_ret) - end - - # SYNOPSIS - # op26( arg0, arg1, arg2 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}long - # arg1 {http://www.w3.org/2001/XMLSchema}float - # arg2 {http://www.w3.org/2001/XMLSchema}double - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}long - # - # RAISES - # N/A - # - def op26( arg0, arg1, arg2 ) - STDOUT.puts("op26\n") - if (!(arg0 == -10000000000)); STDOUT.puts("arg0 value error in op26\n"); end - if (!(arg1 == 0.123)); STDOUT.puts("arg1 value error in op26\n"); end - if (!(arg2 == 0.12e3)); STDOUT.puts("arg2 value error in op26\n"); end - _ret = SOAPLong.new( -20000000000 ) - return(_ret) - end - - # SYNOPSIS - # op27( arg0, arg1, arg2 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}float - # arg1 {http://www.w3.org/2001/XMLSchema}double - # arg2 {http://www.w3.org/2001/XMLSchema}string - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}float - # - # RAISES - # N/A - # - def op27( arg0, arg1, arg2 ) - STDOUT.puts("op27\n") - if (!(arg0 == 0.123)); STDOUT.puts("arg0 value error in op27\n"); end - if (!(arg1 == 0.12e3)); STDOUT.puts("arg1 value error in op27\n"); end - if (!(arg2 == "abc")); STDOUT.puts("arg2 value error in op27\n"); end - _ret = SOAPFloat.new(1.234) - return(_ret) - end - - # SYNOPSIS - # op28( arg0, arg1, arg2 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}double - # arg1 {http://www.w3.org/2001/XMLSchema}string - # arg2 {http://www.w3.org/2001/XMLSchema}boolean - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}double - # - # RAISES - # N/A - # - def op28( arg0, arg1, arg2 ) - STDOUT.puts("op28\n") - if (!(arg0 == 0.12e3)); STDOUT.puts("arg0 value error in op28\n"); end - if (!(arg1 == "abc")); STDOUT.puts("arg1 value error in op28\n"); end - if (!(arg2 == false)); STDOUT.puts("arg2 value error in op28\n"); end - _ret = 1.23e4 - return(_ret) - end - - # SYNOPSIS - # op29( arg0, arg1 ) - # - # ARGS - # arg0 {http://www.w3.org/2001/XMLSchema}string - # arg1 {http://www.w3.org/2001/XMLSchema}boolean - # - # RETURNS - # result {http://www.w3.org/2001/XMLSchema}string - # - # RAISES - # N/A - # - def op29( arg0, arg1 ) - STDOUT.puts("op29\n") - if (!(arg0 == "abc")); STDOUT.puts("arg0 value error in op29\n"); end - if (!(arg1 == false)); STDOUT.puts("arg1 value error in op29\n"); end - _ret = "def" - return(_ret) - end - - # SYNOPSIS - # op30( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}C_struct - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}C_struct - # - # RAISES - # N/A - # - def op30( arg0 ) - STDOUT.puts("op30\n") - if (!comp_0012(arg0)); STDOUT.puts("arg0 value error in op30\n"); end - _ret = cons_0007() - return(_ret) - end - - # SYNOPSIS - # op31( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfboolean - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfboolean - # - # RAISES - # N/A - # - def op31( arg0 ) - STDOUT.puts("op31\n") - if (!(true && (arg0[0] == false) && (arg0[1] == false))); STDOUT.puts("arg0 value error in op31\n"); end - _ret = ArrayOfboolean[true, true] - return(_ret) - end - - # SYNOPSIS - # op34( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfshort - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfshort - # - # RAISES - # N/A - # - def op34( arg0 ) - STDOUT.puts("op34\n") - if (!(true && (arg0[0] == -100) && (arg0[1] == -100))); STDOUT.puts("arg0 value error in op34\n"); end - _ret = ArrayOfshort[-200, -200] - return(_ret) - end - - # SYNOPSIS - # op35( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfint - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfint - # - # RAISES - # N/A - # - def op35( arg0 ) - STDOUT.puts("op35\n") - if (!(true && (arg0[0] == -100000) && (arg0[1] == -100000))); STDOUT.puts("arg0 value error in op35\n"); end - _ret = ArrayOfint[-200000, -200000] - return(_ret) - end - - # SYNOPSIS - # op36( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOflong - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOflong - # - # RAISES - # N/A - # - def op36( arg0 ) - STDOUT.puts("op36\n") - if (!(true && (arg0[0] == -10000000000) && (arg0[1] == -10000000000))); STDOUT.puts("arg0 value error in op36\n"); end - _ret = ArrayOflong[-20000000000, -20000000000] - return(_ret) - end - - # SYNOPSIS - # op37( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOffloat - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOffloat - # - # RAISES - # N/A - # - def op37( arg0 ) - STDOUT.puts("op37\n") - if (!(true && (arg0[0] == 0.123) && (arg0[1] == 0.123))); STDOUT.puts("arg0 value error in op37\n"); end - _ret = ArrayOffloat[1.234, 1.234] - return(_ret) - end - - # SYNOPSIS - # op38( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfdouble - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfdouble - # - # RAISES - # N/A - # - def op38( arg0 ) - STDOUT.puts("op38\n") - if (!(true && (arg0[0] == 0.12e3) && (arg0[1] == 0.12e3))); STDOUT.puts("arg0 value error in op38\n"); end - _ret = ArrayOfdouble[1.23e4, 1.23e4] - return(_ret) - end - - # SYNOPSIS - # op39( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfstring - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfstring - # - # RAISES - # N/A - # - def op39( arg0 ) - STDOUT.puts("op39\n") - if (!(true && (arg0[0] == "abc") && (arg0[1] == "abc"))); STDOUT.puts("arg0 value error in op39\n"); end - _ret = ArrayOfstring["def", "def"] - return(_ret) - end - - # SYNOPSIS - # op40( arg0, arg1, arg2, arg3, arg4 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}C_struct - # arg1 {http://dopg.gr.jp/sm11.xsd}ArrayOfboolean - # arg2 {http://dopg.gr.jp/sm11.xsd}ArrayOfint - # arg3 {http://dopg.gr.jp/sm11.xsd}ArrayOfdouble - # arg4 {http://dopg.gr.jp/sm11.xsd}ArrayOfstring - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op40( arg0, arg1, arg2, arg3, arg4 ) - STDOUT.puts("op40\n") - if (!comp_0013(arg0)); STDOUT.puts("arg0 value error in op40\n"); end - if (!(true && (arg1[0] == false) && (arg1[1] == false))); STDOUT.puts("arg1 value error in op40\n"); end - if (!(true && (arg2[0] == -100000) && (arg2[1] == -100000))); STDOUT.puts("arg2 value error in op40\n"); end - if (!(true && (arg3[0] == 0.12e3) && (arg3[1] == 0.12e3))); STDOUT.puts("arg3 value error in op40\n"); end - if (!(true && (arg4[0] == "abc") && (arg4[1] == "abc"))); STDOUT.puts("arg4 value error in op40\n"); end - return - end - - # SYNOPSIS - # op41( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}F_struct - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}F_struct - # - # RAISES - # N/A - # - def op41( arg0 ) - STDOUT.puts("op41\n") - if (!comp_0014(arg0)); STDOUT.puts("arg0 value error in op41\n"); end - _ret = cons_0008() - return(_ret) - end - - # SYNOPSIS - # op42( arg0 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}ArrayOfC_struct - # - # RETURNS - # result {http://dopg.gr.jp/sm11.xsd}ArrayOfC_struct - # - # RAISES - # N/A - # - def op42( arg0 ) - STDOUT.puts("op42\n") - if (!(true && comp_0016(arg0[0]) && comp_0016(arg0[1]))); STDOUT.puts("arg0 value error in op42\n"); end - _ret = ArrayOfC_struct[cons_0010(), cons_0010()] - return(_ret) - end - - # SYNOPSIS - # op43( arg0, arg1 ) - # - # ARGS - # arg0 {http://dopg.gr.jp/sm11.xsd}F_struct - # arg1 {http://dopg.gr.jp/sm11.xsd}ArrayOfC_struct - # - # RETURNS - # N/A - # - # RAISES - # N/A - # - def op43( arg0, arg1 ) - STDOUT.puts("op43\n") - if (!comp_0017(arg0)); STDOUT.puts("arg0 value error in op43\n"); end - if (!(true && comp_0018(arg1[0]) && comp_0018(arg1[1]))); STDOUT.puts("arg1 value error in op43\n"); end - return - end - - # SYNOPSIS - # excop1 - # - # ARGS - # N/A - # - # RETURNS - # N/A - # - # RAISES - # arg0 {http://dopg.gr.jp/sm11.xsd}A_except - # - def excop1 - STDOUT.puts("excop1\n") - _exc = cons_0011() - raise(_exc) - end - - # SYNOPSIS - # excop2 - # - # ARGS - # N/A - # - # RETURNS - # N/A - # - # RAISES - # arg0 {http://dopg.gr.jp/sm11.xsd}C_except - # - def excop2 - STDOUT.puts("excop2\n") - _exc = cons_0012() - raise(_exc) - end - - # SYNOPSIS - # excop3 - # - # ARGS - # N/A - # - # RETURNS - # N/A - # - # RAISES - # arg0 {http://dopg.gr.jp/sm11.xsd}F_except1 - # - def excop3 - STDOUT.puts("excop3\n") - _exc = cons_0014() - raise(_exc) - end - - # SYNOPSIS - # excop4 - # - # ARGS - # N/A - # - # RETURNS - # N/A - # - # RAISES - # arg0 {http://dopg.gr.jp/sm11.xsd}F_except2 - # - def excop4 - STDOUT.puts("excop4\n") - _exc = cons_0017() - raise(_exc) - end - - - require 'soap/rpcUtils' - MappingRegistry = SOAP::RPCUtils::MappingRegistry.new - - MappingRegistry.set( - C_struct, - ::SOAP::SOAPStruct, - ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, - [ "http://dopg.gr.jp/sm11.xsd", "C_struct" ] - ) - MappingRegistry.set( - ArrayOfboolean, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "boolean" ] - ) - MappingRegistry.set( - ArrayOfshort, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "short" ] - ) - MappingRegistry.set( - ArrayOfint, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "int" ] - ) - MappingRegistry.set( - ArrayOflong, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "long" ] - ) - MappingRegistry.set( - ArrayOffloat, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "float" ] - ) - MappingRegistry.set( - ArrayOfdouble, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "double" ] - ) - MappingRegistry.set( - ArrayOfstring, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://www.w3.org/2001/XMLSchema", "string" ] - ) - MappingRegistry.set( - F_struct, - ::SOAP::SOAPStruct, - ::SOAP::RPCUtils::MappingRegistry::TypedStructFactory, - [ "http://dopg.gr.jp/sm11.xsd", "F_struct" ] - ) - MappingRegistry.set( - ArrayOfC_struct, - ::SOAP::SOAPArray, - ::SOAP::RPCUtils::MappingRegistry::TypedArrayFactory, - [ "http://dopg.gr.jp/sm11.xsd", "C_struct" ] - ) - - Methods = [ - [ "op0", "op0", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op1", "op1", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op4", "op4", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op5", "op5", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op6", "op6", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op7", "op7", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op8", "op8", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op9", "op9", [ [ "in", "arg0" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op11", "op11", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op14", "op14", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op15", "op15", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op16", "op16", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op17", "op17", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op18", "op18", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op19", "op19", [ [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op21", "op21", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op24", "op24", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op25", "op25", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op26", "op26", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op27", "op27", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op28", "op28", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op29", "op29", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op30", "op30", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op31", "op31", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op34", "op34", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op35", "op35", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op36", "op36", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op37", "op37", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op38", "op38", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op39", "op39", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op40", "op40", [ [ "in", "arg0" ], [ "in", "arg1" ], [ "in", "arg2" ], [ "in", "arg3" ], [ "in", "arg4" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op41", "op41", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op42", "op42", [ [ "in", "arg0" ], [ "retval", "result" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "op43", "op43", [ [ "in", "arg0" ], [ "in", "arg1" ] ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop1", "excop1", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop2", "excop2", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop3", "excop3", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ], - [ "excop4", "excop4", [ ], "http://dopg.gr.jp/sm11", "http://dopg.gr.jp/sm11" ] - ] - -private - - def comp_0012(_v1) - return(true && - (! _v1.e_boolean()) && - (_v1.e_short == -100) && - (_v1.e_int == -100000) && - (_v1.e_long == -10000000000) && - (_v1.e_float == 0.123) && - (_v1.e_double == 0.12e3) && - (_v1.e_String == "abc") - ) - end - def cons_0007() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def comp_0013(_v1) - return(true && - (! _v1.e_boolean()) && - (_v1.e_short == -100) && - (_v1.e_int == -100000) && - (_v1.e_long == -10000000000) && - (_v1.e_float == 0.123) && - (_v1.e_double == 0.12e3) && - (_v1.e_String == "abc") - ) - end - def comp_0015(_v1) - return(true && - (! _v1.e_boolean()) && - (_v1.e_short == -100) && - (_v1.e_int == -100000) && - (_v1.e_long == -10000000000) && - (_v1.e_float == 0.123) && - (_v1.e_double == 0.12e3) && - (_v1.e_String == "abc") - ) - end - def comp_0014(_v1) - return(true && - comp_0015(_v1.e_c_struct) && - (true && (_v1.e_c_array_e_boolean[0] == false) && (_v1.e_c_array_e_boolean[1] == false)) && - (true && (_v1.e_c_array_e_short[0] == -100) && (_v1.e_c_array_e_short[1] == -100)) && - (true && (_v1.e_c_array_e_int[0] == -100000) && (_v1.e_c_array_e_int[1] == -100000)) && - (true && (_v1.e_c_array_e_long[0] == -10000000000) && (_v1.e_c_array_e_long[1] == -10000000000)) && - (true && (_v1.e_c_array_e_float[0] == 0.123) && (_v1.e_c_array_e_float[1] == 0.123)) && - (true && (_v1.e_c_array_e_double[0] == 0.12e3) && (_v1.e_c_array_e_double[1] == 0.12e3)) && - (true && (_v1.e_c_array_e_String[0] == "abc") && (_v1.e_c_array_e_String[1] == "abc")) - ) - end - def cons_0009() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def cons_0008() - _v1 = F_struct.new() - _v1.e_c_struct = cons_0009() - _v1.e_c_array_e_boolean = ArrayOfboolean[true, true] - _v1.e_c_array_e_short = ArrayOfshort[-200, -200] - _v1.e_c_array_e_int = ArrayOfint[-200000, -200000] - _v1.e_c_array_e_long = ArrayOflong[-20000000000, -20000000000] - _v1.e_c_array_e_float = ArrayOffloat[1.234, 1.234] - _v1.e_c_array_e_double = ArrayOfdouble[1.23e4, 1.23e4] - _v1.e_c_array_e_String = ArrayOfstring["def", "def"] - return(_v1) - end - def comp_0016(_v1) - return(true && - (! _v1.e_boolean()) && - (_v1.e_short == -100) && - (_v1.e_int == -100000) && - (_v1.e_long == -10000000000) && - (_v1.e_float == 0.123) && - (_v1.e_double == 0.12e3) && - (_v1.e_String == "abc") - ) - end - def cons_0010() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def comp_0018(_v1) - return(true && - (! _v1.e_boolean()) && - (_v1.e_short == -100) && - (_v1.e_int == -100000) && - (_v1.e_long == -10000000000) && - (_v1.e_float == 0.123) && - (_v1.e_double == 0.12e3) && - (_v1.e_String == "abc") - ) - end - def comp_0017(_v1) - return(true && - comp_0018(_v1.e_c_struct) && - (true && (_v1.e_c_array_e_boolean[0] == false) && (_v1.e_c_array_e_boolean[1] == false)) && - (true && (_v1.e_c_array_e_short[0] == -100) && (_v1.e_c_array_e_short[1] == -100)) && - (true && (_v1.e_c_array_e_int[0] == -100000) && (_v1.e_c_array_e_int[1] == -100000)) && - (true && (_v1.e_c_array_e_long[0] == -10000000000) && (_v1.e_c_array_e_long[1] == -10000000000)) && - (true && (_v1.e_c_array_e_float[0] == 0.123) && (_v1.e_c_array_e_float[1] == 0.123)) && - (true && (_v1.e_c_array_e_double[0] == 0.12e3) && (_v1.e_c_array_e_double[1] == 0.12e3)) && - (true && (_v1.e_c_array_e_String[0] == "abc") && (_v1.e_c_array_e_String[1] == "abc")) - ) - end - def cons_0011() - _v1 = A_except.new() - _v1.v1 = true - _v1.v4 = SOAPShort.new(-200) - _v1.v5 = SOAPInt.new(-200000) - _v1.v6 = SOAPLong.new(-20000000000) - _v1.v7 = SOAPFloat.new(1.234) - _v1.v8 = 1.23e4 - _v1.v9 = "def" - return(_v1) - end - def cons_0013() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def cons_0012() - _v1 = C_except.new() - _v1.v10 = cons_0013() - _v1.v21 = ArrayOfboolean[true, true] - _v1.v24 = ArrayOfshort[-200, -200] - _v1.v25 = ArrayOfint[-200000, -200000] - _v1.v26 = ArrayOflong[-20000000000, -20000000000] - _v1.v27 = ArrayOffloat[1.234, 1.234] - _v1.v28 = ArrayOfdouble[1.23e4, 1.23e4] - _v1.v29 = ArrayOfstring["def", "def"] - return(_v1) - end - def cons_0016() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def cons_0015() - _v1 = F_struct.new() - _v1.e_c_struct = cons_0016() - _v1.e_c_array_e_boolean = ArrayOfboolean[true, true] - _v1.e_c_array_e_short = ArrayOfshort[-200, -200] - _v1.e_c_array_e_int = ArrayOfint[-200000, -200000] - _v1.e_c_array_e_long = ArrayOflong[-20000000000, -20000000000] - _v1.e_c_array_e_float = ArrayOffloat[1.234, 1.234] - _v1.e_c_array_e_double = ArrayOfdouble[1.23e4, 1.23e4] - _v1.e_c_array_e_String = ArrayOfstring["def", "def"] - return(_v1) - end - def cons_0014() - _v1 = F_except1.new() - _v1.v40 = cons_0015() - return(_v1) - end - def cons_0018() - _v1 = C_struct.new() - _v1.e_boolean = true - _v1.e_short = SOAPShort.new(-200) - _v1.e_int = SOAPInt.new(-200000) - _v1.e_long = SOAPLong.new(-20000000000) - _v1.e_float = SOAPFloat.new(1.234) - _v1.e_double = 1.23e4 - _v1.e_String = "def" - return(_v1) - end - def cons_0017() - _v1 = F_except2.new() - _v1.v50 = ArrayOfC_struct[cons_0018(), cons_0018()] - return(_v1) - end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/sm11/server.rb b/vendor/gems/soap4r-1.5.8/test/sm11/server.rb deleted file mode 100644 index 275b011f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/sm11/server.rb +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env ruby - -$KCODE = "UTF8" # Set $KCODE before loading 'soap/xmlparser'. - -require 'soap/standaloneServer' -require 'servant' - -class App < SOAP::StandaloneServer - def initialize( *arg ) - super( *arg ) - - # Explicit definition - servant = Sm11PortType.new - Sm11PortType::Methods.each do | methodNameAs, methodName, params, soapAction, namespace | - addMethodWithNSAs( namespace, servant, methodName, methodNameAs, params, soapAction ) - end - # Easy way to add all methods. - addServant( Sm11PortType.new ) - - self.mappingRegistry = Sm11PortType::MappingRegistry - self.level = Logger::Severity::ERROR - end -end - -App.new( 'App', nil, '0.0.0.0', 10080 ).start diff --git a/vendor/gems/soap4r-1.5.8/test/soap/asp.net/hello.wsdl b/vendor/gems/soap4r-1.5.8/test/soap/asp.net/hello.wsdl deleted file mode 100644 index b94129c1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/asp.net/hello.wsdl +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/soap/asp.net/test_aspdotnet.rb b/vendor/gems/soap4r-1.5.8/test/soap/asp.net/test_aspdotnet.rb deleted file mode 100644 index b0cd8d12..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/asp.net/test_aspdotnet.rb +++ /dev/null @@ -1,123 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/rpc/driver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP; module ASPDotNet - - -class TestASPDotNet < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = "http://localhost/WebService/" - - def on_init - add_document_method( - self, - Namespace + 'SayHello', - 'sayHello', - XSD::QName.new(Namespace, 'SayHello'), - XSD::QName.new(Namespace, 'SayHelloResponse') - ) - end - - def sayHello(arg) - name = arg['name'] - "Hello #{name}" - end - end - - Port = 17171 - Endpoint = "http://localhost:#{Port}/" - - def setup - setup_server - @client = nil - end - - def teardown - teardown_server if @server - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def test_document_method - @client = SOAP::RPC::Driver.new(Endpoint, Server::Namespace) - @client.wiredump_dev = STDOUT if $DEBUG - @client.add_document_method('sayHello', Server::Namespace + 'SayHello', - XSD::QName.new(Server::Namespace, 'SayHello'), - XSD::QName.new(Server::Namespace, 'SayHelloResponse')) - assert_equal("Hello Mike", @client.sayHello(:name => "Mike")) - end - - def test_xml - @client = SOAP::RPC::Driver.new(Endpoint, Server::Namespace) - @client.wiredump_dev = STDOUT if $DEBUG - @client.add_document_method('sayHello', Server::Namespace + 'SayHello', - XSD::QName.new(Server::Namespace, 'SayHello'), - XSD::QName.new(Server::Namespace, 'SayHelloResponse')) - require 'rexml/document' - xml = <<__XML__ - - Mike - -__XML__ - ele = REXML::Document.new(xml) - assert_equal("Hello Mike", @client.sayHello(ele)) - def xml.to_xmlpart; to_s; end - assert_equal("Hello Mike", @client.sayHello(xml)) - end - - def test_aspdotnethandler - @client = SOAP::RPC::Driver.new(Endpoint, Server::Namespace) - @client.wiredump_dev = STDOUT if $DEBUG - @client.add_method_with_soapaction('sayHello', Server::Namespace + 'SayHello', 'name') - @client.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace - assert_equal("Hello Mike", @client.sayHello("Mike")) - end - - if defined?(HTTPClient) - - # qualified! - REQUEST_ASPDOTNETHANDLER = -%q[ - - - - Mike - - -] - - def test_aspdotnethandler_envelope - @client = SOAP::RPC::Driver.new(Endpoint, Server::Namespace) - @client.wiredump_dev = str = '' - @client.add_method_with_soapaction('sayHello', Server::Namespace + 'SayHello', 'name') - @client.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace - assert_equal("Hello Mike", @client.sayHello("Mike")) - assert_equal(REQUEST_ASPDOTNETHANDLER, parse_requestxml(str), - [REQUEST_ASPDOTNETHANDLER, parse_requestxml(str)].join("\n\n")) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end - - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/auth/htdigest b/vendor/gems/soap4r-1.5.8/test/soap/auth/htdigest deleted file mode 100644 index 55893eab..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/auth/htdigest +++ /dev/null @@ -1,2 +0,0 @@ -admin:auth:4302fe65caa32f27721949149ccd3083 -guest:auth:402550d83a8289be65377d0e7d11fb6e diff --git a/vendor/gems/soap4r-1.5.8/test/soap/auth/htpasswd b/vendor/gems/soap4r-1.5.8/test/soap/auth/htpasswd deleted file mode 100644 index 70df50c9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/auth/htpasswd +++ /dev/null @@ -1,2 +0,0 @@ -admin:Qg266hq/YYKe2 -guest:gbPc4vPCH.h12 diff --git a/vendor/gems/soap4r-1.5.8/test/soap/auth/test_basic.rb b/vendor/gems/soap4r-1.5.8/test/soap/auth/test_basic.rb deleted file mode 100644 index b0cbf420..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/auth/test_basic.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'webrick' -require 'webrick/httpproxy' -require 'logger' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP; module Auth - - -class TestBasic < Test::Unit::TestCase - Port = 17171 - ProxyPort = 17172 - - def setup - @logger = Logger.new(STDERR) - @logger.level = Logger::Severity::FATAL - @url = "http://localhost:#{Port}/" - @proxyurl = "http://localhost:#{ProxyPort}/" - @server = @proxyserver = @client = nil - @server_thread = @proxyserver_thread = nil - setup_server - setup_client - end - - def teardown - teardown_client if @server - teardown_proxyserver if @proxyserver - teardown_server if @client - end - - def setup_server - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)) - ) - htpasswd = File.join(File.dirname(__FILE__), 'htpasswd') - htpasswd_userdb = WEBrick::HTTPAuth::Htpasswd.new(htpasswd) - @basic_auth = WEBrick::HTTPAuth::BasicAuth.new( - :Logger => @logger, - :Realm => 'auth', - :UserDB => htpasswd_userdb - ) - @server.mount( - '/', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc).to_proc) - ) - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_proxyserver - @proxyserver = WEBrick::HTTPProxyServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => ProxyPort, - :AccessLog => [] - ) - @proxyserver_thread = TestUtil.start_server_thread(@proxyserver) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, '') - @client.add_method("do_server_proc") - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_proxyserver - @proxyserver.shutdown - @proxyserver_thread.kill - @proxyserver_thread.join - end - - def teardown_client - @client.reset_stream - end - - def do_server_proc(req, res) - @basic_auth.authenticate(req, res) - res['content-type'] = 'text/xml' - res.body = <<__EOX__ - - - - - OK - - - -__EOX__ - end - - def test_direct - @client.wiredump_dev = STDOUT if $DEBUG - @client.options["protocol.http.auth"] << [@url, "admin", "admin"] - assert_equal("OK", @client.do_server_proc) - end - - def test_proxy - setup_proxyserver - @client.wiredump_dev = STDOUT if $DEBUG - @client.options["protocol.http.proxy"] = @proxyurl - @client.options["protocol.http.auth"] << [@url, "guest", "guest"] - assert_equal("OK", @client.do_server_proc) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/auth/test_digest.rb b/vendor/gems/soap4r-1.5.8/test/soap/auth/test_digest.rb deleted file mode 100644 index 4df4660f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/auth/test_digest.rb +++ /dev/null @@ -1,118 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'webrick' -require 'webrick/httpproxy' -require 'logger' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP; module Auth - - -class TestDigest < Test::Unit::TestCase - Port = 17171 - ProxyPort = 17172 - - def setup - @logger = Logger.new(STDERR) - @logger.level = Logger::Severity::FATAL - @url = "http://localhost:#{Port}/" - @proxyurl = "http://localhost:#{ProxyPort}/" - @server = @proxyserver = @client = nil - @server_thread = @proxyserver_thread = nil - setup_server - setup_client - end - - def teardown - teardown_client if @client - teardown_proxyserver if @proxyserver - teardown_server if @server - end - - def setup_server - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)) - ) - htdigest = File.join(File.dirname(__FILE__), 'htdigest') - htdigest_userdb = WEBrick::HTTPAuth::Htdigest.new(htdigest) - @digest_auth = WEBrick::HTTPAuth::DigestAuth.new( - :Logger => @logger, - :Algorithm => 'MD5', - :Realm => 'auth', - :UserDB => htdigest_userdb - ) - @server.mount( - '/', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc).to_proc) - ) - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_proxyserver - @proxyserver = WEBrick::HTTPProxyServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => ProxyPort, - :AccessLog => [] - ) - @proxyserver_thread = TestUtil.start_server_thread(@proxyserver) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, '') - @client.add_method("do_server_proc") - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_proxyserver - @proxyserver.shutdown - @proxyserver_thread.kill - @proxyserver_thread.join - end - - def teardown_client - @client.reset_stream - end - - def do_server_proc(req, res) - @digest_auth.authenticate(req, res) - res['content-type'] = 'text/xml' - res.body = <<__EOX__ - - - - - OK - - - -__EOX__ - end - - def test_direct - @client.wiredump_dev = STDOUT if $DEBUG - @client.options["protocol.http.auth"] << [@url, "admin", "admin"] - assert_equal("OK", @client.do_server_proc) - end - - def test_proxy - setup_proxyserver - @client.wiredump_dev = STDOUT if $DEBUG - @client.options["protocol.http.proxy"] = @proxyurl - @client.options["protocol.http.auth"] << [@url, "guest", "guest"] - assert_equal("OK", @client.do_server_proc) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/calc.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/calc.rb deleted file mode 100644 index 6bc78803..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/calc.rb +++ /dev/null @@ -1,17 +0,0 @@ -module CalcService - def self.add(lhs, rhs) - lhs + rhs - end - - def self.sub(lhs, rhs) - lhs - rhs - end - - def self.multi(lhs, rhs) - lhs * rhs - end - - def self.div(lhs, rhs) - lhs / rhs - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/calc2.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/calc2.rb deleted file mode 100644 index 69495730..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/calc2.rb +++ /dev/null @@ -1,29 +0,0 @@ -class CalcService2 - def initialize(value = 0) - @value = value - end - - def set_value(value) - @value = value - end - - def get_value - @value - end - - def +(rhs) - @value + rhs - end - - def -(rhs) - @value - rhs - end - - def *(rhs) - @value * rhs - end - - def /(rhs) - @value / rhs - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/server.cgi b/vendor/gems/soap4r-1.5.8/test/soap/calc/server.cgi deleted file mode 100644 index 1eb0d1d8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/server.cgi +++ /dev/null @@ -1,13 +0,0 @@ -require 'soap/rpc/cgistub' - -class CalcServer < SOAP::RPC::CGIStub - def initialize(*arg) - super - - require 'calc' - servant = CalcService - add_servant(servant, 'http://tempuri.org/calcService') - end -end - -status = CalcServer.new('CalcServer', nil).start diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/server.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/server.rb deleted file mode 100644 index a93774d9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/server.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -require 'soap/rpc/standaloneServer' -require 'calc' - -class CalcServer < SOAP::RPC::StandaloneServer - def initialize(*arg) - super - - servant = CalcService - add_servant(servant, 'http://tempuri.org/calcService') - end -end - -if $0 == __FILE__ - status = CalcServer.new('CalcServer', nil, '0.0.0.0', 17171).start -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/server2.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/server2.rb deleted file mode 100644 index 01c6d752..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/server2.rb +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env ruby - -require 'soap/rpc/standaloneServer' -require 'calc2' - -class CalcServer2 < SOAP::RPC::StandaloneServer - def on_init - servant = CalcService2.new - add_method(servant, 'set_value', 'newValue') - add_method(servant, 'get_value') - add_method_as(servant, '+', 'add', 'lhs') - add_method_as(servant, '-', 'sub', 'lhs') - add_method_as(servant, '*', 'multi', 'lhs') - add_method_as(servant, '/', 'div', 'lhs') - end -end - -if $0 == __FILE__ - status = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 17171).start -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc.rb deleted file mode 100644 index 7976bfbf..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'server.rb' - - -module SOAP -module Calc - - -class TestCalc < Test::Unit::TestCase - Port = 17171 - - def setup - @server = CalcServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @calc = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService') - @calc.add_method('add', 'lhs', 'rhs') - @calc.add_method('sub', 'lhs', 'rhs') - @calc.add_method('multi', 'lhs', 'rhs') - @calc.add_method('div', 'lhs', 'rhs') - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @calc.reset_stream if @calc - end - - def test_calc - assert_equal(3, @calc.add(1, 2)) - assert_equal(-1.1, @calc.sub(1.1, 2.2)) - assert_equal(2.42, @calc.multi(1.1, 2.2)) - assert_equal(2, @calc.div(5, 2)) - assert_equal(2.5, @calc.div(5.0, 2)) - assert_equal(1.0/0.0, @calc.div(1.1, 0)) - assert_raises(ZeroDivisionError) do - @calc.div(1, 0) - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc2.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc2.rb deleted file mode 100644 index 277600b3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc2.rb +++ /dev/null @@ -1,55 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'server2.rb' - - -module SOAP -module Calc - - -class TestCalc2 < Test::Unit::TestCase - Port = 17171 - - def setup - @server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @var = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService') - @var.wiredump_dev = STDERR if $DEBUG - @var.add_method('set_value', 'newValue') - @var.add_method('get_value') - @var.add_method_as('+', 'add', 'rhs') - @var.add_method_as('-', 'sub', 'rhs') - @var.add_method_as('*', 'multi', 'rhs') - @var.add_method_as('/', 'div', 'rhs') - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @var.reset_stream if @var - end - - def test_calc2 - assert_equal(1, @var.set_value(1)) - assert_equal(3, @var + 2) - assert_equal(-1.2, @var - 2.2) - assert_equal(2.2, @var * 2.2) - assert_equal(0, @var / 2) - assert_equal(0.5, @var / 2.0) - assert_raises(ZeroDivisionError) do - @var / 0 - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc_cgi.rb b/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc_cgi.rb deleted file mode 100644 index 4f248f85..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/calc/test_calc_cgi.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'logger' -require 'webrick' -require 'rbconfig' - - -module SOAP -module Calc - - -class TestCalcCGI < Test::Unit::TestCase - # This test shuld be run after installing ruby. - RUBYBIN = File.join( - Config::CONFIG["bindir"], - Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"] - ) - RUBYBIN << " -d" if $DEBUG - - Port = 17171 - - def setup - logger = Logger.new(STDERR) - logger.level = Logger::Severity::ERROR - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)), - :CGIPathEnv => ENV['PATH'], - :CGIInterpreter => RUBYBIN - ) - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - @endpoint = "http://localhost:#{Port}/server.cgi" - @calc = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService') - @calc.wiredump_dev = STDERR if $DEBUG - @calc.add_method('add', 'lhs', 'rhs') - @calc.add_method('sub', 'lhs', 'rhs') - @calc.add_method('multi', 'lhs', 'rhs') - @calc.add_method('div', 'lhs', 'rhs') - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @calc.reset_stream if @calc - end - - def test_calc_cgi - assert_equal(3, @calc.add(1, 2)) - assert_equal(-1.1, @calc.sub(1.1, 2.2)) - assert_equal(2.42, @calc.multi(1.1, 2.2)) - assert_equal(2, @calc.div(5, 2)) - assert_equal(2.5, @calc.div(5.0, 2)) - assert_equal(1.0/0.0, @calc.div(1.1, 0)) - assert_raises(ZeroDivisionError) do - @calc.div(1, 0) - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/case/test_mapping.rb b/vendor/gems/soap4r-1.5.8/test/soap/case/test_mapping.rb deleted file mode 100644 index 3f29acba..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/case/test_mapping.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'test/unit' -require 'soap/marshal' - - -module SOAP; module Case - -# {urn:TruckMateTypes}TTMHeader -class TTMHeader - @@schema_type = "TTMHeader" - @@schema_ns = "urn:TruckMateTypes" - @@schema_element = [ - ["dSN", ["SOAP::SOAPString", XSD::QName.new(nil, "DSN")]], - ["password", ["SOAP::SOAPString", XSD::QName.new(nil, "Password")]], - ["schema", ["SOAP::SOAPString", XSD::QName.new(nil, "Schema")]], - ["username", ["SOAP::SOAPString", XSD::QName.new(nil, "Username")]] - ] - - attr_accessor :dSN - attr_accessor :password - attr_accessor :schema - attr_accessor :username - - def initialize(dSN = nil, password = nil, schema = nil, username = nil) - @dSN = dSN - @password = password - @schema = schema - @username = username - end -end - - -class TestMapping < Test::Unit::TestCase - def test_mapping - dump = <<__XML__.chomp - - - - - dsn - password - schema - username - - - -__XML__ - o = TTMHeader.new("dsn", "password", "schema", "username") - assert_equal(dump, SOAP::Marshal.dump(o)) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/fault/test_customfault.rb b/vendor/gems/soap4r-1.5.8/test/soap/fault/test_customfault.rb deleted file mode 100644 index 1714f107..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/fault/test_customfault.rb +++ /dev/null @@ -1,60 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' - - -module SOAP -module Fault - - -class TestCustomFault < Test::Unit::TestCase - Port = 17171 - - class CustomFaultServer < SOAP::RPC::StandaloneServer - def on_init - add_method(self, 'fault', 'msg') - end - - def fault(msg) - SOAPFault.new(SOAPString.new("mycustom"), - SOAPString.new("error: #{msg}"), - SOAPString.new(self.class.name)) - end - end - - def setup - @server = CustomFaultServer.new('customfault', 'urn:customfault', '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint, 'urn:customfault') - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method("fault", "msg") - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - def test_custom_fault - begin - @client.fault("message") - assert(false, 'exception not raised') - rescue SOAP::FaultError => e - assert(true, 'exception raised') - assert_equal('error: message', e.message) - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/fault/test_soaparray.rb b/vendor/gems/soap4r-1.5.8/test/soap/fault/test_soaparray.rb deleted file mode 100644 index 449e4ada..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/fault/test_soaparray.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'soap/rpc/router' -require 'soap/mapping/mapping' -require 'soap/processor' -require 'test/unit' - - -module SOAP -module Fault - - -class TestSOAPArray < Test::Unit::TestCase - - # simulate the soap fault creation and parsing on the client - def test_parse_fault - router = SOAP::RPC::Router.new('parse_SOAPArray_error') - soap_fault = pump_stack rescue router.create_fault_response($!) - env = SOAP::Processor.unmarshal(soap_fault.send_string) - soap_fault = SOAP::FaultError.new(env.body.fault) - # in literal service, RuntimeError is raised (not an ArgumentError) - # any chance to use Ruby's exception encoding in literal service? - assert_raises(RuntimeError) do - registry = SOAP::Mapping::LiteralRegistry.new - SOAP::Mapping.fault2exception(soap_fault, registry) - end - end - - def pump_stack(max = 0) - raise ArgumentError if max > 10 - pump_stack(max+1) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/filter/test_filter.rb b/vendor/gems/soap4r-1.5.8/test/soap/filter/test_filter.rb deleted file mode 100644 index 5bafbb0f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/filter/test_filter.rb +++ /dev/null @@ -1,146 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' -require 'soap/filter' - - -module SOAP -module Filter - - -class TestFilter < Test::Unit::TestCase - Port = 17171 - PortName = 'http://tempuri.org/filterPort' - - class FilterTestServer < SOAP::RPC::StandaloneServer - class Servant - def self.create - new - end - - def echo(amt) - amt - end - end - - class ServerFilter1 < SOAP::Filter::Handler - # 15 -> 30 - def on_outbound(envelope, opt) - unless envelope.body.is_fault - node = envelope.body.root_node - node.retval = SOAPInt.new(node.retval.data * 2) - node.elename = XSD::QName.new(nil, 'return') - end - envelope - end - - # 4 -> 5 - def on_inbound(xml, opt) - xml = xml.sub(/4/, '5') - xml - end - end - - class ServerFilter2 < SOAP::Filter::Handler - # 5 -> 15 - def on_outbound(envelope, opt) - unless envelope.body.is_fault - node = envelope.body.root_node - node.retval = SOAPInt.new(node.retval.data + 10) - node.elename = XSD::QName.new(nil, 'return') - end - envelope - end - - # 5 -> 6 - def on_inbound(xml, opt) - xml = xml.sub(/5/, '6') - xml - end - end - - def initialize(*arg) - super - add_rpc_servant(Servant.new, PortName) - self.filterchain << ServerFilter1.new - self.filterchain << ServerFilter2.new - end - end - - def setup - @endpoint = "http://localhost:#{Port}/" - setup_server - setup_client - end - - def setup_server - @server = FilterTestServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - end - - def setup_client - @client = SOAP::RPC::Driver.new(@endpoint, PortName) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('echo', 'amt') - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - class ClientFilter1 < SOAP::Filter::Handler - # 1 -> 2 - def on_outbound(envelope, opt) - param = envelope.body.root_node.inparam - param["amt"] = SOAPInt.new(param["amt"].data + 1) - param["amt"].elename = XSD::QName.new(nil, 'amt') - envelope - end - - # 31 -> 32 - def on_inbound(xml, opt) - xml = xml.sub(/31/, '32') - xml - end - end - - class ClientFilter2 < SOAP::Filter::Handler - # 2 -> 4 - def on_outbound(envelope, opt) - param = envelope.body.root_node.inparam - param["amt"] = SOAPInt.new(param["amt"].data * 2) - param["amt"].elename = XSD::QName.new(nil, 'amt') - envelope - end - - # 30 -> 31 - def on_inbound(xml, opt) - xml = xml.sub(/30/, '31') - xml - end - end - - def test_call - @client.filterchain << ClientFilter1.new - @client.filterchain << ClientFilter2.new - assert_equal(32, @client.echo(1)) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/header/server.cgi b/vendor/gems/soap4r-1.5.8/test/soap/header/server.cgi deleted file mode 100644 index e996805e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/header/server.cgi +++ /dev/null @@ -1,119 +0,0 @@ -require 'pstore' -require 'soap/rpc/cgistub' -require 'soap/header/simplehandler' - - -class AuthHeaderPortServer < SOAP::RPC::CGIStub - PortName = 'http://tempuri.org/authHeaderPort' - SupportPortName = 'http://tempuri.org/authHeaderSupportPort' - MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") - SessionDB = File.join(File.expand_path(File.dirname(__FILE__)), 'session.pstoredb') - - class AuthHeaderService - def self.create - new - end - - def deposit(amt) - "deposit #{amt} OK" - end - - def withdrawal(amt) - "withdrawal #{amt} OK" - end - end - - class AuthHeaderSupportService - def delete_sessiondb - File.unlink(SessionDB) if File.file?(SessionDB) - backup = SessionDB + "~" - File.unlink(backup) if File.file?(backup) - end - end - - def initialize(*arg) - super - add_rpc_servant(AuthHeaderService.new, PortName) - add_rpc_servant(AuthHeaderSupportService.new, SupportPortName) - add_rpc_headerhandler(ServerAuthHeaderHandler.new) - end - - class ServerAuthHeaderHandler < SOAP::Header::SimpleHandler - Users = { - 'NaHi' => 'passwd', - 'HiNa' => 'wspass' - } - - def initialize - super(MyHeaderName) - @db = PStore.new(SessionDB) - @db.transaction do - @db["root"] = {} unless @db.root?("root") - end - @userid = @sessionid = nil - end - - def login(userid, passwd) - userid and passwd and Users[userid] == passwd - end - - def auth(sessionid) - in_sessiondb do |root| - root[sessionid][0] - end - end - - def create_session(userid) - in_sessiondb do |root| - while true - key = create_sessionkey - break unless root[key] - end - root[key] = [userid] - key - end - end - - def destroy_session(sessionkey) - in_sessiondb do |root| - root.delete(sessionkey) - end - end - - def on_simple_outbound - { "sessionid" => @sessionid } - end - - def on_simple_inbound(my_header, mu) - succeeded = false - userid = my_header["userid"] - passwd = my_header["passwd"] - if login(userid, passwd) - succeeded = true - elsif sessionid = my_header["sessionid"] - if userid = auth(sessionid) - destroy_session(sessionid) - succeeded = true - end - end - raise RuntimeError.new("authentication failed") unless succeeded - @userid = userid - @sessionid = create_session(userid) - end - - private - - def create_sessionkey - Time.now.usec.to_s - end - - def in_sessiondb - @db.transaction do - yield(@db["root"]) - end - end - end -end - - -status = AuthHeaderPortServer.new('AuthHeaderPortServer', nil).start diff --git a/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader.rb b/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader.rb deleted file mode 100644 index 9c4b7c4d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader.rb +++ /dev/null @@ -1,240 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' -require 'soap/header/simplehandler' - - -module SOAP -module Header - - -class TestAuthHeader < Test::Unit::TestCase - Port = 17171 - PortName = 'http://tempuri.org/authHeaderPort' - MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") - DummyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "dummy") - - class AuthHeaderPortServer < SOAP::RPC::StandaloneServer - class AuthHeaderService - def self.create - new - end - - def deposit(amt) - "deposit #{amt} OK" - end - - def withdrawal(amt) - "withdrawal #{amt} OK" - end - end - - def initialize(*arg) - super - add_rpc_servant(AuthHeaderService.new, PortName) - ServerAuthHeaderHandler.init - add_request_headerhandler(ServerAuthHeaderHandler) - end - - class ServerAuthHeaderHandler < SOAP::Header::SimpleHandler - class << self - def create - new - end - - def init - @users = { - 'NaHi' => 'passwd', - 'HiNa' => 'wspass' - } - @sessions = {} - end - - def login(userid, passwd) - userid and passwd and @users[userid] == passwd - end - - def auth(sessionid) - @sessions[sessionid][0] - end - - def create_session(userid) - while true - key = create_sessionkey - break unless @sessions[key] - end - @sessions[key] = [userid] - key - end - - def destroy_session(sessionkey) - @sessions.delete(sessionkey) - end - - def sessions - @sessions - end - - private - - def create_sessionkey - Time.now.usec.to_s - end - end - - def initialize - super(MyHeaderName) - @userid = @sessionid = nil - end - - def on_simple_outbound - { "sessionid" => @sessionid } - end - - def on_simple_inbound(my_header, mu) - auth = false - userid = my_header["userid"] - passwd = my_header["passwd"] - if self.class.login(userid, passwd) - auth = true - elsif sessionid = my_header["sessionid"] - if userid = self.class.auth(sessionid) - self.class.destroy_session(sessionid) - auth = true - end - end - raise RuntimeError.new("authentication failed") unless auth - @userid = userid - @sessionid = self.class.create_session(userid) - end - end - end - - class ClientAuthHeaderHandler < SOAP::Header::SimpleHandler - def initialize(userid, passwd, mustunderstand) - super(MyHeaderName) - @sessionid = nil - @userid = userid - @passwd = passwd - @mustunderstand = mustunderstand - end - - def on_simple_outbound - if @sessionid - { "sessionid" => @sessionid } - else - { "userid" => @userid, "passwd" => @passwd } - end - end - - def on_simple_inbound(my_header, mustunderstand) - @sessionid = my_header["sessionid"] - end - - def sessionid - @sessionid - end - end - - class DummyHeaderHandler < SOAP::Header::SimpleHandler - def initialize(mustunderstand) - super(DummyHeaderName) - @mustunderstand = mustunderstand - end - - def on_simple_outbound - { XSD::QName.new("foo", "bar") => nil } - end - - def on_simple_inbound(my_header, mustunderstand) - end - end - - def setup - @endpoint = "http://localhost:#{Port}/" - setup_server - setup_client - end - - def setup_server - @server = AuthHeaderPortServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - end - - def setup_client - @client = SOAP::RPC::Driver.new(@endpoint, PortName) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('deposit', 'amt') - @client.add_method('withdrawal', 'amt') - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - def test_success_no_mu - h = ClientAuthHeaderHandler.new('NaHi', 'passwd', false) - @client.headerhandler << h - do_transaction_check(h) - end - - def test_success_mu - h = ClientAuthHeaderHandler.new('NaHi', 'passwd', true) - @client.headerhandler << h - do_transaction_check(h) - end - - def test_no_mu - h = ClientAuthHeaderHandler.new('NaHi', 'passwd', true) - @client.headerhandler << h - @client.headerhandler << DummyHeaderHandler.new(false) - do_transaction_check(h) - end - - def test_mu - h = ClientAuthHeaderHandler.new('NaHi', 'passwd', true) - @client.headerhandler << h - @client.headerhandler << (h2 = DummyHeaderHandler.new(true)) - assert_raise(SOAP::UnhandledMustUnderstandHeaderError) do - assert_equal("deposit 150 OK", @client.deposit(150)) - end - @client.headerhandler.delete(h2) - @client.headerhandler << (h2 = DummyHeaderHandler.new(false)) - do_transaction_check(h) - end - - def do_transaction_check(h) - assert_equal("deposit 150 OK", @client.deposit(150)) - serversess = AuthHeaderPortServer::ServerAuthHeaderHandler.sessions[h.sessionid] - assert_equal("NaHi", serversess[0]) - assert_equal("withdrawal 120 OK", @client.withdrawal(120)) - serversess = AuthHeaderPortServer::ServerAuthHeaderHandler.sessions[h.sessionid] - assert_equal("NaHi", serversess[0]) - end - - def test_authfailure - h = ClientAuthHeaderHandler.new('NaHi', 'pa', false) - @client.headerhandler << h - assert_raises(RuntimeError) do - @client.deposit(150) - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader_cgi.rb b/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader_cgi.rb deleted file mode 100644 index bfd91fa1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/header/test_authheader_cgi.rb +++ /dev/null @@ -1,121 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' -require 'soap/header/simplehandler' -require 'logger' -require 'webrick' -require 'rbconfig' - - -module SOAP -module Header - - -class TestAuthHeaderCGI < Test::Unit::TestCase - # This test shuld be run after installing ruby. - RUBYBIN = File.join( - Config::CONFIG["bindir"], - Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"] - ) - RUBYBIN << " -d" if $DEBUG - - Port = 17171 - PortName = 'http://tempuri.org/authHeaderPort' - SupportPortName = 'http://tempuri.org/authHeaderSupportPort' - MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") - - class ClientAuthHeaderHandler < SOAP::Header::SimpleHandler - def initialize(userid, passwd) - super(MyHeaderName) - @sessionid = nil - @userid = userid - @passwd = passwd - end - - def on_simple_outbound - if @sessionid - { "sessionid" => @sessionid } - else - { "userid" => @userid, "passwd" => @passwd } - end - end - - def on_simple_inbound(my_header, mustunderstand) - @sessionid = my_header["sessionid"] - end - - def sessionid - @sessionid - end - end - - def setup - @endpoint = "http://localhost:#{Port}/" - setup_server - setup_client - end - - def setup_server - @endpoint = "http://localhost:#{Port}/server.cgi" - logger = Logger.new(STDERR) - logger.level = Logger::Severity::ERROR - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)), - :CGIPathEnv => ENV['PATH'], - :CGIInterpreter => RUBYBIN - ) - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - end - - def setup_client - @client = SOAP::RPC::Driver.new(@endpoint, PortName) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('deposit', 'amt') - @client.add_method('withdrawal', 'amt') - @supportclient = SOAP::RPC::Driver.new(@endpoint, SupportPortName) - @supportclient.add_method('delete_sessiondb') - end - - def teardown - @supportclient.delete_sessiondb if @supportclient - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - @supportclient.reset_stream - end - - def test_success - h = ClientAuthHeaderHandler.new('NaHi', 'passwd') - @client.headerhandler << h - assert_equal("deposit 150 OK", @client.deposit(150)) - assert_equal("withdrawal 120 OK", @client.withdrawal(120)) - end - - def test_authfailure - h = ClientAuthHeaderHandler.new('NaHi', 'pa') - @client.headerhandler << h - assert_raises(RuntimeError) do - @client.deposit(150) - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/header/test_simplehandler.rb b/vendor/gems/soap4r-1.5.8/test/soap/header/test_simplehandler.rb deleted file mode 100644 index 05880fd2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/header/test_simplehandler.rb +++ /dev/null @@ -1,116 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' -require 'soap/header/simplehandler' - - -module SOAP -module Header - - -class TestSimpleHandler < Test::Unit::TestCase - Port = 17171 - PortName = 'http://tempuri.org/authHeaderPort' - - class PingPortServer < SOAP::RPC::StandaloneServer - class PingService - def self.create - new - end - - def ping - Thread.current[:pingheader] - end - end - - def initialize(*arg) - super - add_rpc_servant(PingService.new, PortName) - add_request_headerhandler(PingServerHeaderHandler) - end - - class PingServerHeaderHandler < SOAP::Header::SimpleHandler - MyHeaderName = XSD::QName.new("http://xmlsoap.org/Ping", "PingHeader") - - def self.create - new - end - - def initialize() - super(MyHeaderName) - end - - def on_simple_outbound - "dummy" - end - - def on_simple_inbound(my_header, mu) - Thread.current[:pingheader] = my_header - end - end - end - - class PingClientHeaderHandler < SOAP::Header::SimpleHandler - MyHeaderName = XSD::QName.new("http://xmlsoap.org/Ping", "PingHeader") - - def initialize(pingHeader) - super(MyHeaderName) - @pingHeader = pingHeader - @mustunderstand = false - end - - def on_simple_outbound - @pingHeader # --- note, not a Hash - end - - def on_simple_inbound(my_header, mustunderstand) - Thread.current[:pingheader] = my_header - end - end - - def setup - @endpoint = "http://localhost:#{Port}/" - setup_server - setup_client - end - - def setup_server - @server = PingPortServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - end - - def setup_client - @client = SOAP::RPC::Driver.new(@endpoint, PortName) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('ping') - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - def test_string - h = PingClientHeaderHandler.new('pingheader') - @client.headerhandler << h - assert_equal("pingheader", @client.ping) - assert_equal("dummy", Thread.current[:pingheader]) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/helloworld/hw_s.rb b/vendor/gems/soap4r-1.5.8/test/soap/helloworld/hw_s.rb deleted file mode 100644 index 1a54adb9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/helloworld/hw_s.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'soap/rpc/standaloneServer' - -class HelloWorldServer < SOAP::RPC::StandaloneServer - def on_init - add_method(self, 'hello_world', 'from') - end - - def hello_world(from) - "Hello World, from #{ from }" - end -end - -if $0 == __FILE__ - server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 17171) - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/helloworld/test_helloworld.rb b/vendor/gems/soap4r-1.5.8/test/soap/helloworld/test_helloworld.rb deleted file mode 100644 index 9927bc60..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/helloworld/test_helloworld.rb +++ /dev/null @@ -1,43 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'hw_s.rb' - - -module SOAP -module HelloWorld - - -class TestHelloWorld < Test::Unit::TestCase - Port = 17171 - - def setup - @server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint, 'urn:hws') - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method("hello_world", "from") - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - def test_hello_world - assert_equal("Hello World, from NaHi", @client.hello_world("NaHi")) - assert_equal("Hello World, from <&>", @client.hello_world("<&>")) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/htpasswd b/vendor/gems/soap4r-1.5.8/test/soap/htpasswd deleted file mode 100644 index 70df50c9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/htpasswd +++ /dev/null @@ -1,2 +0,0 @@ -admin:Qg266hq/YYKe2 -guest:gbPc4vPCH.h12 diff --git a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEc.rb b/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEc.rb deleted file mode 100644 index 8f1055ea..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEc.rb +++ /dev/null @@ -1,4778 +0,0 @@ -require 'xsd/qname' - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Bin -class Bin - @@schema_type = "Bin" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["binName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BinName")]], - ["binItemCount", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BinItemCount")]], - ["binParameter", ["[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BinParameter")]] - ] - - attr_accessor :binName - attr_accessor :binItemCount - attr_accessor :binParameter - - def initialize(binName = nil, binItemCount = nil, binParameter = []) - @binName = binName - @binItemCount = binItemCount - @binParameter = binParameter - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SearchBinSet -class SearchBinSet - @@schema_type = "SearchBinSet" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_attribute = { - XSD::QName.new(nil, "NarrowBy") => "SOAP::SOAPString" - } - @@schema_element = [ - ["bin", ["Bin[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Bin")]] - ] - - attr_accessor :bin - - def xmlattr_NarrowBy - (@__xmlattr ||= {})[XSD::QName.new(nil, "NarrowBy")] - end - - def xmlattr_NarrowBy=(value) - (@__xmlattr ||= {})[XSD::QName.new(nil, "NarrowBy")] = value - end - - def initialize(bin = []) - @bin = bin - @__xmlattr = {} - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SearchBinSets -class SearchBinSets < ::Array - @@schema_element = [ - ["SearchBinSet", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchBinSet")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Help -class Help - @@schema_type = "Help" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["shared", ["HelpRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["HelpRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemSearch -class ItemSearch - @@schema_type = "ItemSearch" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["shared", ["ItemSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["ItemSearchRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :xMLEscaping - attr_accessor :validate - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, xMLEscaping = nil, validate = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @xMLEscaping = xMLEscaping - @validate = validate - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemLookup -class ItemLookup - @@schema_type = "ItemLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["ItemLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["ItemLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListSearch -class ListSearch - @@schema_type = "ListSearch" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["ListSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["ListSearchRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListLookup -class ListLookup - @@schema_type = "ListLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["ListLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["ListLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentSearch -class CustomerContentSearch - @@schema_type = "CustomerContentSearch" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CustomerContentSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CustomerContentSearchRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentLookup -class CustomerContentLookup - @@schema_type = "CustomerContentLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CustomerContentLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CustomerContentLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SimilarityLookup -class SimilarityLookup - @@schema_type = "SimilarityLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["SimilarityLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["SimilarityLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerLookup -class SellerLookup - @@schema_type = "SellerLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["SellerLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["SellerLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartGet -class CartGet - @@schema_type = "CartGet" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CartGetRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CartGetRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartAdd -class CartAdd - @@schema_type = "CartAdd" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CartAddRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CartAddRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartCreate -class CartCreate - @@schema_type = "CartCreate" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CartCreateRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CartCreateRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartModify -class CartModify - @@schema_type = "CartModify" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CartModifyRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CartModifyRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartClear -class CartClear - @@schema_type = "CartClear" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["CartClearRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["CartClearRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}TransactionLookup -class TransactionLookup - @@schema_type = "TransactionLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["TransactionLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["TransactionLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingSearch -class SellerListingSearch - @@schema_type = "SellerListingSearch" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["SellerListingSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["SellerListingSearchRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingLookup -class SellerListingLookup - @@schema_type = "SellerListingLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["SellerListingLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["SellerListingLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}BrowseNodeLookup -class BrowseNodeLookup - @@schema_type = "BrowseNodeLookup" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["marketplaceDomain", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MarketplaceDomain")]], - ["aWSAccessKeyId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AWSAccessKeyId")]], - ["subscriptionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionId")]], - ["associateTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AssociateTag")]], - ["validate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Validate")]], - ["xMLEscaping", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "XMLEscaping")]], - ["shared", ["BrowseNodeLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shared")]], - ["request", ["BrowseNodeLookupRequest[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]] - ] - - attr_accessor :marketplaceDomain - attr_accessor :aWSAccessKeyId - attr_accessor :subscriptionId - attr_accessor :associateTag - attr_accessor :validate - attr_accessor :xMLEscaping - attr_accessor :shared - attr_accessor :request - - def initialize(marketplaceDomain = nil, aWSAccessKeyId = nil, subscriptionId = nil, associateTag = nil, validate = nil, xMLEscaping = nil, shared = nil, request = []) - @marketplaceDomain = marketplaceDomain - @aWSAccessKeyId = aWSAccessKeyId - @subscriptionId = subscriptionId - @associateTag = associateTag - @validate = validate - @xMLEscaping = xMLEscaping - @shared = shared - @request = request - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Condition -class Condition < ::String - @@schema_type = "Condition" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - - All = Condition.new("All") - Collectible = Condition.new("Collectible") - New = Condition.new("New") - Refurbished = Condition.new("Refurbished") - Used = Condition.new("Used") -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}DeliveryMethod -class DeliveryMethod < ::String - @@schema_type = "DeliveryMethod" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - - ISPU = DeliveryMethod.new("ISPU") - Ship = DeliveryMethod.new("Ship") -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}AudienceRating -class AudienceRating < ::String - @@schema_type = "AudienceRating" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - - C_12 = AudienceRating.new("12") - C_16 = AudienceRating.new("16") - C_18 = AudienceRating.new("18") - C_6 = AudienceRating.new("6") - FamilyViewing = AudienceRating.new("FamilyViewing") - G = AudienceRating.new("G") - NC17 = AudienceRating.new("NC-17") - NR = AudienceRating.new("NR") - PG = AudienceRating.new("PG") - PG13 = AudienceRating.new("PG-13") - R = AudienceRating.new("R") - Unrated = AudienceRating.new("Unrated") -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}MultiOperation -class MultiOperation - @@schema_type = "MultiOperation" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["help", ["Help", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Help")]], - ["itemSearch", ["ItemSearch", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemSearch")]], - ["itemLookup", ["ItemLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemLookup")]], - ["listSearch", ["ListSearch", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListSearch")]], - ["listLookup", ["ListLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListLookup")]], - ["customerContentSearch", ["CustomerContentSearch", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentSearch")]], - ["customerContentLookup", ["CustomerContentLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentLookup")]], - ["similarityLookup", ["SimilarityLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityLookup")]], - ["sellerLookup", ["SellerLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLookup")]], - ["cartGet", ["CartGet", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartGet")]], - ["cartAdd", ["CartAdd", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartAdd")]], - ["cartCreate", ["CartCreate", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartCreate")]], - ["cartModify", ["CartModify", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartModify")]], - ["cartClear", ["CartClear", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartClear")]], - ["transactionLookup", ["TransactionLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionLookup")]], - ["sellerListingSearch", ["SellerListingSearch", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingSearch")]], - ["sellerListingLookup", ["SellerListingLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingLookup")]], - ["browseNodeLookup", ["BrowseNodeLookup", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeLookup")]] - ] - - attr_accessor :help - attr_accessor :itemSearch - attr_accessor :itemLookup - attr_accessor :listSearch - attr_accessor :listLookup - attr_accessor :customerContentSearch - attr_accessor :customerContentLookup - attr_accessor :similarityLookup - attr_accessor :sellerLookup - attr_accessor :cartGet - attr_accessor :cartAdd - attr_accessor :cartCreate - attr_accessor :cartModify - attr_accessor :cartClear - attr_accessor :transactionLookup - attr_accessor :sellerListingSearch - attr_accessor :sellerListingLookup - attr_accessor :browseNodeLookup - - def initialize(help = nil, itemSearch = nil, itemLookup = nil, listSearch = nil, listLookup = nil, customerContentSearch = nil, customerContentLookup = nil, similarityLookup = nil, sellerLookup = nil, cartGet = nil, cartAdd = nil, cartCreate = nil, cartModify = nil, cartClear = nil, transactionLookup = nil, sellerListingSearch = nil, sellerListingLookup = nil, browseNodeLookup = nil) - @help = help - @itemSearch = itemSearch - @itemLookup = itemLookup - @listSearch = listSearch - @listLookup = listLookup - @customerContentSearch = customerContentSearch - @customerContentLookup = customerContentLookup - @similarityLookup = similarityLookup - @sellerLookup = sellerLookup - @cartGet = cartGet - @cartAdd = cartAdd - @cartCreate = cartCreate - @cartModify = cartModify - @cartClear = cartClear - @transactionLookup = transactionLookup - @sellerListingSearch = sellerListingSearch - @sellerListingLookup = sellerListingLookup - @browseNodeLookup = browseNodeLookup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}HelpResponse -class HelpResponse - @@schema_type = "HelpResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["information", ["Information[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Information")]] - ] - - attr_accessor :operationRequest - attr_accessor :information - - def initialize(operationRequest = nil, information = []) - @operationRequest = operationRequest - @information = information - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemSearchResponse -class ItemSearchResponse - @@schema_type = "ItemSearchResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["items", ["Items[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]] - ] - - attr_accessor :operationRequest - attr_accessor :items - - def initialize(operationRequest = nil, items = []) - @operationRequest = operationRequest - @items = items - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemLookupResponse -class ItemLookupResponse - @@schema_type = "ItemLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["items", ["Items[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]] - ] - - attr_accessor :operationRequest - attr_accessor :items - - def initialize(operationRequest = nil, items = []) - @operationRequest = operationRequest - @items = items - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListSearchResponse -class ListSearchResponse - @@schema_type = "ListSearchResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["lists", ["Lists[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Lists")]] - ] - - attr_accessor :operationRequest - attr_accessor :lists - - def initialize(operationRequest = nil, lists = []) - @operationRequest = operationRequest - @lists = lists - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListLookupResponse -class ListLookupResponse - @@schema_type = "ListLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["lists", ["Lists[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Lists")]] - ] - - attr_accessor :operationRequest - attr_accessor :lists - - def initialize(operationRequest = nil, lists = []) - @operationRequest = operationRequest - @lists = lists - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentSearchResponse -class CustomerContentSearchResponse - @@schema_type = "CustomerContentSearchResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["customers", ["Customers[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Customers")]] - ] - - attr_accessor :operationRequest - attr_accessor :customers - - def initialize(operationRequest = nil, customers = []) - @operationRequest = operationRequest - @customers = customers - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentLookupResponse -class CustomerContentLookupResponse - @@schema_type = "CustomerContentLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["customers", ["Customers[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Customers")]] - ] - - attr_accessor :operationRequest - attr_accessor :customers - - def initialize(operationRequest = nil, customers = []) - @operationRequest = operationRequest - @customers = customers - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SimilarityLookupResponse -class SimilarityLookupResponse - @@schema_type = "SimilarityLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["items", ["Items[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]] - ] - - attr_accessor :operationRequest - attr_accessor :items - - def initialize(operationRequest = nil, items = []) - @operationRequest = operationRequest - @items = items - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerLookupResponse -class SellerLookupResponse - @@schema_type = "SellerLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["sellers", ["Sellers[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Sellers")]] - ] - - attr_accessor :operationRequest - attr_accessor :sellers - - def initialize(operationRequest = nil, sellers = []) - @operationRequest = operationRequest - @sellers = sellers - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartGetResponse -class CartGetResponse - @@schema_type = "CartGetResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["cart", ["Cart[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cart")]] - ] - - attr_accessor :operationRequest - attr_accessor :cart - - def initialize(operationRequest = nil, cart = []) - @operationRequest = operationRequest - @cart = cart - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartAddResponse -class CartAddResponse - @@schema_type = "CartAddResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["cart", ["Cart[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cart")]] - ] - - attr_accessor :operationRequest - attr_accessor :cart - - def initialize(operationRequest = nil, cart = []) - @operationRequest = operationRequest - @cart = cart - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartCreateResponse -class CartCreateResponse - @@schema_type = "CartCreateResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["cart", ["Cart[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cart")]] - ] - - attr_accessor :operationRequest - attr_accessor :cart - - def initialize(operationRequest = nil, cart = []) - @operationRequest = operationRequest - @cart = cart - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartModifyResponse -class CartModifyResponse - @@schema_type = "CartModifyResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["cart", ["Cart[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cart")]] - ] - - attr_accessor :operationRequest - attr_accessor :cart - - def initialize(operationRequest = nil, cart = []) - @operationRequest = operationRequest - @cart = cart - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartClearResponse -class CartClearResponse - @@schema_type = "CartClearResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["cart", ["Cart[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cart")]] - ] - - attr_accessor :operationRequest - attr_accessor :cart - - def initialize(operationRequest = nil, cart = []) - @operationRequest = operationRequest - @cart = cart - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}TransactionLookupResponse -class TransactionLookupResponse - @@schema_type = "TransactionLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["transactions", ["Transactions[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Transactions")]] - ] - - attr_accessor :operationRequest - attr_accessor :transactions - - def initialize(operationRequest = nil, transactions = []) - @operationRequest = operationRequest - @transactions = transactions - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingSearchResponse -class SellerListingSearchResponse - @@schema_type = "SellerListingSearchResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["sellerListings", ["SellerListings[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListings")]] - ] - - attr_accessor :operationRequest - attr_accessor :sellerListings - - def initialize(operationRequest = nil, sellerListings = []) - @operationRequest = operationRequest - @sellerListings = sellerListings - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingLookupResponse -class SellerListingLookupResponse - @@schema_type = "SellerListingLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["sellerListings", ["SellerListings[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListings")]] - ] - - attr_accessor :operationRequest - attr_accessor :sellerListings - - def initialize(operationRequest = nil, sellerListings = []) - @operationRequest = operationRequest - @sellerListings = sellerListings - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}BrowseNodeLookupResponse -class BrowseNodeLookupResponse - @@schema_type = "BrowseNodeLookupResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["browseNodes", ["BrowseNodes[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodes")]] - ] - - attr_accessor :operationRequest - attr_accessor :browseNodes - - def initialize(operationRequest = nil, browseNodes = []) - @operationRequest = operationRequest - @browseNodes = browseNodes - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}MultiOperationResponse -class MultiOperationResponse - @@schema_type = "MultiOperationResponse" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["operationRequest", ["OperationRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationRequest")]], - ["helpResponse", ["HelpResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HelpResponse")]], - ["itemSearchResponse", ["ItemSearchResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemSearchResponse")]], - ["itemLookupResponse", ["ItemLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemLookupResponse")]], - ["listSearchResponse", ["ListSearchResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListSearchResponse")]], - ["listLookupResponse", ["ListLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListLookupResponse")]], - ["customerContentSearchResponse", ["CustomerContentSearchResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentSearchResponse")]], - ["customerContentLookupResponse", ["CustomerContentLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentLookupResponse")]], - ["similarityLookupResponse", ["SimilarityLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityLookupResponse")]], - ["sellerLookupResponse", ["SellerLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLookupResponse")]], - ["cartGetResponse", ["CartGetResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartGetResponse")]], - ["cartAddResponse", ["CartAddResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartAddResponse")]], - ["cartCreateResponse", ["CartCreateResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartCreateResponse")]], - ["cartModifyResponse", ["CartModifyResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartModifyResponse")]], - ["cartClearResponse", ["CartClearResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartClearResponse")]], - ["transactionLookupResponse", ["TransactionLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionLookupResponse")]], - ["sellerListingSearchResponse", ["SellerListingSearchResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingSearchResponse")]], - ["sellerListingLookupResponse", ["SellerListingLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingLookupResponse")]], - ["browseNodeLookupResponse", ["BrowseNodeLookupResponse", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeLookupResponse")]] - ] - - attr_accessor :operationRequest - attr_accessor :helpResponse - attr_accessor :itemSearchResponse - attr_accessor :itemLookupResponse - attr_accessor :listSearchResponse - attr_accessor :listLookupResponse - attr_accessor :customerContentSearchResponse - attr_accessor :customerContentLookupResponse - attr_accessor :similarityLookupResponse - attr_accessor :sellerLookupResponse - attr_accessor :cartGetResponse - attr_accessor :cartAddResponse - attr_accessor :cartCreateResponse - attr_accessor :cartModifyResponse - attr_accessor :cartClearResponse - attr_accessor :transactionLookupResponse - attr_accessor :sellerListingSearchResponse - attr_accessor :sellerListingLookupResponse - attr_accessor :browseNodeLookupResponse - - def initialize(operationRequest = nil, helpResponse = nil, itemSearchResponse = nil, itemLookupResponse = nil, listSearchResponse = nil, listLookupResponse = nil, customerContentSearchResponse = nil, customerContentLookupResponse = nil, similarityLookupResponse = nil, sellerLookupResponse = nil, cartGetResponse = nil, cartAddResponse = nil, cartCreateResponse = nil, cartModifyResponse = nil, cartClearResponse = nil, transactionLookupResponse = nil, sellerListingSearchResponse = nil, sellerListingLookupResponse = nil, browseNodeLookupResponse = nil) - @operationRequest = operationRequest - @helpResponse = helpResponse - @itemSearchResponse = itemSearchResponse - @itemLookupResponse = itemLookupResponse - @listSearchResponse = listSearchResponse - @listLookupResponse = listLookupResponse - @customerContentSearchResponse = customerContentSearchResponse - @customerContentLookupResponse = customerContentLookupResponse - @similarityLookupResponse = similarityLookupResponse - @sellerLookupResponse = sellerLookupResponse - @cartGetResponse = cartGetResponse - @cartAddResponse = cartAddResponse - @cartCreateResponse = cartCreateResponse - @cartModifyResponse = cartModifyResponse - @cartClearResponse = cartClearResponse - @transactionLookupResponse = transactionLookupResponse - @sellerListingSearchResponse = sellerListingSearchResponse - @sellerListingLookupResponse = sellerListingLookupResponse - @browseNodeLookupResponse = browseNodeLookupResponse - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OperationRequest -class OperationRequest - @@schema_type = "OperationRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["hTTPHeaders", ["HTTPHeaders", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HTTPHeaders")]], - ["requestId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RequestId")]], - ["arguments", ["Arguments", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Arguments")]], - ["errors", ["Errors", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Errors")]], - ["requestProcessingTime", ["SOAP::SOAPFloat", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RequestProcessingTime")]] - ] - - attr_accessor :hTTPHeaders - attr_accessor :requestId - attr_accessor :arguments - attr_accessor :errors - attr_accessor :requestProcessingTime - - def initialize(hTTPHeaders = nil, requestId = nil, arguments = nil, errors = nil, requestProcessingTime = nil) - @hTTPHeaders = hTTPHeaders - @requestId = requestId - @arguments = arguments - @errors = errors - @requestProcessingTime = requestProcessingTime - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Request -class Request - @@schema_type = "Request" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["isValid", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsValid")]], - ["helpRequest", ["HelpRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HelpRequest")]], - ["browseNodeLookupRequest", ["BrowseNodeLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeLookupRequest")]], - ["itemSearchRequest", ["ItemSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemSearchRequest")]], - ["itemLookupRequest", ["ItemLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemLookupRequest")]], - ["listSearchRequest", ["ListSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListSearchRequest")]], - ["listLookupRequest", ["ListLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListLookupRequest")]], - ["customerContentSearchRequest", ["CustomerContentSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentSearchRequest")]], - ["customerContentLookupRequest", ["CustomerContentLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentLookupRequest")]], - ["similarityLookupRequest", ["SimilarityLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityLookupRequest")]], - ["cartGetRequest", ["CartGetRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartGetRequest")]], - ["cartAddRequest", ["CartAddRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartAddRequest")]], - ["cartCreateRequest", ["CartCreateRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartCreateRequest")]], - ["cartModifyRequest", ["CartModifyRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartModifyRequest")]], - ["cartClearRequest", ["CartClearRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartClearRequest")]], - ["transactionLookupRequest", ["TransactionLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionLookupRequest")]], - ["sellerListingSearchRequest", ["SellerListingSearchRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingSearchRequest")]], - ["sellerListingLookupRequest", ["SellerListingLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingLookupRequest")]], - ["sellerLookupRequest", ["SellerLookupRequest", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLookupRequest")]], - ["errors", ["Errors", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Errors")]] - ] - - attr_accessor :isValid - attr_accessor :helpRequest - attr_accessor :browseNodeLookupRequest - attr_accessor :itemSearchRequest - attr_accessor :itemLookupRequest - attr_accessor :listSearchRequest - attr_accessor :listLookupRequest - attr_accessor :customerContentSearchRequest - attr_accessor :customerContentLookupRequest - attr_accessor :similarityLookupRequest - attr_accessor :cartGetRequest - attr_accessor :cartAddRequest - attr_accessor :cartCreateRequest - attr_accessor :cartModifyRequest - attr_accessor :cartClearRequest - attr_accessor :transactionLookupRequest - attr_accessor :sellerListingSearchRequest - attr_accessor :sellerListingLookupRequest - attr_accessor :sellerLookupRequest - attr_accessor :errors - - def initialize(isValid = nil, helpRequest = nil, browseNodeLookupRequest = nil, itemSearchRequest = nil, itemLookupRequest = nil, listSearchRequest = nil, listLookupRequest = nil, customerContentSearchRequest = nil, customerContentLookupRequest = nil, similarityLookupRequest = nil, cartGetRequest = nil, cartAddRequest = nil, cartCreateRequest = nil, cartModifyRequest = nil, cartClearRequest = nil, transactionLookupRequest = nil, sellerListingSearchRequest = nil, sellerListingLookupRequest = nil, sellerLookupRequest = nil, errors = nil) - @isValid = isValid - @helpRequest = helpRequest - @browseNodeLookupRequest = browseNodeLookupRequest - @itemSearchRequest = itemSearchRequest - @itemLookupRequest = itemLookupRequest - @listSearchRequest = listSearchRequest - @listLookupRequest = listLookupRequest - @customerContentSearchRequest = customerContentSearchRequest - @customerContentLookupRequest = customerContentLookupRequest - @similarityLookupRequest = similarityLookupRequest - @cartGetRequest = cartGetRequest - @cartAddRequest = cartAddRequest - @cartCreateRequest = cartCreateRequest - @cartModifyRequest = cartModifyRequest - @cartClearRequest = cartClearRequest - @transactionLookupRequest = transactionLookupRequest - @sellerListingSearchRequest = sellerListingSearchRequest - @sellerListingLookupRequest = sellerListingLookupRequest - @sellerLookupRequest = sellerLookupRequest - @errors = errors - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Arguments -class Arguments < ::Array - @@schema_element = [ - ["Argument", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Argument")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}HTTPHeaders -class HTTPHeaders < ::Array - @@schema_element = [ - ["Header", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Header")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Errors -class Errors < ::Array - @@schema_element = [ - ["Error", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Error")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Information -class Information - @@schema_type = "Information" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["operationInformation", ["OperationInformation[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OperationInformation")]], - ["responseGroupInformation", ["ResponseGroupInformation[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroupInformation")]] - ] - - attr_accessor :request - attr_accessor :operationInformation - attr_accessor :responseGroupInformation - - def initialize(request = nil, operationInformation = [], responseGroupInformation = []) - @request = request - @operationInformation = operationInformation - @responseGroupInformation = responseGroupInformation - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Items -class Items - @@schema_type = "Items" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["correctedQuery", ["CorrectedQuery", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CorrectedQuery")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["searchResultsMap", ["SearchResultsMap", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchResultsMap")]], - ["item", ["Item[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Item")]], - ["searchBinSets", ["SearchBinSets", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchBinSets")]] - ] - - attr_accessor :request - attr_accessor :correctedQuery - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :searchResultsMap - attr_accessor :item - attr_accessor :searchBinSets - - def initialize(request = nil, correctedQuery = nil, totalResults = nil, totalPages = nil, searchResultsMap = nil, item = [], searchBinSets = nil) - @request = request - @correctedQuery = correctedQuery - @totalResults = totalResults - @totalPages = totalPages - @searchResultsMap = searchResultsMap - @item = item - @searchBinSets = searchBinSets - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CorrectedQuery -class CorrectedQuery - @@schema_type = "CorrectedQuery" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["keywords", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Keywords")]], - ["message", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Message")]] - ] - - attr_accessor :keywords - attr_accessor :message - - def initialize(keywords = nil, message = nil) - @keywords = keywords - @message = message - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Lists -class Lists - @@schema_type = "Lists" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["list", ["List[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "List")]] - ] - - attr_accessor :request - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :list - - def initialize(request = nil, totalResults = nil, totalPages = nil, list = []) - @request = request - @totalResults = totalResults - @totalPages = totalPages - @list = list - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Customers -class Customers - @@schema_type = "Customers" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["customer", ["Customer[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Customer")]] - ] - - attr_accessor :request - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :customer - - def initialize(request = nil, totalResults = nil, totalPages = nil, customer = []) - @request = request - @totalResults = totalResults - @totalPages = totalPages - @customer = customer - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Cart -class Cart - @@schema_type = "Cart" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["cartId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartId")]], - ["hMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HMAC")]], - ["uRLEncodedHMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "URLEncodedHMAC")]], - ["purchaseURL", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PurchaseURL")]], - ["subTotal", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubTotal")]], - ["cartItems", ["CartItems", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartItems")]], - ["savedForLaterItems", ["SavedForLaterItems", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SavedForLaterItems")]], - ["similarProducts", ["SimilarProducts", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarProducts")]], - ["topSellers", ["TopSellers", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TopSellers")]], - ["newReleases", ["NewReleases", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NewReleases")]], - ["similarViewedProducts", ["SimilarViewedProducts", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarViewedProducts")]], - ["otherCategoriesSimilarProducts", ["OtherCategoriesSimilarProducts", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OtherCategoriesSimilarProducts")]] - ] - - attr_accessor :request - attr_accessor :cartId - attr_accessor :hMAC - attr_accessor :uRLEncodedHMAC - attr_accessor :purchaseURL - attr_accessor :subTotal - attr_accessor :cartItems - attr_accessor :savedForLaterItems - attr_accessor :similarProducts - attr_accessor :topSellers - attr_accessor :newReleases - attr_accessor :similarViewedProducts - attr_accessor :otherCategoriesSimilarProducts - - def initialize(request = nil, cartId = nil, hMAC = nil, uRLEncodedHMAC = nil, purchaseURL = nil, subTotal = nil, cartItems = nil, savedForLaterItems = nil, similarProducts = nil, topSellers = nil, newReleases = nil, similarViewedProducts = nil, otherCategoriesSimilarProducts = nil) - @request = request - @cartId = cartId - @hMAC = hMAC - @uRLEncodedHMAC = uRLEncodedHMAC - @purchaseURL = purchaseURL - @subTotal = subTotal - @cartItems = cartItems - @savedForLaterItems = savedForLaterItems - @similarProducts = similarProducts - @topSellers = topSellers - @newReleases = newReleases - @similarViewedProducts = similarViewedProducts - @otherCategoriesSimilarProducts = otherCategoriesSimilarProducts - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Transactions -class Transactions - @@schema_type = "Transactions" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["transaction", ["Transaction[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Transaction")]] - ] - - attr_accessor :request - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :transaction - - def initialize(request = nil, totalResults = nil, totalPages = nil, transaction = []) - @request = request - @totalResults = totalResults - @totalPages = totalPages - @transaction = transaction - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Sellers -class Sellers - @@schema_type = "Sellers" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["seller", ["Seller[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Seller")]] - ] - - attr_accessor :request - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :seller - - def initialize(request = nil, totalResults = nil, totalPages = nil, seller = []) - @request = request - @totalResults = totalResults - @totalPages = totalPages - @seller = seller - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListings -class SellerListings - @@schema_type = "SellerListings" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["totalResults", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalResults")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["sellerListing", ["SellerListing[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListing")]] - ] - - attr_accessor :request - attr_accessor :totalResults - attr_accessor :totalPages - attr_accessor :sellerListing - - def initialize(request = nil, totalResults = nil, totalPages = nil, sellerListing = []) - @request = request - @totalResults = totalResults - @totalPages = totalPages - @sellerListing = sellerListing - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OperationInformation -class OperationInformation - @@schema_type = "OperationInformation" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["description", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Description")]], - ["requiredParameters", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RequiredParameters")]], - ["availableParameters", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AvailableParameters")]], - ["defaultResponseGroups", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DefaultResponseGroups")]], - ["availableResponseGroups", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AvailableResponseGroups")]] - ] - - attr_accessor :name - attr_accessor :description - attr_accessor :requiredParameters - attr_accessor :availableParameters - attr_accessor :defaultResponseGroups - attr_accessor :availableResponseGroups - - def initialize(name = nil, description = nil, requiredParameters = nil, availableParameters = nil, defaultResponseGroups = nil, availableResponseGroups = nil) - @name = name - @description = description - @requiredParameters = requiredParameters - @availableParameters = availableParameters - @defaultResponseGroups = defaultResponseGroups - @availableResponseGroups = availableResponseGroups - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ResponseGroupInformation -class ResponseGroupInformation - @@schema_type = "ResponseGroupInformation" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["creationDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CreationDate")]], - ["validOperations", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ValidOperations")]], - ["elements", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Elements")]] - ] - - attr_accessor :name - attr_accessor :creationDate - attr_accessor :validOperations - attr_accessor :elements - - def initialize(name = nil, creationDate = nil, validOperations = nil, elements = nil) - @name = name - @creationDate = creationDate - @validOperations = validOperations - @elements = elements - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}List -class List - @@schema_type = "List" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["listId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListId")]], - ["listURL", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListURL")]], - ["registryNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RegistryNumber")]], - ["listName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListName")]], - ["listType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListType")]], - ["totalItems", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalItems")]], - ["totalPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPages")]], - ["dateCreated", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DateCreated")]], - ["occasionDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OccasionDate")]], - ["customerName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerName")]], - ["partnerName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PartnerName")]], - ["additionalName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AdditionalName")]], - ["comment", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Comment")]], - ["image", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Image")]], - ["averageRating", ["SOAP::SOAPDecimal", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AverageRating")]], - ["totalVotes", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVotes")]], - ["totalTimesRead", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalTimesRead")]], - ["listItem", ["ListItem[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListItem")]] - ] - - attr_accessor :listId - attr_accessor :listURL - attr_accessor :registryNumber - attr_accessor :listName - attr_accessor :listType - attr_accessor :totalItems - attr_accessor :totalPages - attr_accessor :dateCreated - attr_accessor :occasionDate - attr_accessor :customerName - attr_accessor :partnerName - attr_accessor :additionalName - attr_accessor :comment - attr_accessor :image - attr_accessor :averageRating - attr_accessor :totalVotes - attr_accessor :totalTimesRead - attr_accessor :listItem - - def initialize(listId = nil, listURL = nil, registryNumber = nil, listName = nil, listType = nil, totalItems = nil, totalPages = nil, dateCreated = nil, occasionDate = nil, customerName = nil, partnerName = nil, additionalName = nil, comment = nil, image = nil, averageRating = nil, totalVotes = nil, totalTimesRead = nil, listItem = []) - @listId = listId - @listURL = listURL - @registryNumber = registryNumber - @listName = listName - @listType = listType - @totalItems = totalItems - @totalPages = totalPages - @dateCreated = dateCreated - @occasionDate = occasionDate - @customerName = customerName - @partnerName = partnerName - @additionalName = additionalName - @comment = comment - @image = image - @averageRating = averageRating - @totalVotes = totalVotes - @totalTimesRead = totalTimesRead - @listItem = listItem - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListItem -class ListItem - @@schema_type = "ListItem" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["listItemId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListItemId")]], - ["dateAdded", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DateAdded")]], - ["comment", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Comment")]], - ["quantityDesired", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "QuantityDesired")]], - ["quantityReceived", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "QuantityReceived")]], - ["item", ["Item", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Item")]] - ] - - attr_accessor :listItemId - attr_accessor :dateAdded - attr_accessor :comment - attr_accessor :quantityDesired - attr_accessor :quantityReceived - attr_accessor :item - - def initialize(listItemId = nil, dateAdded = nil, comment = nil, quantityDesired = nil, quantityReceived = nil, item = nil) - @listItemId = listItemId - @dateAdded = dateAdded - @comment = comment - @quantityDesired = quantityDesired - @quantityReceived = quantityReceived - @item = item - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Customer -class Customer - @@schema_type = "Customer" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["customerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerId")]], - ["nickname", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Nickname")]], - ["birthday", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Birthday")]], - ["wishListId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WishListId")]], - ["location", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Location")]], - ["customerReviews", ["CustomerReviews[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerReviews")]] - ] - - attr_accessor :customerId - attr_accessor :nickname - attr_accessor :birthday - attr_accessor :wishListId - attr_accessor :location - attr_accessor :customerReviews - - def initialize(customerId = nil, nickname = nil, birthday = nil, wishListId = nil, location = nil, customerReviews = []) - @customerId = customerId - @nickname = nickname - @birthday = birthday - @wishListId = wishListId - @location = location - @customerReviews = customerReviews - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SearchResultsMap -class SearchResultsMap < ::Array - @@schema_element = [ - ["SearchIndex", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchIndex")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Item -class Item - @@schema_type = "Item" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["aSIN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ASIN")]], - ["errors", ["Errors", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Errors")]], - ["detailPageURL", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DetailPageURL")]], - ["salesRank", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SalesRank")]], - ["smallImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SmallImage")]], - ["mediumImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MediumImage")]], - ["largeImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LargeImage")]], - ["imageSets", ["[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ImageSets")]], - ["itemAttributes", ["ItemAttributes", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemAttributes")]], - ["merchantItemAttributes", ["MerchantItemAttributes", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantItemAttributes")]], - ["subjects", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Subjects")]], - ["offerSummary", ["OfferSummary", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferSummary")]], - ["offers", ["Offers", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Offers")]], - ["variationSummary", ["VariationSummary", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationSummary")]], - ["variations", ["Variations", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Variations")]], - ["customerReviews", ["CustomerReviews", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerReviews")]], - ["editorialReviews", ["EditorialReviews", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EditorialReviews")]], - ["similarProducts", ["SimilarProducts", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarProducts")]], - ["accessories", ["Accessories", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Accessories")]], - ["tracks", ["Tracks", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Tracks")]], - ["browseNodes", ["BrowseNodes", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodes")]], - ["listmaniaLists", ["ListmaniaLists", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListmaniaLists")]], - ["searchInside", ["SearchInside", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchInside")]] - ] - - attr_accessor :aSIN - attr_accessor :errors - attr_accessor :detailPageURL - attr_accessor :salesRank - attr_accessor :smallImage - attr_accessor :mediumImage - attr_accessor :largeImage - attr_accessor :imageSets - attr_accessor :itemAttributes - attr_accessor :merchantItemAttributes - attr_accessor :subjects - attr_accessor :offerSummary - attr_accessor :offers - attr_accessor :variationSummary - attr_accessor :variations - attr_accessor :customerReviews - attr_accessor :editorialReviews - attr_accessor :similarProducts - attr_accessor :accessories - attr_accessor :tracks - attr_accessor :browseNodes - attr_accessor :listmaniaLists - attr_accessor :searchInside - - def initialize(aSIN = nil, errors = nil, detailPageURL = nil, salesRank = nil, smallImage = nil, mediumImage = nil, largeImage = nil, imageSets = [], itemAttributes = nil, merchantItemAttributes = nil, subjects = nil, offerSummary = nil, offers = nil, variationSummary = nil, variations = nil, customerReviews = nil, editorialReviews = nil, similarProducts = nil, accessories = nil, tracks = nil, browseNodes = nil, listmaniaLists = nil, searchInside = nil) - @aSIN = aSIN - @errors = errors - @detailPageURL = detailPageURL - @salesRank = salesRank - @smallImage = smallImage - @mediumImage = mediumImage - @largeImage = largeImage - @imageSets = imageSets - @itemAttributes = itemAttributes - @merchantItemAttributes = merchantItemAttributes - @subjects = subjects - @offerSummary = offerSummary - @offers = offers - @variationSummary = variationSummary - @variations = variations - @customerReviews = customerReviews - @editorialReviews = editorialReviews - @similarProducts = similarProducts - @accessories = accessories - @tracks = tracks - @browseNodes = browseNodes - @listmaniaLists = listmaniaLists - @searchInside = searchInside - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OfferSummary -class OfferSummary - @@schema_type = "OfferSummary" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["lowestNewPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestNewPrice")]], - ["lowestUsedPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestUsedPrice")]], - ["lowestCollectiblePrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestCollectiblePrice")]], - ["lowestRefurbishedPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestRefurbishedPrice")]], - ["totalNew", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalNew")]], - ["totalUsed", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalUsed")]], - ["totalCollectible", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalCollectible")]], - ["totalRefurbished", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalRefurbished")]] - ] - - attr_accessor :lowestNewPrice - attr_accessor :lowestUsedPrice - attr_accessor :lowestCollectiblePrice - attr_accessor :lowestRefurbishedPrice - attr_accessor :totalNew - attr_accessor :totalUsed - attr_accessor :totalCollectible - attr_accessor :totalRefurbished - - def initialize(lowestNewPrice = nil, lowestUsedPrice = nil, lowestCollectiblePrice = nil, lowestRefurbishedPrice = nil, totalNew = nil, totalUsed = nil, totalCollectible = nil, totalRefurbished = nil) - @lowestNewPrice = lowestNewPrice - @lowestUsedPrice = lowestUsedPrice - @lowestCollectiblePrice = lowestCollectiblePrice - @lowestRefurbishedPrice = lowestRefurbishedPrice - @totalNew = totalNew - @totalUsed = totalUsed - @totalCollectible = totalCollectible - @totalRefurbished = totalRefurbished - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Offers -class Offers - @@schema_type = "Offers" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["totalOffers", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalOffers")]], - ["totalOfferPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalOfferPages")]], - ["offer", ["Offer[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Offer")]] - ] - - attr_accessor :totalOffers - attr_accessor :totalOfferPages - attr_accessor :offer - - def initialize(totalOffers = nil, totalOfferPages = nil, offer = []) - @totalOffers = totalOffers - @totalOfferPages = totalOfferPages - @offer = offer - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Offer -class Offer - @@schema_type = "Offer" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["merchant", ["Merchant", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Merchant")]], - ["seller", ["Seller", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Seller")]], - ["offerAttributes", ["OfferAttributes", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferAttributes")]], - ["offerListing", ["OfferListing[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferListing")]] - ] - - attr_accessor :merchant - attr_accessor :seller - attr_accessor :offerAttributes - attr_accessor :offerListing - - def initialize(merchant = nil, seller = nil, offerAttributes = nil, offerListing = []) - @merchant = merchant - @seller = seller - @offerAttributes = offerAttributes - @offerListing = offerListing - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OfferAttributes -class OfferAttributes - @@schema_type = "OfferAttributes" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["subCondition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubCondition")]], - ["conditionNote", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ConditionNote")]], - ["willShipExpedited", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WillShipExpedited")]], - ["willShipInternational", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WillShipInternational")]] - ] - - attr_accessor :condition - attr_accessor :subCondition - attr_accessor :conditionNote - attr_accessor :willShipExpedited - attr_accessor :willShipInternational - - def initialize(condition = nil, subCondition = nil, conditionNote = nil, willShipExpedited = nil, willShipInternational = nil) - @condition = condition - @subCondition = subCondition - @conditionNote = conditionNote - @willShipExpedited = willShipExpedited - @willShipInternational = willShipInternational - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Merchant -class Merchant - @@schema_type = "Merchant" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["glancePage", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GlancePage")]], - ["averageFeedbackRating", ["SOAP::SOAPDecimal", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AverageFeedbackRating")]], - ["totalFeedback", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFeedback")]], - ["totalFeedbackPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFeedbackPages")]] - ] - - attr_accessor :merchantId - attr_accessor :name - attr_accessor :glancePage - attr_accessor :averageFeedbackRating - attr_accessor :totalFeedback - attr_accessor :totalFeedbackPages - - def initialize(merchantId = nil, name = nil, glancePage = nil, averageFeedbackRating = nil, totalFeedback = nil, totalFeedbackPages = nil) - @merchantId = merchantId - @name = name - @glancePage = glancePage - @averageFeedbackRating = averageFeedbackRating - @totalFeedback = totalFeedback - @totalFeedbackPages = totalFeedbackPages - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OfferListing -class OfferListing - @@schema_type = "OfferListing" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["offerListingId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferListingId")]], - ["exchangeId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ExchangeId")]], - ["price", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Price")]], - ["salePrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SalePrice")]], - ["availability", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Availability")]], - ["iSPUStoreAddress", ["Address", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUStoreAddress")]], - ["iSPUStoreHours", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUStoreHours")]], - ["isEligibleForSuperSaverShipping", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsEligibleForSuperSaverShipping")]] - ] - - attr_accessor :offerListingId - attr_accessor :exchangeId - attr_accessor :price - attr_accessor :salePrice - attr_accessor :availability - attr_accessor :iSPUStoreAddress - attr_accessor :iSPUStoreHours - attr_accessor :isEligibleForSuperSaverShipping - - def initialize(offerListingId = nil, exchangeId = nil, price = nil, salePrice = nil, availability = nil, iSPUStoreAddress = nil, iSPUStoreHours = nil, isEligibleForSuperSaverShipping = nil) - @offerListingId = offerListingId - @exchangeId = exchangeId - @price = price - @salePrice = salePrice - @availability = availability - @iSPUStoreAddress = iSPUStoreAddress - @iSPUStoreHours = iSPUStoreHours - @isEligibleForSuperSaverShipping = isEligibleForSuperSaverShipping - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}VariationSummary -class VariationSummary - @@schema_type = "VariationSummary" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["lowestPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestPrice")]], - ["highestPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HighestPrice")]], - ["lowestSalePrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LowestSalePrice")]], - ["highestSalePrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HighestSalePrice")]], - ["singleMerchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SingleMerchantId")]] - ] - - attr_accessor :lowestPrice - attr_accessor :highestPrice - attr_accessor :lowestSalePrice - attr_accessor :highestSalePrice - attr_accessor :singleMerchantId - - def initialize(lowestPrice = nil, highestPrice = nil, lowestSalePrice = nil, highestSalePrice = nil, singleMerchantId = nil) - @lowestPrice = lowestPrice - @highestPrice = highestPrice - @lowestSalePrice = lowestSalePrice - @highestSalePrice = highestSalePrice - @singleMerchantId = singleMerchantId - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Variations -class Variations - @@schema_type = "Variations" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["totalVariations", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVariations")]], - ["totalVariationPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVariationPages")]], - ["variationDimensions", ["VariationDimensions", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDimensions")]], - ["item", ["Item[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Item")]] - ] - - attr_accessor :totalVariations - attr_accessor :totalVariationPages - attr_accessor :variationDimensions - attr_accessor :item - - def initialize(totalVariations = nil, totalVariationPages = nil, variationDimensions = nil, item = []) - @totalVariations = totalVariations - @totalVariationPages = totalVariationPages - @variationDimensions = variationDimensions - @item = item - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}VariationDimensions -class VariationDimensions < ::Array - @@schema_element = [ - ["VariationDimension", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDimension")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}EditorialReviews -class EditorialReviews < ::Array - @@schema_element = [ - ["EditorialReview", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EditorialReview")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}EditorialReview -class EditorialReview - @@schema_type = "EditorialReview" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["source", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Source")]], - ["content", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Content")]] - ] - - attr_accessor :source - attr_accessor :content - - def initialize(source = nil, content = nil) - @source = source - @content = content - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerReviews -class CustomerReviews - @@schema_type = "CustomerReviews" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["averageRating", ["SOAP::SOAPDecimal", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AverageRating")]], - ["totalReviews", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalReviews")]], - ["totalReviewPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalReviewPages")]], - ["review", ["Review[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Review")]] - ] - - attr_accessor :averageRating - attr_accessor :totalReviews - attr_accessor :totalReviewPages - attr_accessor :review - - def initialize(averageRating = nil, totalReviews = nil, totalReviewPages = nil, review = []) - @averageRating = averageRating - @totalReviews = totalReviews - @totalReviewPages = totalReviewPages - @review = review - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Review -class Review - @@schema_type = "Review" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["aSIN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ASIN")]], - ["rating", ["SOAP::SOAPDecimal", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Rating")]], - ["helpfulVotes", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HelpfulVotes")]], - ["customerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerId")]], - ["totalVotes", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVotes")]], - ["date", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Date")]], - ["summary", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Summary")]], - ["content", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Content")]] - ] - - attr_accessor :aSIN - attr_accessor :rating - attr_accessor :helpfulVotes - attr_accessor :customerId - attr_accessor :totalVotes - attr_accessor :date - attr_accessor :summary - attr_accessor :content - - def initialize(aSIN = nil, rating = nil, helpfulVotes = nil, customerId = nil, totalVotes = nil, date = nil, summary = nil, content = nil) - @aSIN = aSIN - @rating = rating - @helpfulVotes = helpfulVotes - @customerId = customerId - @totalVotes = totalVotes - @date = date - @summary = summary - @content = content - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Tracks -class Tracks < ::Array - @@schema_element = [ - ["Disc", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Disc")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SimilarProducts -class SimilarProducts < ::Array - @@schema_element = [ - ["SimilarProduct", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarProduct")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}TopSellers -class TopSellers < ::Array - @@schema_element = [ - ["TopSeller", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TopSeller")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}NewReleases -class NewReleases < ::Array - @@schema_element = [ - ["NewRelease", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NewRelease")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SimilarViewedProducts -class SimilarViewedProducts < ::Array - @@schema_element = [ - ["SimilarViewedProduct", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarViewedProduct")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}OtherCategoriesSimilarProducts -class OtherCategoriesSimilarProducts < ::Array - @@schema_element = [ - ["OtherCategoriesSimilarProduct", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OtherCategoriesSimilarProduct")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Accessories -class Accessories < ::Array - @@schema_element = [ - ["Accessory", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Accessory")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}BrowseNodes -class BrowseNodes - @@schema_type = "BrowseNodes" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["request", ["Request", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Request")]], - ["browseNode", ["BrowseNode[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNode")]] - ] - - attr_accessor :request - attr_accessor :browseNode - - def initialize(request = nil, browseNode = []) - @request = request - @browseNode = browseNode - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}BrowseNode -class BrowseNode - @@schema_type = "BrowseNode" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["browseNodeId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeId")]], - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["children", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Children")]], - ["ancestors", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Ancestors")]], - ["topSellers", ["TopSellers", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TopSellers")]], - ["newReleases", ["NewReleases", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NewReleases")]] - ] - - attr_accessor :browseNodeId - attr_accessor :name - attr_accessor :children - attr_accessor :ancestors - attr_accessor :topSellers - attr_accessor :newReleases - - def initialize(browseNodeId = nil, name = nil, children = nil, ancestors = nil, topSellers = nil, newReleases = nil) - @browseNodeId = browseNodeId - @name = name - @children = children - @ancestors = ancestors - @topSellers = topSellers - @newReleases = newReleases - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListmaniaLists -class ListmaniaLists < ::Array - @@schema_element = [ - ["ListmaniaList", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListmaniaList")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SearchInside -class SearchInside - @@schema_type = "SearchInside" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["totalExcerpts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalExcerpts")]], - ["excerpt", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Excerpt")]] - ] - - attr_accessor :totalExcerpts - attr_accessor :excerpt - - def initialize(totalExcerpts = nil, excerpt = nil) - @totalExcerpts = totalExcerpts - @excerpt = excerpt - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartItems -class CartItems - @@schema_type = "CartItems" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["subTotal", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubTotal")]], - ["cartItem", ["CartItem[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartItem")]] - ] - - attr_accessor :subTotal - attr_accessor :cartItem - - def initialize(subTotal = nil, cartItem = []) - @subTotal = subTotal - @cartItem = cartItem - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SavedForLaterItems -class SavedForLaterItems - @@schema_type = "SavedForLaterItems" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["subTotal", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubTotal")]], - ["savedForLaterItem", ["CartItem[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SavedForLaterItem")]] - ] - - attr_accessor :subTotal - attr_accessor :savedForLaterItem - - def initialize(subTotal = nil, savedForLaterItem = []) - @subTotal = subTotal - @savedForLaterItem = savedForLaterItem - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Transaction -class Transaction - @@schema_type = "Transaction" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["transactionId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionId")]], - ["sellerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["transactionDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionDate")]], - ["transactionDateEpoch", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionDateEpoch")]], - ["sellerName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerName")]], - ["payingCustomerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PayingCustomerId")]], - ["orderingCustomerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OrderingCustomerId")]], - ["totals", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Totals")]], - ["transactionItems", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionItems")]], - ["shipments", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Shipments")]] - ] - - attr_accessor :transactionId - attr_accessor :sellerId - attr_accessor :condition - attr_accessor :transactionDate - attr_accessor :transactionDateEpoch - attr_accessor :sellerName - attr_accessor :payingCustomerId - attr_accessor :orderingCustomerId - attr_accessor :totals - attr_accessor :transactionItems - attr_accessor :shipments - - def initialize(transactionId = nil, sellerId = nil, condition = nil, transactionDate = nil, transactionDateEpoch = nil, sellerName = nil, payingCustomerId = nil, orderingCustomerId = nil, totals = nil, transactionItems = nil, shipments = nil) - @transactionId = transactionId - @sellerId = sellerId - @condition = condition - @transactionDate = transactionDate - @transactionDateEpoch = transactionDateEpoch - @sellerName = sellerName - @payingCustomerId = payingCustomerId - @orderingCustomerId = orderingCustomerId - @totals = totals - @transactionItems = transactionItems - @shipments = shipments - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}TransactionItem -class TransactionItem - @@schema_type = "TransactionItem" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["transactionItemId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionItemId")]], - ["quantity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Quantity")]], - ["unitPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "UnitPrice")]], - ["totalPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPrice")]], - ["aSIN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ASIN")]], - ["childTransactionItems", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ChildTransactionItems")]] - ] - - attr_accessor :transactionItemId - attr_accessor :quantity - attr_accessor :unitPrice - attr_accessor :totalPrice - attr_accessor :aSIN - attr_accessor :childTransactionItems - - def initialize(transactionItemId = nil, quantity = nil, unitPrice = nil, totalPrice = nil, aSIN = nil, childTransactionItems = nil) - @transactionItemId = transactionItemId - @quantity = quantity - @unitPrice = unitPrice - @totalPrice = totalPrice - @aSIN = aSIN - @childTransactionItems = childTransactionItems - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Seller -class Seller - @@schema_type = "Seller" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["sellerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["sellerName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerName")]], - ["sellerLegalName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLegalName")]], - ["nickname", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Nickname")]], - ["glancePage", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GlancePage")]], - ["about", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "About")]], - ["moreAbout", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MoreAbout")]], - ["location", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Location")]], - ["averageFeedbackRating", ["SOAP::SOAPDecimal", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AverageFeedbackRating")]], - ["totalFeedback", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFeedback")]], - ["totalFeedbackPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFeedbackPages")]], - ["sellerFeedbackSummary", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerFeedbackSummary")]], - ["sellerFeedback", ["SellerFeedback", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerFeedback")]] - ] - - attr_accessor :sellerId - attr_accessor :sellerName - attr_accessor :sellerLegalName - attr_accessor :nickname - attr_accessor :glancePage - attr_accessor :about - attr_accessor :moreAbout - attr_accessor :location - attr_accessor :averageFeedbackRating - attr_accessor :totalFeedback - attr_accessor :totalFeedbackPages - attr_accessor :sellerFeedbackSummary - attr_accessor :sellerFeedback - - def initialize(sellerId = nil, sellerName = nil, sellerLegalName = nil, nickname = nil, glancePage = nil, about = nil, moreAbout = nil, location = nil, averageFeedbackRating = nil, totalFeedback = nil, totalFeedbackPages = nil, sellerFeedbackSummary = nil, sellerFeedback = nil) - @sellerId = sellerId - @sellerName = sellerName - @sellerLegalName = sellerLegalName - @nickname = nickname - @glancePage = glancePage - @about = about - @moreAbout = moreAbout - @location = location - @averageFeedbackRating = averageFeedbackRating - @totalFeedback = totalFeedback - @totalFeedbackPages = totalFeedbackPages - @sellerFeedbackSummary = sellerFeedbackSummary - @sellerFeedback = sellerFeedback - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerFeedback -class SellerFeedback < ::Array - @@schema_element = [ - ["Feedback", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Feedback")]] - ] -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListing -class SellerListing - @@schema_type = "SellerListing" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["exchangeId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ExchangeId")]], - ["listingId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListingId")]], - ["aSIN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ASIN")]], - ["sKU", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SKU")]], - ["uPC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "UPC")]], - ["eAN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EAN")]], - ["willShipExpedited", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WillShipExpedited")]], - ["willShipInternational", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WillShipInternational")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]], - ["price", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Price")]], - ["startDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StartDate")]], - ["endDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EndDate")]], - ["status", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Status")]], - ["quantity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Quantity")]], - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["subCondition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubCondition")]], - ["seller", ["Seller", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Seller")]] - ] - - attr_accessor :exchangeId - attr_accessor :listingId - attr_accessor :aSIN - attr_accessor :sKU - attr_accessor :uPC - attr_accessor :eAN - attr_accessor :willShipExpedited - attr_accessor :willShipInternational - attr_accessor :title - attr_accessor :price - attr_accessor :startDate - attr_accessor :endDate - attr_accessor :status - attr_accessor :quantity - attr_accessor :condition - attr_accessor :subCondition - attr_accessor :seller - - def initialize(exchangeId = nil, listingId = nil, aSIN = nil, sKU = nil, uPC = nil, eAN = nil, willShipExpedited = nil, willShipInternational = nil, title = nil, price = nil, startDate = nil, endDate = nil, status = nil, quantity = nil, condition = nil, subCondition = nil, seller = nil) - @exchangeId = exchangeId - @listingId = listingId - @aSIN = aSIN - @sKU = sKU - @uPC = uPC - @eAN = eAN - @willShipExpedited = willShipExpedited - @willShipInternational = willShipInternational - @title = title - @price = price - @startDate = startDate - @endDate = endDate - @status = status - @quantity = quantity - @condition = condition - @subCondition = subCondition - @seller = seller - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ImageSet -class ImageSet - @@schema_type = "ImageSet" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_attribute = { - XSD::QName.new(nil, "Category") => "SOAP::SOAPString" - } - @@schema_element = [ - ["swatchImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SwatchImage")]], - ["smallImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SmallImage")]], - ["mediumImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MediumImage")]], - ["largeImage", ["Image", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LargeImage")]] - ] - - attr_accessor :swatchImage - attr_accessor :smallImage - attr_accessor :mediumImage - attr_accessor :largeImage - - def xmlattr_Category - (@__xmlattr ||= {})[XSD::QName.new(nil, "Category")] - end - - def xmlattr_Category=(value) - (@__xmlattr ||= {})[XSD::QName.new(nil, "Category")] = value - end - - def initialize(swatchImage = nil, smallImage = nil, mediumImage = nil, largeImage = nil) - @swatchImage = swatchImage - @smallImage = smallImage - @mediumImage = mediumImage - @largeImage = largeImage - @__xmlattr = {} - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemAttributes -class ItemAttributes - @@schema_type = "ItemAttributes" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["actor", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Actor")]], - ["address", ["Address", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Address")]], - ["amazonMaximumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AmazonMaximumAge")]], - ["amazonMinimumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AmazonMinimumAge")]], - ["apertureModes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ApertureModes")]], - ["artist", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Artist")]], - ["aspectRatio", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AspectRatio")]], - ["audienceRating", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AudienceRating")]], - ["audioFormat", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AudioFormat")]], - ["author", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Author")]], - ["backFinding", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BackFinding")]], - ["bandMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BandMaterialType")]], - ["batteriesIncluded", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteriesIncluded")]], - ["batteries", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Batteries")]], - ["batteryDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteryDescription")]], - ["batteryType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteryType")]], - ["bezelMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BezelMaterialType")]], - ["binding", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Binding")]], - ["brand", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Brand")]], - ["calendarType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CalendarType")]], - ["cameraManualFeatures", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CameraManualFeatures")]], - ["caseDiameter", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseDiameter")]], - ["caseMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseMaterialType")]], - ["caseThickness", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseThickness")]], - ["caseType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseType")]], - ["cDRWDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CDRWDescription")]], - ["chainType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ChainType")]], - ["claspType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ClaspType")]], - ["clothingSize", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ClothingSize")]], - ["color", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Color")]], - ["compatibility", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Compatibility")]], - ["computerHardwareType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ComputerHardwareType")]], - ["computerPlatform", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ComputerPlatform")]], - ["connectivity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Connectivity")]], - ["continuousShootingSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ContinuousShootingSpeed")]], - ["country", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Country")]], - ["cPUManufacturer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUManufacturer")]], - ["cPUSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUSpeed")]], - ["cPUType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUType")]], - ["creator", ["[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Creator")]], - ["cuisine", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cuisine")]], - ["delayBetweenShots", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DelayBetweenShots")]], - ["department", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Department")]], - ["deweyDecimalNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeweyDecimalNumber")]], - ["dialColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DialColor")]], - ["dialWindowMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DialWindowMaterialType")]], - ["digitalZoom", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DigitalZoom")]], - ["director", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Director")]], - ["displaySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DisplaySize")]], - ["drumSetPieceQuantity", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DrumSetPieceQuantity")]], - ["dVDLayers", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDLayers")]], - ["dVDRWDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDRWDescription")]], - ["dVDSides", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDSides")]], - ["eAN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EAN")]], - ["edition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Edition")]], - ["eSRBAgeRating", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ESRBAgeRating")]], - ["externalDisplaySupportDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ExternalDisplaySupportDescription")]], - ["fabricType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FabricType")]], - ["faxNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FaxNumber")]], - ["feature", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Feature")]], - ["firstIssueLeadTime", ["StringWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FirstIssueLeadTime")]], - ["floppyDiskDriveDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FloppyDiskDriveDescription")]], - ["format", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Format")]], - ["gemType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GemType")]], - ["graphicsCardInterface", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsCardInterface")]], - ["graphicsDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsDescription")]], - ["graphicsMemorySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsMemorySize")]], - ["guitarAttribute", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarAttribute")]], - ["guitarBridgeSystem", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarBridgeSystem")]], - ["guitarPickThickness", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarPickThickness")]], - ["guitarPickupConfiguration", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarPickupConfiguration")]], - ["hardDiskCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HardDiskCount")]], - ["hardDiskSize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HardDiskSize")]], - ["hasAutoFocus", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasAutoFocus")]], - ["hasBurstMode", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasBurstMode")]], - ["hasInCameraEditing", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasInCameraEditing")]], - ["hasRedEyeReduction", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasRedEyeReduction")]], - ["hasSelfTimer", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasSelfTimer")]], - ["hasTripodMount", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasTripodMount")]], - ["hasVideoOut", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasVideoOut")]], - ["hasViewfinder", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasViewfinder")]], - ["hazardousMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HazardousMaterialType")]], - ["hoursOfOperation", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HoursOfOperation")]], - ["includedSoftware", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IncludedSoftware")]], - ["includesMp3Player", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IncludesMp3Player")]], - ["ingredients", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Ingredients")]], - ["instrumentKey", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "InstrumentKey")]], - ["isAdultProduct", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsAdultProduct")]], - ["isAutographed", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsAutographed")]], - ["iSBN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISBN")]], - ["isFragile", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsFragile")]], - ["isLabCreated", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsLabCreated")]], - ["isMemorabilia", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsMemorabilia")]], - ["iSOEquivalent", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISOEquivalent")]], - ["issuesPerYear", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IssuesPerYear")]], - ["itemDimensions", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemDimensions")]], - ["keyboardDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "KeyboardDescription")]], - ["label", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Label")]], - ["languages", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Languages")]], - ["legalDisclaimer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LegalDisclaimer")]], - ["lineVoltage", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LineVoltage")]], - ["listPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListPrice")]], - ["macroFocusRange", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MacroFocusRange")]], - ["magazineType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MagazineType")]], - ["malletHardness", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MalletHardness")]], - ["manufacturer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Manufacturer")]], - ["manufacturerLaborWarrantyDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerLaborWarrantyDescription")]], - ["manufacturerMaximumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerMaximumAge")]], - ["manufacturerMinimumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerMinimumAge")]], - ["manufacturerPartsWarrantyDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerPartsWarrantyDescription")]], - ["materialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaterialType")]], - ["maximumAperture", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumAperture")]], - ["maximumColorDepth", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumColorDepth")]], - ["maximumFocalLength", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumFocalLength")]], - ["maximumHighResolutionImages", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumHighResolutionImages")]], - ["maximumHorizontalResolution", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumHorizontalResolution")]], - ["maximumLowResolutionImages", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumLowResolutionImages")]], - ["maximumResolution", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumResolution")]], - ["maximumShutterSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumShutterSpeed")]], - ["maximumVerticalResolution", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumVerticalResolution")]], - ["maximumWeightRecommendation", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumWeightRecommendation")]], - ["memorySlotsAvailable", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MemorySlotsAvailable")]], - ["metalStamp", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MetalStamp")]], - ["metalType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MetalType")]], - ["miniMovieDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MiniMovieDescription")]], - ["minimumFocalLength", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MinimumFocalLength")]], - ["minimumShutterSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MinimumShutterSpeed")]], - ["model", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Model")]], - ["modelYear", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ModelYear")]], - ["modemDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ModemDescription")]], - ["monitorSize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MonitorSize")]], - ["monitorViewableDiagonalSize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MonitorViewableDiagonalSize")]], - ["mouseDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MouseDescription")]], - ["mPN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MPN")]], - ["musicalStyle", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MusicalStyle")]], - ["nativeResolution", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NativeResolution")]], - ["neighborhood", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Neighborhood")]], - ["networkInterfaceDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NetworkInterfaceDescription")]], - ["notebookDisplayTechnology", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NotebookDisplayTechnology")]], - ["notebookPointingDeviceDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NotebookPointingDeviceDescription")]], - ["numberOfDiscs", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfDiscs")]], - ["numberOfIssues", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfIssues")]], - ["numberOfItems", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfItems")]], - ["numberOfKeys", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfKeys")]], - ["numberOfPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfPages")]], - ["numberOfPearls", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfPearls")]], - ["numberOfRapidFireShots", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfRapidFireShots")]], - ["numberOfStones", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfStones")]], - ["numberOfStrings", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfStrings")]], - ["numberOfTracks", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfTracks")]], - ["opticalZoom", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OpticalZoom")]], - ["outputWattage", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OutputWattage")]], - ["packageDimensions", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PackageDimensions")]], - ["pearlLustre", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlLustre")]], - ["pearlMinimumColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlMinimumColor")]], - ["pearlShape", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlShape")]], - ["pearlStringingMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlStringingMethod")]], - ["pearlSurfaceBlemishes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlSurfaceBlemishes")]], - ["pearlType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlType")]], - ["pearlUniformity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlUniformity")]], - ["phoneNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PhoneNumber")]], - ["photoFlashType", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PhotoFlashType")]], - ["pictureFormat", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PictureFormat")]], - ["platform", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Platform")]], - ["priceRating", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PriceRating")]], - ["processorCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProcessorCount")]], - ["productGroup", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProductGroup")]], - ["promotionalTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PromotionalTag")]], - ["publicationDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PublicationDate")]], - ["publisher", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Publisher")]], - ["readingLevel", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReadingLevel")]], - ["recorderTrackCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RecorderTrackCount")]], - ["regionCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RegionCode")]], - ["regionOfOrigin", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RegionOfOrigin")]], - ["releaseDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReleaseDate")]], - ["removableMemory", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RemovableMemory")]], - ["resolutionModes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResolutionModes")]], - ["ringSize", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RingSize")]], - ["runningTime", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RunningTime")]], - ["secondaryCacheSize", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SecondaryCacheSize")]], - ["settingType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SettingType")]], - ["size", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Size")]], - ["sizePerPearl", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SizePerPearl")]], - ["skillLevel", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SkillLevel")]], - ["sKU", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SKU")]], - ["soundCardDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SoundCardDescription")]], - ["speakerCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpeakerCount")]], - ["speakerDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpeakerDescription")]], - ["specialFeatures", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpecialFeatures")]], - ["stoneClarity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneClarity")]], - ["stoneColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneColor")]], - ["stoneCut", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneCut")]], - ["stoneShape", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneShape")]], - ["stoneWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneWeight")]], - ["studio", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Studio")]], - ["subscriptionLength", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionLength")]], - ["supportedImageType", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SupportedImageType")]], - ["systemBusSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemBusSpeed")]], - ["systemMemorySizeMax", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemorySizeMax")]], - ["systemMemorySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemorySize")]], - ["systemMemoryType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemoryType")]], - ["theatricalReleaseDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TheatricalReleaseDate")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]], - ["totalDiamondWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalDiamondWeight")]], - ["totalExternalBaysFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalExternalBaysFree")]], - ["totalFirewirePorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFirewirePorts")]], - ["totalGemWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalGemWeight")]], - ["totalInternalBaysFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalInternalBaysFree")]], - ["totalMetalWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalMetalWeight")]], - ["totalNTSCPALPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalNTSCPALPorts")]], - ["totalParallelPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalParallelPorts")]], - ["totalPCCardSlots", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPCCardSlots")]], - ["totalPCISlotsFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPCISlotsFree")]], - ["totalSerialPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalSerialPorts")]], - ["totalSVideoOutPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalSVideoOutPorts")]], - ["totalUSB2Ports", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalUSB2Ports")]], - ["totalUSBPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalUSBPorts")]], - ["totalVGAOutPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVGAOutPorts")]], - ["uPC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "UPC")]], - ["variationDenomination", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDenomination")]], - ["variationDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDescription")]], - ["warranty", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Warranty")]], - ["watchMovementType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WatchMovementType")]], - ["waterResistanceDepth", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WaterResistanceDepth")]], - ["wirelessMicrophoneFrequency", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WirelessMicrophoneFrequency")]] - ] - - attr_accessor :actor - attr_accessor :address - attr_accessor :amazonMaximumAge - attr_accessor :amazonMinimumAge - attr_accessor :apertureModes - attr_accessor :artist - attr_accessor :aspectRatio - attr_accessor :audienceRating - attr_accessor :audioFormat - attr_accessor :author - attr_accessor :backFinding - attr_accessor :bandMaterialType - attr_accessor :batteriesIncluded - attr_accessor :batteries - attr_accessor :batteryDescription - attr_accessor :batteryType - attr_accessor :bezelMaterialType - attr_accessor :binding - attr_accessor :brand - attr_accessor :calendarType - attr_accessor :cameraManualFeatures - attr_accessor :caseDiameter - attr_accessor :caseMaterialType - attr_accessor :caseThickness - attr_accessor :caseType - attr_accessor :cDRWDescription - attr_accessor :chainType - attr_accessor :claspType - attr_accessor :clothingSize - attr_accessor :color - attr_accessor :compatibility - attr_accessor :computerHardwareType - attr_accessor :computerPlatform - attr_accessor :connectivity - attr_accessor :continuousShootingSpeed - attr_accessor :country - attr_accessor :cPUManufacturer - attr_accessor :cPUSpeed - attr_accessor :cPUType - attr_accessor :creator - attr_accessor :cuisine - attr_accessor :delayBetweenShots - attr_accessor :department - attr_accessor :deweyDecimalNumber - attr_accessor :dialColor - attr_accessor :dialWindowMaterialType - attr_accessor :digitalZoom - attr_accessor :director - attr_accessor :displaySize - attr_accessor :drumSetPieceQuantity - attr_accessor :dVDLayers - attr_accessor :dVDRWDescription - attr_accessor :dVDSides - attr_accessor :eAN - attr_accessor :edition - attr_accessor :eSRBAgeRating - attr_accessor :externalDisplaySupportDescription - attr_accessor :fabricType - attr_accessor :faxNumber - attr_accessor :feature - attr_accessor :firstIssueLeadTime - attr_accessor :floppyDiskDriveDescription - attr_accessor :format - attr_accessor :gemType - attr_accessor :graphicsCardInterface - attr_accessor :graphicsDescription - attr_accessor :graphicsMemorySize - attr_accessor :guitarAttribute - attr_accessor :guitarBridgeSystem - attr_accessor :guitarPickThickness - attr_accessor :guitarPickupConfiguration - attr_accessor :hardDiskCount - attr_accessor :hardDiskSize - attr_accessor :hasAutoFocus - attr_accessor :hasBurstMode - attr_accessor :hasInCameraEditing - attr_accessor :hasRedEyeReduction - attr_accessor :hasSelfTimer - attr_accessor :hasTripodMount - attr_accessor :hasVideoOut - attr_accessor :hasViewfinder - attr_accessor :hazardousMaterialType - attr_accessor :hoursOfOperation - attr_accessor :includedSoftware - attr_accessor :includesMp3Player - attr_accessor :ingredients - attr_accessor :instrumentKey - attr_accessor :isAdultProduct - attr_accessor :isAutographed - attr_accessor :iSBN - attr_accessor :isFragile - attr_accessor :isLabCreated - attr_accessor :isMemorabilia - attr_accessor :iSOEquivalent - attr_accessor :issuesPerYear - attr_accessor :itemDimensions - attr_accessor :keyboardDescription - attr_accessor :label - attr_accessor :languages - attr_accessor :legalDisclaimer - attr_accessor :lineVoltage - attr_accessor :listPrice - attr_accessor :macroFocusRange - attr_accessor :magazineType - attr_accessor :malletHardness - attr_accessor :manufacturer - attr_accessor :manufacturerLaborWarrantyDescription - attr_accessor :manufacturerMaximumAge - attr_accessor :manufacturerMinimumAge - attr_accessor :manufacturerPartsWarrantyDescription - attr_accessor :materialType - attr_accessor :maximumAperture - attr_accessor :maximumColorDepth - attr_accessor :maximumFocalLength - attr_accessor :maximumHighResolutionImages - attr_accessor :maximumHorizontalResolution - attr_accessor :maximumLowResolutionImages - attr_accessor :maximumResolution - attr_accessor :maximumShutterSpeed - attr_accessor :maximumVerticalResolution - attr_accessor :maximumWeightRecommendation - attr_accessor :memorySlotsAvailable - attr_accessor :metalStamp - attr_accessor :metalType - attr_accessor :miniMovieDescription - attr_accessor :minimumFocalLength - attr_accessor :minimumShutterSpeed - attr_accessor :model - attr_accessor :modelYear - attr_accessor :modemDescription - attr_accessor :monitorSize - attr_accessor :monitorViewableDiagonalSize - attr_accessor :mouseDescription - attr_accessor :mPN - attr_accessor :musicalStyle - attr_accessor :nativeResolution - attr_accessor :neighborhood - attr_accessor :networkInterfaceDescription - attr_accessor :notebookDisplayTechnology - attr_accessor :notebookPointingDeviceDescription - attr_accessor :numberOfDiscs - attr_accessor :numberOfIssues - attr_accessor :numberOfItems - attr_accessor :numberOfKeys - attr_accessor :numberOfPages - attr_accessor :numberOfPearls - attr_accessor :numberOfRapidFireShots - attr_accessor :numberOfStones - attr_accessor :numberOfStrings - attr_accessor :numberOfTracks - attr_accessor :opticalZoom - attr_accessor :outputWattage - attr_accessor :packageDimensions - attr_accessor :pearlLustre - attr_accessor :pearlMinimumColor - attr_accessor :pearlShape - attr_accessor :pearlStringingMethod - attr_accessor :pearlSurfaceBlemishes - attr_accessor :pearlType - attr_accessor :pearlUniformity - attr_accessor :phoneNumber - attr_accessor :photoFlashType - attr_accessor :pictureFormat - attr_accessor :platform - attr_accessor :priceRating - attr_accessor :processorCount - attr_accessor :productGroup - attr_accessor :promotionalTag - attr_accessor :publicationDate - attr_accessor :publisher - attr_accessor :readingLevel - attr_accessor :recorderTrackCount - attr_accessor :regionCode - attr_accessor :regionOfOrigin - attr_accessor :releaseDate - attr_accessor :removableMemory - attr_accessor :resolutionModes - attr_accessor :ringSize - attr_accessor :runningTime - attr_accessor :secondaryCacheSize - attr_accessor :settingType - attr_accessor :size - attr_accessor :sizePerPearl - attr_accessor :skillLevel - attr_accessor :sKU - attr_accessor :soundCardDescription - attr_accessor :speakerCount - attr_accessor :speakerDescription - attr_accessor :specialFeatures - attr_accessor :stoneClarity - attr_accessor :stoneColor - attr_accessor :stoneCut - attr_accessor :stoneShape - attr_accessor :stoneWeight - attr_accessor :studio - attr_accessor :subscriptionLength - attr_accessor :supportedImageType - attr_accessor :systemBusSpeed - attr_accessor :systemMemorySizeMax - attr_accessor :systemMemorySize - attr_accessor :systemMemoryType - attr_accessor :theatricalReleaseDate - attr_accessor :title - attr_accessor :totalDiamondWeight - attr_accessor :totalExternalBaysFree - attr_accessor :totalFirewirePorts - attr_accessor :totalGemWeight - attr_accessor :totalInternalBaysFree - attr_accessor :totalMetalWeight - attr_accessor :totalNTSCPALPorts - attr_accessor :totalParallelPorts - attr_accessor :totalPCCardSlots - attr_accessor :totalPCISlotsFree - attr_accessor :totalSerialPorts - attr_accessor :totalSVideoOutPorts - attr_accessor :totalUSB2Ports - attr_accessor :totalUSBPorts - attr_accessor :totalVGAOutPorts - attr_accessor :uPC - attr_accessor :variationDenomination - attr_accessor :variationDescription - attr_accessor :warranty - attr_accessor :watchMovementType - attr_accessor :waterResistanceDepth - attr_accessor :wirelessMicrophoneFrequency - - def initialize(actor = [], address = nil, amazonMaximumAge = nil, amazonMinimumAge = nil, apertureModes = nil, artist = [], aspectRatio = nil, audienceRating = nil, audioFormat = [], author = [], backFinding = nil, bandMaterialType = nil, batteriesIncluded = nil, batteries = nil, batteryDescription = nil, batteryType = nil, bezelMaterialType = nil, binding = nil, brand = nil, calendarType = nil, cameraManualFeatures = [], caseDiameter = nil, caseMaterialType = nil, caseThickness = nil, caseType = nil, cDRWDescription = nil, chainType = nil, claspType = nil, clothingSize = nil, color = nil, compatibility = nil, computerHardwareType = nil, computerPlatform = nil, connectivity = nil, continuousShootingSpeed = nil, country = nil, cPUManufacturer = nil, cPUSpeed = nil, cPUType = nil, creator = [], cuisine = nil, delayBetweenShots = nil, department = nil, deweyDecimalNumber = nil, dialColor = nil, dialWindowMaterialType = nil, digitalZoom = nil, director = [], displaySize = nil, drumSetPieceQuantity = nil, dVDLayers = nil, dVDRWDescription = nil, dVDSides = nil, eAN = nil, edition = nil, eSRBAgeRating = nil, externalDisplaySupportDescription = nil, fabricType = nil, faxNumber = nil, feature = [], firstIssueLeadTime = nil, floppyDiskDriveDescription = nil, format = [], gemType = nil, graphicsCardInterface = nil, graphicsDescription = nil, graphicsMemorySize = nil, guitarAttribute = nil, guitarBridgeSystem = nil, guitarPickThickness = nil, guitarPickupConfiguration = nil, hardDiskCount = nil, hardDiskSize = nil, hasAutoFocus = nil, hasBurstMode = nil, hasInCameraEditing = nil, hasRedEyeReduction = nil, hasSelfTimer = nil, hasTripodMount = nil, hasVideoOut = nil, hasViewfinder = nil, hazardousMaterialType = nil, hoursOfOperation = nil, includedSoftware = nil, includesMp3Player = nil, ingredients = nil, instrumentKey = nil, isAdultProduct = nil, isAutographed = nil, iSBN = nil, isFragile = nil, isLabCreated = nil, isMemorabilia = nil, iSOEquivalent = nil, issuesPerYear = nil, itemDimensions = nil, keyboardDescription = nil, label = nil, languages = nil, legalDisclaimer = nil, lineVoltage = nil, listPrice = nil, macroFocusRange = nil, magazineType = nil, malletHardness = nil, manufacturer = nil, manufacturerLaborWarrantyDescription = nil, manufacturerMaximumAge = nil, manufacturerMinimumAge = nil, manufacturerPartsWarrantyDescription = nil, materialType = nil, maximumAperture = nil, maximumColorDepth = nil, maximumFocalLength = nil, maximumHighResolutionImages = nil, maximumHorizontalResolution = nil, maximumLowResolutionImages = nil, maximumResolution = nil, maximumShutterSpeed = nil, maximumVerticalResolution = nil, maximumWeightRecommendation = nil, memorySlotsAvailable = nil, metalStamp = nil, metalType = nil, miniMovieDescription = nil, minimumFocalLength = nil, minimumShutterSpeed = nil, model = nil, modelYear = nil, modemDescription = nil, monitorSize = nil, monitorViewableDiagonalSize = nil, mouseDescription = nil, mPN = nil, musicalStyle = nil, nativeResolution = nil, neighborhood = nil, networkInterfaceDescription = nil, notebookDisplayTechnology = nil, notebookPointingDeviceDescription = nil, numberOfDiscs = nil, numberOfIssues = nil, numberOfItems = nil, numberOfKeys = nil, numberOfPages = nil, numberOfPearls = nil, numberOfRapidFireShots = nil, numberOfStones = nil, numberOfStrings = nil, numberOfTracks = nil, opticalZoom = nil, outputWattage = nil, packageDimensions = nil, pearlLustre = nil, pearlMinimumColor = nil, pearlShape = nil, pearlStringingMethod = nil, pearlSurfaceBlemishes = nil, pearlType = nil, pearlUniformity = nil, phoneNumber = nil, photoFlashType = [], pictureFormat = [], platform = [], priceRating = nil, processorCount = nil, productGroup = nil, promotionalTag = nil, publicationDate = nil, publisher = nil, readingLevel = nil, recorderTrackCount = nil, regionCode = nil, regionOfOrigin = nil, releaseDate = nil, removableMemory = nil, resolutionModes = nil, ringSize = nil, runningTime = nil, secondaryCacheSize = nil, settingType = nil, size = nil, sizePerPearl = nil, skillLevel = nil, sKU = nil, soundCardDescription = nil, speakerCount = nil, speakerDescription = nil, specialFeatures = [], stoneClarity = nil, stoneColor = nil, stoneCut = nil, stoneShape = nil, stoneWeight = nil, studio = nil, subscriptionLength = nil, supportedImageType = [], systemBusSpeed = nil, systemMemorySizeMax = nil, systemMemorySize = nil, systemMemoryType = nil, theatricalReleaseDate = nil, title = nil, totalDiamondWeight = nil, totalExternalBaysFree = nil, totalFirewirePorts = nil, totalGemWeight = nil, totalInternalBaysFree = nil, totalMetalWeight = nil, totalNTSCPALPorts = nil, totalParallelPorts = nil, totalPCCardSlots = nil, totalPCISlotsFree = nil, totalSerialPorts = nil, totalSVideoOutPorts = nil, totalUSB2Ports = nil, totalUSBPorts = nil, totalVGAOutPorts = nil, uPC = nil, variationDenomination = nil, variationDescription = nil, warranty = nil, watchMovementType = nil, waterResistanceDepth = nil, wirelessMicrophoneFrequency = nil) - @actor = actor - @address = address - @amazonMaximumAge = amazonMaximumAge - @amazonMinimumAge = amazonMinimumAge - @apertureModes = apertureModes - @artist = artist - @aspectRatio = aspectRatio - @audienceRating = audienceRating - @audioFormat = audioFormat - @author = author - @backFinding = backFinding - @bandMaterialType = bandMaterialType - @batteriesIncluded = batteriesIncluded - @batteries = batteries - @batteryDescription = batteryDescription - @batteryType = batteryType - @bezelMaterialType = bezelMaterialType - @binding = binding - @brand = brand - @calendarType = calendarType - @cameraManualFeatures = cameraManualFeatures - @caseDiameter = caseDiameter - @caseMaterialType = caseMaterialType - @caseThickness = caseThickness - @caseType = caseType - @cDRWDescription = cDRWDescription - @chainType = chainType - @claspType = claspType - @clothingSize = clothingSize - @color = color - @compatibility = compatibility - @computerHardwareType = computerHardwareType - @computerPlatform = computerPlatform - @connectivity = connectivity - @continuousShootingSpeed = continuousShootingSpeed - @country = country - @cPUManufacturer = cPUManufacturer - @cPUSpeed = cPUSpeed - @cPUType = cPUType - @creator = creator - @cuisine = cuisine - @delayBetweenShots = delayBetweenShots - @department = department - @deweyDecimalNumber = deweyDecimalNumber - @dialColor = dialColor - @dialWindowMaterialType = dialWindowMaterialType - @digitalZoom = digitalZoom - @director = director - @displaySize = displaySize - @drumSetPieceQuantity = drumSetPieceQuantity - @dVDLayers = dVDLayers - @dVDRWDescription = dVDRWDescription - @dVDSides = dVDSides - @eAN = eAN - @edition = edition - @eSRBAgeRating = eSRBAgeRating - @externalDisplaySupportDescription = externalDisplaySupportDescription - @fabricType = fabricType - @faxNumber = faxNumber - @feature = feature - @firstIssueLeadTime = firstIssueLeadTime - @floppyDiskDriveDescription = floppyDiskDriveDescription - @format = format - @gemType = gemType - @graphicsCardInterface = graphicsCardInterface - @graphicsDescription = graphicsDescription - @graphicsMemorySize = graphicsMemorySize - @guitarAttribute = guitarAttribute - @guitarBridgeSystem = guitarBridgeSystem - @guitarPickThickness = guitarPickThickness - @guitarPickupConfiguration = guitarPickupConfiguration - @hardDiskCount = hardDiskCount - @hardDiskSize = hardDiskSize - @hasAutoFocus = hasAutoFocus - @hasBurstMode = hasBurstMode - @hasInCameraEditing = hasInCameraEditing - @hasRedEyeReduction = hasRedEyeReduction - @hasSelfTimer = hasSelfTimer - @hasTripodMount = hasTripodMount - @hasVideoOut = hasVideoOut - @hasViewfinder = hasViewfinder - @hazardousMaterialType = hazardousMaterialType - @hoursOfOperation = hoursOfOperation - @includedSoftware = includedSoftware - @includesMp3Player = includesMp3Player - @ingredients = ingredients - @instrumentKey = instrumentKey - @isAdultProduct = isAdultProduct - @isAutographed = isAutographed - @iSBN = iSBN - @isFragile = isFragile - @isLabCreated = isLabCreated - @isMemorabilia = isMemorabilia - @iSOEquivalent = iSOEquivalent - @issuesPerYear = issuesPerYear - @itemDimensions = itemDimensions - @keyboardDescription = keyboardDescription - @label = label - @languages = languages - @legalDisclaimer = legalDisclaimer - @lineVoltage = lineVoltage - @listPrice = listPrice - @macroFocusRange = macroFocusRange - @magazineType = magazineType - @malletHardness = malletHardness - @manufacturer = manufacturer - @manufacturerLaborWarrantyDescription = manufacturerLaborWarrantyDescription - @manufacturerMaximumAge = manufacturerMaximumAge - @manufacturerMinimumAge = manufacturerMinimumAge - @manufacturerPartsWarrantyDescription = manufacturerPartsWarrantyDescription - @materialType = materialType - @maximumAperture = maximumAperture - @maximumColorDepth = maximumColorDepth - @maximumFocalLength = maximumFocalLength - @maximumHighResolutionImages = maximumHighResolutionImages - @maximumHorizontalResolution = maximumHorizontalResolution - @maximumLowResolutionImages = maximumLowResolutionImages - @maximumResolution = maximumResolution - @maximumShutterSpeed = maximumShutterSpeed - @maximumVerticalResolution = maximumVerticalResolution - @maximumWeightRecommendation = maximumWeightRecommendation - @memorySlotsAvailable = memorySlotsAvailable - @metalStamp = metalStamp - @metalType = metalType - @miniMovieDescription = miniMovieDescription - @minimumFocalLength = minimumFocalLength - @minimumShutterSpeed = minimumShutterSpeed - @model = model - @modelYear = modelYear - @modemDescription = modemDescription - @monitorSize = monitorSize - @monitorViewableDiagonalSize = monitorViewableDiagonalSize - @mouseDescription = mouseDescription - @mPN = mPN - @musicalStyle = musicalStyle - @nativeResolution = nativeResolution - @neighborhood = neighborhood - @networkInterfaceDescription = networkInterfaceDescription - @notebookDisplayTechnology = notebookDisplayTechnology - @notebookPointingDeviceDescription = notebookPointingDeviceDescription - @numberOfDiscs = numberOfDiscs - @numberOfIssues = numberOfIssues - @numberOfItems = numberOfItems - @numberOfKeys = numberOfKeys - @numberOfPages = numberOfPages - @numberOfPearls = numberOfPearls - @numberOfRapidFireShots = numberOfRapidFireShots - @numberOfStones = numberOfStones - @numberOfStrings = numberOfStrings - @numberOfTracks = numberOfTracks - @opticalZoom = opticalZoom - @outputWattage = outputWattage - @packageDimensions = packageDimensions - @pearlLustre = pearlLustre - @pearlMinimumColor = pearlMinimumColor - @pearlShape = pearlShape - @pearlStringingMethod = pearlStringingMethod - @pearlSurfaceBlemishes = pearlSurfaceBlemishes - @pearlType = pearlType - @pearlUniformity = pearlUniformity - @phoneNumber = phoneNumber - @photoFlashType = photoFlashType - @pictureFormat = pictureFormat - @platform = platform - @priceRating = priceRating - @processorCount = processorCount - @productGroup = productGroup - @promotionalTag = promotionalTag - @publicationDate = publicationDate - @publisher = publisher - @readingLevel = readingLevel - @recorderTrackCount = recorderTrackCount - @regionCode = regionCode - @regionOfOrigin = regionOfOrigin - @releaseDate = releaseDate - @removableMemory = removableMemory - @resolutionModes = resolutionModes - @ringSize = ringSize - @runningTime = runningTime - @secondaryCacheSize = secondaryCacheSize - @settingType = settingType - @size = size - @sizePerPearl = sizePerPearl - @skillLevel = skillLevel - @sKU = sKU - @soundCardDescription = soundCardDescription - @speakerCount = speakerCount - @speakerDescription = speakerDescription - @specialFeatures = specialFeatures - @stoneClarity = stoneClarity - @stoneColor = stoneColor - @stoneCut = stoneCut - @stoneShape = stoneShape - @stoneWeight = stoneWeight - @studio = studio - @subscriptionLength = subscriptionLength - @supportedImageType = supportedImageType - @systemBusSpeed = systemBusSpeed - @systemMemorySizeMax = systemMemorySizeMax - @systemMemorySize = systemMemorySize - @systemMemoryType = systemMemoryType - @theatricalReleaseDate = theatricalReleaseDate - @title = title - @totalDiamondWeight = totalDiamondWeight - @totalExternalBaysFree = totalExternalBaysFree - @totalFirewirePorts = totalFirewirePorts - @totalGemWeight = totalGemWeight - @totalInternalBaysFree = totalInternalBaysFree - @totalMetalWeight = totalMetalWeight - @totalNTSCPALPorts = totalNTSCPALPorts - @totalParallelPorts = totalParallelPorts - @totalPCCardSlots = totalPCCardSlots - @totalPCISlotsFree = totalPCISlotsFree - @totalSerialPorts = totalSerialPorts - @totalSVideoOutPorts = totalSVideoOutPorts - @totalUSB2Ports = totalUSB2Ports - @totalUSBPorts = totalUSBPorts - @totalVGAOutPorts = totalVGAOutPorts - @uPC = uPC - @variationDenomination = variationDenomination - @variationDescription = variationDescription - @warranty = warranty - @watchMovementType = watchMovementType - @waterResistanceDepth = waterResistanceDepth - @wirelessMicrophoneFrequency = wirelessMicrophoneFrequency - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}MerchantItemAttributes -class MerchantItemAttributes - @@schema_type = "MerchantItemAttributes" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_qualified = "true" - @@schema_element = [ - ["actor", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Actor")]], - ["address", ["Address", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Address")]], - ["amazonMaximumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AmazonMaximumAge")]], - ["amazonMinimumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AmazonMinimumAge")]], - ["apertureModes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ApertureModes")]], - ["artist", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Artist")]], - ["aspectRatio", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AspectRatio")]], - ["audienceRating", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AudienceRating")]], - ["audioFormat", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AudioFormat")]], - ["author", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Author")]], - ["backFinding", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BackFinding")]], - ["bandMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BandMaterialType")]], - ["batteriesIncluded", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteriesIncluded")]], - ["batteries", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Batteries")]], - ["batteryDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteryDescription")]], - ["batteryType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BatteryType")]], - ["bezelMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BezelMaterialType")]], - ["binding", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Binding")]], - ["brand", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Brand")]], - ["calendarType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CalendarType")]], - ["cameraManualFeatures", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CameraManualFeatures")]], - ["caseDiameter", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseDiameter")]], - ["caseMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseMaterialType")]], - ["caseThickness", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseThickness")]], - ["caseType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CaseType")]], - ["cDRWDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CDRWDescription")]], - ["chainType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ChainType")]], - ["claspType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ClaspType")]], - ["clothingSize", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ClothingSize")]], - ["color", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Color")]], - ["compatibility", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Compatibility")]], - ["computerHardwareType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ComputerHardwareType")]], - ["computerPlatform", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ComputerPlatform")]], - ["connectivity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Connectivity")]], - ["continuousShootingSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ContinuousShootingSpeed")]], - ["country", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Country")]], - ["cPUManufacturer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUManufacturer")]], - ["cPUSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUSpeed")]], - ["cPUType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CPUType")]], - ["creator", ["[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Creator")]], - ["cuisine", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cuisine")]], - ["delayBetweenShots", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DelayBetweenShots")]], - ["department", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Department")]], - ["description", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Description")]], - ["deweyDecimalNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeweyDecimalNumber")]], - ["dialColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DialColor")]], - ["dialWindowMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DialWindowMaterialType")]], - ["digitalZoom", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DigitalZoom")]], - ["director", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Director")]], - ["displaySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DisplaySize")]], - ["drumSetPieceQuantity", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DrumSetPieceQuantity")]], - ["dVDLayers", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDLayers")]], - ["dVDRWDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDRWDescription")]], - ["dVDSides", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DVDSides")]], - ["eAN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "EAN")]], - ["edition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Edition")]], - ["eSRBAgeRating", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ESRBAgeRating")]], - ["externalDisplaySupportDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ExternalDisplaySupportDescription")]], - ["fabricType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FabricType")]], - ["faxNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FaxNumber")]], - ["feature", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Feature")]], - ["firstIssueLeadTime", ["StringWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FirstIssueLeadTime")]], - ["floppyDiskDriveDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FloppyDiskDriveDescription")]], - ["format", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Format")]], - ["gemType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GemType")]], - ["graphicsCardInterface", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsCardInterface")]], - ["graphicsDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsDescription")]], - ["graphicsMemorySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GraphicsMemorySize")]], - ["guitarAttribute", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarAttribute")]], - ["guitarBridgeSystem", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarBridgeSystem")]], - ["guitarPickThickness", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarPickThickness")]], - ["guitarPickupConfiguration", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "GuitarPickupConfiguration")]], - ["hardDiskCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HardDiskCount")]], - ["hardDiskSize", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HardDiskSize")]], - ["hasAutoFocus", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasAutoFocus")]], - ["hasBurstMode", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasBurstMode")]], - ["hasInCameraEditing", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasInCameraEditing")]], - ["hasRedEyeReduction", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasRedEyeReduction")]], - ["hasSelfTimer", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasSelfTimer")]], - ["hasTripodMount", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasTripodMount")]], - ["hasVideoOut", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasVideoOut")]], - ["hasViewfinder", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HasViewfinder")]], - ["hazardousMaterialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HazardousMaterialType")]], - ["hoursOfOperation", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HoursOfOperation")]], - ["includedSoftware", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IncludedSoftware")]], - ["includesMp3Player", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IncludesMp3Player")]], - ["indications", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Indications")]], - ["ingredients", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Ingredients")]], - ["instrumentKey", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "InstrumentKey")]], - ["isAutographed", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsAutographed")]], - ["iSBN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISBN")]], - ["isFragile", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsFragile")]], - ["isLabCreated", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsLabCreated")]], - ["isMemorabilia", ["SOAP::SOAPBoolean", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsMemorabilia")]], - ["iSOEquivalent", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISOEquivalent")]], - ["issuesPerYear", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IssuesPerYear")]], - ["itemDimensions", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemDimensions")]], - ["keyboardDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "KeyboardDescription")]], - ["label", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Label")]], - ["languages", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Languages")]], - ["legalDisclaimer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LegalDisclaimer")]], - ["lineVoltage", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LineVoltage")]], - ["listPrice", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListPrice")]], - ["macroFocusRange", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MacroFocusRange")]], - ["magazineType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MagazineType")]], - ["malletHardness", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MalletHardness")]], - ["manufacturer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Manufacturer")]], - ["manufacturerLaborWarrantyDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerLaborWarrantyDescription")]], - ["manufacturerMaximumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerMaximumAge")]], - ["manufacturerMinimumAge", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerMinimumAge")]], - ["manufacturerPartsWarrantyDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ManufacturerPartsWarrantyDescription")]], - ["materialType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaterialType")]], - ["maximumAperture", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumAperture")]], - ["maximumColorDepth", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumColorDepth")]], - ["maximumFocalLength", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumFocalLength")]], - ["maximumHighResolutionImages", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumHighResolutionImages")]], - ["maximumHorizontalResolution", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumHorizontalResolution")]], - ["maximumLowResolutionImages", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumLowResolutionImages")]], - ["maximumResolution", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumResolution")]], - ["maximumShutterSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumShutterSpeed")]], - ["maximumVerticalResolution", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumVerticalResolution")]], - ["maximumWeightRecommendation", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumWeightRecommendation")]], - ["memorySlotsAvailable", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MemorySlotsAvailable")]], - ["metalStamp", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MetalStamp")]], - ["metalType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MetalType")]], - ["miniMovieDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MiniMovieDescription")]], - ["minimumFocalLength", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MinimumFocalLength")]], - ["minimumShutterSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MinimumShutterSpeed")]], - ["model", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Model")]], - ["modelYear", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ModelYear")]], - ["modemDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ModemDescription")]], - ["monitorSize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MonitorSize")]], - ["monitorViewableDiagonalSize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MonitorViewableDiagonalSize")]], - ["mouseDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MouseDescription")]], - ["mPN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MPN")]], - ["musicalStyle", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MusicalStyle")]], - ["nativeResolution", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NativeResolution")]], - ["neighborhood", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Neighborhood")]], - ["networkInterfaceDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NetworkInterfaceDescription")]], - ["notebookDisplayTechnology", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NotebookDisplayTechnology")]], - ["notebookPointingDeviceDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NotebookPointingDeviceDescription")]], - ["numberOfDiscs", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfDiscs")]], - ["numberOfIssues", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfIssues")]], - ["numberOfItems", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfItems")]], - ["numberOfKeys", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfKeys")]], - ["numberOfPages", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfPages")]], - ["numberOfPearls", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfPearls")]], - ["numberOfRapidFireShots", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfRapidFireShots")]], - ["numberOfStones", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfStones")]], - ["numberOfStrings", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfStrings")]], - ["numberOfTracks", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "NumberOfTracks")]], - ["opticalZoom", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OpticalZoom")]], - ["outputWattage", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OutputWattage")]], - ["packageDimensions", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PackageDimensions")]], - ["pearlLustre", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlLustre")]], - ["pearlMinimumColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlMinimumColor")]], - ["pearlShape", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlShape")]], - ["pearlStringingMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlStringingMethod")]], - ["pearlSurfaceBlemishes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlSurfaceBlemishes")]], - ["pearlType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlType")]], - ["pearlUniformity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PearlUniformity")]], - ["phoneNumber", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PhoneNumber")]], - ["photoFlashType", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PhotoFlashType")]], - ["pictureFormat", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PictureFormat")]], - ["platform", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Platform")]], - ["priceRating", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PriceRating")]], - ["processorCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProcessorCount")]], - ["productGroup", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProductGroup")]], - ["promotionalTag", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PromotionalTag")]], - ["publicationDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PublicationDate")]], - ["publisher", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Publisher")]], - ["readingLevel", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReadingLevel")]], - ["recorderTrackCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RecorderTrackCount")]], - ["regionCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RegionCode")]], - ["regionOfOrigin", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RegionOfOrigin")]], - ["releaseDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReleaseDate")]], - ["removableMemory", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RemovableMemory")]], - ["resolutionModes", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResolutionModes")]], - ["ringSize", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "RingSize")]], - ["safetyWarning", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SafetyWarning")]], - ["secondaryCacheSize", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SecondaryCacheSize")]], - ["settingType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SettingType")]], - ["size", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Size")]], - ["sKU", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SKU")]], - ["sizePerPearl", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SizePerPearl")]], - ["skillLevel", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SkillLevel")]], - ["soundCardDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SoundCardDescription")]], - ["speakerCount", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpeakerCount")]], - ["speakerDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpeakerDescription")]], - ["specialFeatures", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SpecialFeatures")]], - ["stoneClarity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneClarity")]], - ["stoneColor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneColor")]], - ["stoneCut", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneCut")]], - ["stoneShape", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneShape")]], - ["stoneWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "StoneWeight")]], - ["studio", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Studio")]], - ["subscriptionLength", ["NonNegativeIntegerWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SubscriptionLength")]], - ["supportedImageType", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SupportedImageType")]], - ["systemBusSpeed", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemBusSpeed")]], - ["systemMemorySizeMax", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemorySizeMax")]], - ["systemMemorySize", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemorySize")]], - ["systemMemoryType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SystemMemoryType")]], - ["theatricalReleaseDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TheatricalReleaseDate")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]], - ["totalDiamondWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalDiamondWeight")]], - ["totalExternalBaysFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalExternalBaysFree")]], - ["totalFirewirePorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalFirewirePorts")]], - ["totalGemWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalGemWeight")]], - ["totalInternalBaysFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalInternalBaysFree")]], - ["totalMetalWeight", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalMetalWeight")]], - ["totalNTSCPALPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalNTSCPALPorts")]], - ["totalParallelPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalParallelPorts")]], - ["totalPCCardSlots", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPCCardSlots")]], - ["totalPCISlotsFree", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalPCISlotsFree")]], - ["totalSerialPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalSerialPorts")]], - ["totalSVideoOutPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalSVideoOutPorts")]], - ["totalUSB2Ports", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalUSB2Ports")]], - ["totalUSBPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalUSBPorts")]], - ["totalVGAOutPorts", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TotalVGAOutPorts")]], - ["uPC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "UPC")]], - ["variationDenomination", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDenomination")]], - ["variationDescription", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationDescription")]], - ["warranty", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Warranty")]], - ["watchMovementType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WatchMovementType")]], - ["waterResistanceDepth", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WaterResistanceDepth")]], - ["wirelessMicrophoneFrequency", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "WirelessMicrophoneFrequency")]] - ] - - attr_accessor :actor - attr_accessor :address - attr_accessor :amazonMaximumAge - attr_accessor :amazonMinimumAge - attr_accessor :apertureModes - attr_accessor :artist - attr_accessor :aspectRatio - attr_accessor :audienceRating - attr_accessor :audioFormat - attr_accessor :author - attr_accessor :backFinding - attr_accessor :bandMaterialType - attr_accessor :batteriesIncluded - attr_accessor :batteries - attr_accessor :batteryDescription - attr_accessor :batteryType - attr_accessor :bezelMaterialType - attr_accessor :binding - attr_accessor :brand - attr_accessor :calendarType - attr_accessor :cameraManualFeatures - attr_accessor :caseDiameter - attr_accessor :caseMaterialType - attr_accessor :caseThickness - attr_accessor :caseType - attr_accessor :cDRWDescription - attr_accessor :chainType - attr_accessor :claspType - attr_accessor :clothingSize - attr_accessor :color - attr_accessor :compatibility - attr_accessor :computerHardwareType - attr_accessor :computerPlatform - attr_accessor :connectivity - attr_accessor :continuousShootingSpeed - attr_accessor :country - attr_accessor :cPUManufacturer - attr_accessor :cPUSpeed - attr_accessor :cPUType - attr_accessor :creator - attr_accessor :cuisine - attr_accessor :delayBetweenShots - attr_accessor :department - attr_accessor :description - attr_accessor :deweyDecimalNumber - attr_accessor :dialColor - attr_accessor :dialWindowMaterialType - attr_accessor :digitalZoom - attr_accessor :director - attr_accessor :displaySize - attr_accessor :drumSetPieceQuantity - attr_accessor :dVDLayers - attr_accessor :dVDRWDescription - attr_accessor :dVDSides - attr_accessor :eAN - attr_accessor :edition - attr_accessor :eSRBAgeRating - attr_accessor :externalDisplaySupportDescription - attr_accessor :fabricType - attr_accessor :faxNumber - attr_accessor :feature - attr_accessor :firstIssueLeadTime - attr_accessor :floppyDiskDriveDescription - attr_accessor :format - attr_accessor :gemType - attr_accessor :graphicsCardInterface - attr_accessor :graphicsDescription - attr_accessor :graphicsMemorySize - attr_accessor :guitarAttribute - attr_accessor :guitarBridgeSystem - attr_accessor :guitarPickThickness - attr_accessor :guitarPickupConfiguration - attr_accessor :hardDiskCount - attr_accessor :hardDiskSize - attr_accessor :hasAutoFocus - attr_accessor :hasBurstMode - attr_accessor :hasInCameraEditing - attr_accessor :hasRedEyeReduction - attr_accessor :hasSelfTimer - attr_accessor :hasTripodMount - attr_accessor :hasVideoOut - attr_accessor :hasViewfinder - attr_accessor :hazardousMaterialType - attr_accessor :hoursOfOperation - attr_accessor :includedSoftware - attr_accessor :includesMp3Player - attr_accessor :indications - attr_accessor :ingredients - attr_accessor :instrumentKey - attr_accessor :isAutographed - attr_accessor :iSBN - attr_accessor :isFragile - attr_accessor :isLabCreated - attr_accessor :isMemorabilia - attr_accessor :iSOEquivalent - attr_accessor :issuesPerYear - attr_accessor :itemDimensions - attr_accessor :keyboardDescription - attr_accessor :label - attr_accessor :languages - attr_accessor :legalDisclaimer - attr_accessor :lineVoltage - attr_accessor :listPrice - attr_accessor :macroFocusRange - attr_accessor :magazineType - attr_accessor :malletHardness - attr_accessor :manufacturer - attr_accessor :manufacturerLaborWarrantyDescription - attr_accessor :manufacturerMaximumAge - attr_accessor :manufacturerMinimumAge - attr_accessor :manufacturerPartsWarrantyDescription - attr_accessor :materialType - attr_accessor :maximumAperture - attr_accessor :maximumColorDepth - attr_accessor :maximumFocalLength - attr_accessor :maximumHighResolutionImages - attr_accessor :maximumHorizontalResolution - attr_accessor :maximumLowResolutionImages - attr_accessor :maximumResolution - attr_accessor :maximumShutterSpeed - attr_accessor :maximumVerticalResolution - attr_accessor :maximumWeightRecommendation - attr_accessor :memorySlotsAvailable - attr_accessor :metalStamp - attr_accessor :metalType - attr_accessor :miniMovieDescription - attr_accessor :minimumFocalLength - attr_accessor :minimumShutterSpeed - attr_accessor :model - attr_accessor :modelYear - attr_accessor :modemDescription - attr_accessor :monitorSize - attr_accessor :monitorViewableDiagonalSize - attr_accessor :mouseDescription - attr_accessor :mPN - attr_accessor :musicalStyle - attr_accessor :nativeResolution - attr_accessor :neighborhood - attr_accessor :networkInterfaceDescription - attr_accessor :notebookDisplayTechnology - attr_accessor :notebookPointingDeviceDescription - attr_accessor :numberOfDiscs - attr_accessor :numberOfIssues - attr_accessor :numberOfItems - attr_accessor :numberOfKeys - attr_accessor :numberOfPages - attr_accessor :numberOfPearls - attr_accessor :numberOfRapidFireShots - attr_accessor :numberOfStones - attr_accessor :numberOfStrings - attr_accessor :numberOfTracks - attr_accessor :opticalZoom - attr_accessor :outputWattage - attr_accessor :packageDimensions - attr_accessor :pearlLustre - attr_accessor :pearlMinimumColor - attr_accessor :pearlShape - attr_accessor :pearlStringingMethod - attr_accessor :pearlSurfaceBlemishes - attr_accessor :pearlType - attr_accessor :pearlUniformity - attr_accessor :phoneNumber - attr_accessor :photoFlashType - attr_accessor :pictureFormat - attr_accessor :platform - attr_accessor :priceRating - attr_accessor :processorCount - attr_accessor :productGroup - attr_accessor :promotionalTag - attr_accessor :publicationDate - attr_accessor :publisher - attr_accessor :readingLevel - attr_accessor :recorderTrackCount - attr_accessor :regionCode - attr_accessor :regionOfOrigin - attr_accessor :releaseDate - attr_accessor :removableMemory - attr_accessor :resolutionModes - attr_accessor :ringSize - attr_accessor :safetyWarning - attr_accessor :secondaryCacheSize - attr_accessor :settingType - attr_accessor :size - attr_accessor :sKU - attr_accessor :sizePerPearl - attr_accessor :skillLevel - attr_accessor :soundCardDescription - attr_accessor :speakerCount - attr_accessor :speakerDescription - attr_accessor :specialFeatures - attr_accessor :stoneClarity - attr_accessor :stoneColor - attr_accessor :stoneCut - attr_accessor :stoneShape - attr_accessor :stoneWeight - attr_accessor :studio - attr_accessor :subscriptionLength - attr_accessor :supportedImageType - attr_accessor :systemBusSpeed - attr_accessor :systemMemorySizeMax - attr_accessor :systemMemorySize - attr_accessor :systemMemoryType - attr_accessor :theatricalReleaseDate - attr_accessor :title - attr_accessor :totalDiamondWeight - attr_accessor :totalExternalBaysFree - attr_accessor :totalFirewirePorts - attr_accessor :totalGemWeight - attr_accessor :totalInternalBaysFree - attr_accessor :totalMetalWeight - attr_accessor :totalNTSCPALPorts - attr_accessor :totalParallelPorts - attr_accessor :totalPCCardSlots - attr_accessor :totalPCISlotsFree - attr_accessor :totalSerialPorts - attr_accessor :totalSVideoOutPorts - attr_accessor :totalUSB2Ports - attr_accessor :totalUSBPorts - attr_accessor :totalVGAOutPorts - attr_accessor :uPC - attr_accessor :variationDenomination - attr_accessor :variationDescription - attr_accessor :warranty - attr_accessor :watchMovementType - attr_accessor :waterResistanceDepth - attr_accessor :wirelessMicrophoneFrequency - - def initialize(actor = [], address = nil, amazonMaximumAge = nil, amazonMinimumAge = nil, apertureModes = nil, artist = [], aspectRatio = nil, audienceRating = nil, audioFormat = [], author = [], backFinding = nil, bandMaterialType = nil, batteriesIncluded = nil, batteries = nil, batteryDescription = nil, batteryType = nil, bezelMaterialType = nil, binding = nil, brand = nil, calendarType = nil, cameraManualFeatures = [], caseDiameter = nil, caseMaterialType = nil, caseThickness = nil, caseType = nil, cDRWDescription = nil, chainType = nil, claspType = nil, clothingSize = nil, color = nil, compatibility = nil, computerHardwareType = nil, computerPlatform = nil, connectivity = nil, continuousShootingSpeed = nil, country = nil, cPUManufacturer = nil, cPUSpeed = nil, cPUType = nil, creator = [], cuisine = nil, delayBetweenShots = nil, department = nil, description = nil, deweyDecimalNumber = nil, dialColor = nil, dialWindowMaterialType = nil, digitalZoom = nil, director = [], displaySize = nil, drumSetPieceQuantity = nil, dVDLayers = nil, dVDRWDescription = nil, dVDSides = nil, eAN = nil, edition = nil, eSRBAgeRating = nil, externalDisplaySupportDescription = nil, fabricType = nil, faxNumber = nil, feature = [], firstIssueLeadTime = nil, floppyDiskDriveDescription = nil, format = [], gemType = nil, graphicsCardInterface = nil, graphicsDescription = nil, graphicsMemorySize = nil, guitarAttribute = nil, guitarBridgeSystem = nil, guitarPickThickness = nil, guitarPickupConfiguration = nil, hardDiskCount = nil, hardDiskSize = nil, hasAutoFocus = nil, hasBurstMode = nil, hasInCameraEditing = nil, hasRedEyeReduction = nil, hasSelfTimer = nil, hasTripodMount = nil, hasVideoOut = nil, hasViewfinder = nil, hazardousMaterialType = nil, hoursOfOperation = nil, includedSoftware = nil, includesMp3Player = nil, indications = nil, ingredients = nil, instrumentKey = nil, isAutographed = nil, iSBN = nil, isFragile = nil, isLabCreated = nil, isMemorabilia = nil, iSOEquivalent = nil, issuesPerYear = nil, itemDimensions = nil, keyboardDescription = nil, label = nil, languages = nil, legalDisclaimer = nil, lineVoltage = nil, listPrice = nil, macroFocusRange = nil, magazineType = nil, malletHardness = nil, manufacturer = nil, manufacturerLaborWarrantyDescription = nil, manufacturerMaximumAge = nil, manufacturerMinimumAge = nil, manufacturerPartsWarrantyDescription = nil, materialType = nil, maximumAperture = nil, maximumColorDepth = nil, maximumFocalLength = nil, maximumHighResolutionImages = nil, maximumHorizontalResolution = nil, maximumLowResolutionImages = nil, maximumResolution = nil, maximumShutterSpeed = nil, maximumVerticalResolution = nil, maximumWeightRecommendation = nil, memorySlotsAvailable = nil, metalStamp = nil, metalType = nil, miniMovieDescription = nil, minimumFocalLength = nil, minimumShutterSpeed = nil, model = nil, modelYear = nil, modemDescription = nil, monitorSize = nil, monitorViewableDiagonalSize = nil, mouseDescription = nil, mPN = nil, musicalStyle = nil, nativeResolution = nil, neighborhood = nil, networkInterfaceDescription = nil, notebookDisplayTechnology = nil, notebookPointingDeviceDescription = nil, numberOfDiscs = nil, numberOfIssues = nil, numberOfItems = nil, numberOfKeys = nil, numberOfPages = nil, numberOfPearls = nil, numberOfRapidFireShots = nil, numberOfStones = nil, numberOfStrings = nil, numberOfTracks = nil, opticalZoom = nil, outputWattage = nil, packageDimensions = nil, pearlLustre = nil, pearlMinimumColor = nil, pearlShape = nil, pearlStringingMethod = nil, pearlSurfaceBlemishes = nil, pearlType = nil, pearlUniformity = nil, phoneNumber = nil, photoFlashType = [], pictureFormat = [], platform = [], priceRating = nil, processorCount = nil, productGroup = nil, promotionalTag = nil, publicationDate = nil, publisher = nil, readingLevel = nil, recorderTrackCount = nil, regionCode = nil, regionOfOrigin = nil, releaseDate = nil, removableMemory = nil, resolutionModes = nil, ringSize = nil, safetyWarning = nil, secondaryCacheSize = nil, settingType = nil, size = nil, sKU = nil, sizePerPearl = nil, skillLevel = nil, soundCardDescription = nil, speakerCount = nil, speakerDescription = nil, specialFeatures = [], stoneClarity = nil, stoneColor = nil, stoneCut = nil, stoneShape = nil, stoneWeight = nil, studio = nil, subscriptionLength = nil, supportedImageType = [], systemBusSpeed = nil, systemMemorySizeMax = nil, systemMemorySize = nil, systemMemoryType = nil, theatricalReleaseDate = nil, title = nil, totalDiamondWeight = nil, totalExternalBaysFree = nil, totalFirewirePorts = nil, totalGemWeight = nil, totalInternalBaysFree = nil, totalMetalWeight = nil, totalNTSCPALPorts = nil, totalParallelPorts = nil, totalPCCardSlots = nil, totalPCISlotsFree = nil, totalSerialPorts = nil, totalSVideoOutPorts = nil, totalUSB2Ports = nil, totalUSBPorts = nil, totalVGAOutPorts = nil, uPC = nil, variationDenomination = nil, variationDescription = nil, warranty = nil, watchMovementType = nil, waterResistanceDepth = nil, wirelessMicrophoneFrequency = nil) - @actor = actor - @address = address - @amazonMaximumAge = amazonMaximumAge - @amazonMinimumAge = amazonMinimumAge - @apertureModes = apertureModes - @artist = artist - @aspectRatio = aspectRatio - @audienceRating = audienceRating - @audioFormat = audioFormat - @author = author - @backFinding = backFinding - @bandMaterialType = bandMaterialType - @batteriesIncluded = batteriesIncluded - @batteries = batteries - @batteryDescription = batteryDescription - @batteryType = batteryType - @bezelMaterialType = bezelMaterialType - @binding = binding - @brand = brand - @calendarType = calendarType - @cameraManualFeatures = cameraManualFeatures - @caseDiameter = caseDiameter - @caseMaterialType = caseMaterialType - @caseThickness = caseThickness - @caseType = caseType - @cDRWDescription = cDRWDescription - @chainType = chainType - @claspType = claspType - @clothingSize = clothingSize - @color = color - @compatibility = compatibility - @computerHardwareType = computerHardwareType - @computerPlatform = computerPlatform - @connectivity = connectivity - @continuousShootingSpeed = continuousShootingSpeed - @country = country - @cPUManufacturer = cPUManufacturer - @cPUSpeed = cPUSpeed - @cPUType = cPUType - @creator = creator - @cuisine = cuisine - @delayBetweenShots = delayBetweenShots - @department = department - @description = description - @deweyDecimalNumber = deweyDecimalNumber - @dialColor = dialColor - @dialWindowMaterialType = dialWindowMaterialType - @digitalZoom = digitalZoom - @director = director - @displaySize = displaySize - @drumSetPieceQuantity = drumSetPieceQuantity - @dVDLayers = dVDLayers - @dVDRWDescription = dVDRWDescription - @dVDSides = dVDSides - @eAN = eAN - @edition = edition - @eSRBAgeRating = eSRBAgeRating - @externalDisplaySupportDescription = externalDisplaySupportDescription - @fabricType = fabricType - @faxNumber = faxNumber - @feature = feature - @firstIssueLeadTime = firstIssueLeadTime - @floppyDiskDriveDescription = floppyDiskDriveDescription - @format = format - @gemType = gemType - @graphicsCardInterface = graphicsCardInterface - @graphicsDescription = graphicsDescription - @graphicsMemorySize = graphicsMemorySize - @guitarAttribute = guitarAttribute - @guitarBridgeSystem = guitarBridgeSystem - @guitarPickThickness = guitarPickThickness - @guitarPickupConfiguration = guitarPickupConfiguration - @hardDiskCount = hardDiskCount - @hardDiskSize = hardDiskSize - @hasAutoFocus = hasAutoFocus - @hasBurstMode = hasBurstMode - @hasInCameraEditing = hasInCameraEditing - @hasRedEyeReduction = hasRedEyeReduction - @hasSelfTimer = hasSelfTimer - @hasTripodMount = hasTripodMount - @hasVideoOut = hasVideoOut - @hasViewfinder = hasViewfinder - @hazardousMaterialType = hazardousMaterialType - @hoursOfOperation = hoursOfOperation - @includedSoftware = includedSoftware - @includesMp3Player = includesMp3Player - @indications = indications - @ingredients = ingredients - @instrumentKey = instrumentKey - @isAutographed = isAutographed - @iSBN = iSBN - @isFragile = isFragile - @isLabCreated = isLabCreated - @isMemorabilia = isMemorabilia - @iSOEquivalent = iSOEquivalent - @issuesPerYear = issuesPerYear - @itemDimensions = itemDimensions - @keyboardDescription = keyboardDescription - @label = label - @languages = languages - @legalDisclaimer = legalDisclaimer - @lineVoltage = lineVoltage - @listPrice = listPrice - @macroFocusRange = macroFocusRange - @magazineType = magazineType - @malletHardness = malletHardness - @manufacturer = manufacturer - @manufacturerLaborWarrantyDescription = manufacturerLaborWarrantyDescription - @manufacturerMaximumAge = manufacturerMaximumAge - @manufacturerMinimumAge = manufacturerMinimumAge - @manufacturerPartsWarrantyDescription = manufacturerPartsWarrantyDescription - @materialType = materialType - @maximumAperture = maximumAperture - @maximumColorDepth = maximumColorDepth - @maximumFocalLength = maximumFocalLength - @maximumHighResolutionImages = maximumHighResolutionImages - @maximumHorizontalResolution = maximumHorizontalResolution - @maximumLowResolutionImages = maximumLowResolutionImages - @maximumResolution = maximumResolution - @maximumShutterSpeed = maximumShutterSpeed - @maximumVerticalResolution = maximumVerticalResolution - @maximumWeightRecommendation = maximumWeightRecommendation - @memorySlotsAvailable = memorySlotsAvailable - @metalStamp = metalStamp - @metalType = metalType - @miniMovieDescription = miniMovieDescription - @minimumFocalLength = minimumFocalLength - @minimumShutterSpeed = minimumShutterSpeed - @model = model - @modelYear = modelYear - @modemDescription = modemDescription - @monitorSize = monitorSize - @monitorViewableDiagonalSize = monitorViewableDiagonalSize - @mouseDescription = mouseDescription - @mPN = mPN - @musicalStyle = musicalStyle - @nativeResolution = nativeResolution - @neighborhood = neighborhood - @networkInterfaceDescription = networkInterfaceDescription - @notebookDisplayTechnology = notebookDisplayTechnology - @notebookPointingDeviceDescription = notebookPointingDeviceDescription - @numberOfDiscs = numberOfDiscs - @numberOfIssues = numberOfIssues - @numberOfItems = numberOfItems - @numberOfKeys = numberOfKeys - @numberOfPages = numberOfPages - @numberOfPearls = numberOfPearls - @numberOfRapidFireShots = numberOfRapidFireShots - @numberOfStones = numberOfStones - @numberOfStrings = numberOfStrings - @numberOfTracks = numberOfTracks - @opticalZoom = opticalZoom - @outputWattage = outputWattage - @packageDimensions = packageDimensions - @pearlLustre = pearlLustre - @pearlMinimumColor = pearlMinimumColor - @pearlShape = pearlShape - @pearlStringingMethod = pearlStringingMethod - @pearlSurfaceBlemishes = pearlSurfaceBlemishes - @pearlType = pearlType - @pearlUniformity = pearlUniformity - @phoneNumber = phoneNumber - @photoFlashType = photoFlashType - @pictureFormat = pictureFormat - @platform = platform - @priceRating = priceRating - @processorCount = processorCount - @productGroup = productGroup - @promotionalTag = promotionalTag - @publicationDate = publicationDate - @publisher = publisher - @readingLevel = readingLevel - @recorderTrackCount = recorderTrackCount - @regionCode = regionCode - @regionOfOrigin = regionOfOrigin - @releaseDate = releaseDate - @removableMemory = removableMemory - @resolutionModes = resolutionModes - @ringSize = ringSize - @safetyWarning = safetyWarning - @secondaryCacheSize = secondaryCacheSize - @settingType = settingType - @size = size - @sKU = sKU - @sizePerPearl = sizePerPearl - @skillLevel = skillLevel - @soundCardDescription = soundCardDescription - @speakerCount = speakerCount - @speakerDescription = speakerDescription - @specialFeatures = specialFeatures - @stoneClarity = stoneClarity - @stoneColor = stoneColor - @stoneCut = stoneCut - @stoneShape = stoneShape - @stoneWeight = stoneWeight - @studio = studio - @subscriptionLength = subscriptionLength - @supportedImageType = supportedImageType - @systemBusSpeed = systemBusSpeed - @systemMemorySizeMax = systemMemorySizeMax - @systemMemorySize = systemMemorySize - @systemMemoryType = systemMemoryType - @theatricalReleaseDate = theatricalReleaseDate - @title = title - @totalDiamondWeight = totalDiamondWeight - @totalExternalBaysFree = totalExternalBaysFree - @totalFirewirePorts = totalFirewirePorts - @totalGemWeight = totalGemWeight - @totalInternalBaysFree = totalInternalBaysFree - @totalMetalWeight = totalMetalWeight - @totalNTSCPALPorts = totalNTSCPALPorts - @totalParallelPorts = totalParallelPorts - @totalPCCardSlots = totalPCCardSlots - @totalPCISlotsFree = totalPCISlotsFree - @totalSerialPorts = totalSerialPorts - @totalSVideoOutPorts = totalSVideoOutPorts - @totalUSB2Ports = totalUSB2Ports - @totalUSBPorts = totalUSBPorts - @totalVGAOutPorts = totalVGAOutPorts - @uPC = uPC - @variationDenomination = variationDenomination - @variationDescription = variationDescription - @warranty = warranty - @watchMovementType = watchMovementType - @waterResistanceDepth = waterResistanceDepth - @wirelessMicrophoneFrequency = wirelessMicrophoneFrequency - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}HelpRequest -class HelpRequest - @@schema_type = "HelpRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["about", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "About")]], - ["helpType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HelpType")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :about - attr_accessor :helpType - attr_accessor :responseGroup - - def initialize(about = nil, helpType = nil, responseGroup = []) - @about = about - @helpType = helpType - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemSearchRequest -class ItemSearchRequest - @@schema_type = "ItemSearchRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["actor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Actor")]], - ["artist", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Artist")]], - ["availability", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Availability")]], - ["audienceRating", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "AudienceRating")]], - ["author", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Author")]], - ["brand", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Brand")]], - ["browseNode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNode")]], - ["city", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "City")]], - ["composer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Composer")]], - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["conductor", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Conductor")]], - ["count", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Count")]], - ["cuisine", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Cuisine")]], - ["deliveryMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeliveryMethod")]], - ["director", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Director")]], - ["futureLaunchDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FutureLaunchDate")]], - ["iSPUPostalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUPostalCode")]], - ["itemPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemPage")]], - ["keywords", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Keywords")]], - ["manufacturer", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Manufacturer")]], - ["maximumPrice", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MaximumPrice")]], - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["minimumPrice", ["SOAP::SOAPNonNegativeInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MinimumPrice")]], - ["musicLabel", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MusicLabel")]], - ["neighborhood", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Neighborhood")]], - ["orchestra", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Orchestra")]], - ["postalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PostalCode")]], - ["power", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Power")]], - ["publisher", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Publisher")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["searchIndex", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchIndex")]], - ["sort", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Sort")]], - ["state", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "State")]], - ["textStream", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TextStream")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]], - ["releaseDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReleaseDate")]] - ] - - attr_accessor :actor - attr_accessor :artist - attr_accessor :availability - attr_accessor :audienceRating - attr_accessor :author - attr_accessor :brand - attr_accessor :browseNode - attr_accessor :city - attr_accessor :composer - attr_accessor :condition - attr_accessor :conductor - attr_accessor :count - attr_accessor :cuisine - attr_accessor :deliveryMethod - attr_accessor :director - attr_accessor :futureLaunchDate - attr_accessor :iSPUPostalCode - attr_accessor :itemPage - attr_accessor :keywords - attr_accessor :manufacturer - attr_accessor :maximumPrice - attr_accessor :merchantId - attr_accessor :minimumPrice - attr_accessor :musicLabel - attr_accessor :neighborhood - attr_accessor :orchestra - attr_accessor :postalCode - attr_accessor :power - attr_accessor :publisher - attr_accessor :responseGroup - attr_accessor :searchIndex - attr_accessor :sort - attr_accessor :state - attr_accessor :textStream - attr_accessor :title - attr_accessor :releaseDate - - def initialize(actor = nil, artist = nil, availability = nil, audienceRating = [], author = nil, brand = nil, browseNode = nil, city = nil, composer = nil, condition = nil, conductor = nil, count = nil, cuisine = nil, deliveryMethod = nil, director = nil, futureLaunchDate = nil, iSPUPostalCode = nil, itemPage = nil, keywords = nil, manufacturer = nil, maximumPrice = nil, merchantId = nil, minimumPrice = nil, musicLabel = nil, neighborhood = nil, orchestra = nil, postalCode = nil, power = nil, publisher = nil, responseGroup = [], searchIndex = nil, sort = nil, state = nil, textStream = nil, title = nil, releaseDate = nil) - @actor = actor - @artist = artist - @availability = availability - @audienceRating = audienceRating - @author = author - @brand = brand - @browseNode = browseNode - @city = city - @composer = composer - @condition = condition - @conductor = conductor - @count = count - @cuisine = cuisine - @deliveryMethod = deliveryMethod - @director = director - @futureLaunchDate = futureLaunchDate - @iSPUPostalCode = iSPUPostalCode - @itemPage = itemPage - @keywords = keywords - @manufacturer = manufacturer - @maximumPrice = maximumPrice - @merchantId = merchantId - @minimumPrice = minimumPrice - @musicLabel = musicLabel - @neighborhood = neighborhood - @orchestra = orchestra - @postalCode = postalCode - @power = power - @publisher = publisher - @responseGroup = responseGroup - @searchIndex = searchIndex - @sort = sort - @state = state - @textStream = textStream - @title = title - @releaseDate = releaseDate - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ItemLookupRequest -class ItemLookupRequest - @@schema_type = "ItemLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["deliveryMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeliveryMethod")]], - ["futureLaunchDate", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FutureLaunchDate")]], - ["idType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IdType")]], - ["iSPUPostalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUPostalCode")]], - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["offerPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferPage")]], - ["itemId", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemId")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["reviewPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReviewPage")]], - ["searchIndex", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchIndex")]], - ["searchInsideKeywords", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SearchInsideKeywords")]], - ["variationPage", ["PositiveIntegerOrAll", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "VariationPage")]] - ] - - attr_accessor :condition - attr_accessor :deliveryMethod - attr_accessor :futureLaunchDate - attr_accessor :idType - attr_accessor :iSPUPostalCode - attr_accessor :merchantId - attr_accessor :offerPage - attr_accessor :itemId - attr_accessor :responseGroup - attr_accessor :reviewPage - attr_accessor :searchIndex - attr_accessor :searchInsideKeywords - attr_accessor :variationPage - - def initialize(condition = nil, deliveryMethod = nil, futureLaunchDate = nil, idType = nil, iSPUPostalCode = nil, merchantId = nil, offerPage = nil, itemId = [], responseGroup = [], reviewPage = nil, searchIndex = nil, searchInsideKeywords = nil, variationPage = nil) - @condition = condition - @deliveryMethod = deliveryMethod - @futureLaunchDate = futureLaunchDate - @idType = idType - @iSPUPostalCode = iSPUPostalCode - @merchantId = merchantId - @offerPage = offerPage - @itemId = itemId - @responseGroup = responseGroup - @reviewPage = reviewPage - @searchIndex = searchIndex - @searchInsideKeywords = searchInsideKeywords - @variationPage = variationPage - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListSearchRequest -class ListSearchRequest - @@schema_type = "ListSearchRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["city", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "City")]], - ["email", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Email")]], - ["firstName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FirstName")]], - ["lastName", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "LastName")]], - ["listPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListPage")]], - ["listType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListType")]], - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["state", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "State")]] - ] - - attr_accessor :city - attr_accessor :email - attr_accessor :firstName - attr_accessor :lastName - attr_accessor :listPage - attr_accessor :listType - attr_accessor :name - attr_accessor :responseGroup - attr_accessor :state - - def initialize(city = nil, email = nil, firstName = nil, lastName = nil, listPage = nil, listType = nil, name = nil, responseGroup = [], state = nil) - @city = city - @email = email - @firstName = firstName - @lastName = lastName - @listPage = listPage - @listType = listType - @name = name - @responseGroup = responseGroup - @state = state - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}ListLookupRequest -class ListLookupRequest - @@schema_type = "ListLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["deliveryMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeliveryMethod")]], - ["iSPUPostalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUPostalCode")]], - ["listId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListId")]], - ["listType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListType")]], - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["productGroup", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProductGroup")]], - ["productPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProductPage")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["sort", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Sort")]] - ] - - attr_accessor :condition - attr_accessor :deliveryMethod - attr_accessor :iSPUPostalCode - attr_accessor :listId - attr_accessor :listType - attr_accessor :merchantId - attr_accessor :productGroup - attr_accessor :productPage - attr_accessor :responseGroup - attr_accessor :sort - - def initialize(condition = nil, deliveryMethod = nil, iSPUPostalCode = nil, listId = nil, listType = nil, merchantId = nil, productGroup = nil, productPage = nil, responseGroup = [], sort = nil) - @condition = condition - @deliveryMethod = deliveryMethod - @iSPUPostalCode = iSPUPostalCode - @listId = listId - @listType = listType - @merchantId = merchantId - @productGroup = productGroup - @productPage = productPage - @responseGroup = responseGroup - @sort = sort - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentSearchRequest -class CustomerContentSearchRequest - @@schema_type = "CustomerContentSearchRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["customerPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerPage")]], - ["email", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Email")]], - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :customerPage - attr_accessor :email - attr_accessor :name - attr_accessor :responseGroup - - def initialize(customerPage = nil, email = nil, name = nil, responseGroup = []) - @customerPage = customerPage - @email = email - @name = name - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CustomerContentLookupRequest -class CustomerContentLookupRequest - @@schema_type = "CustomerContentLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["customerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerId")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["reviewPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ReviewPage")]] - ] - - attr_accessor :customerId - attr_accessor :responseGroup - attr_accessor :reviewPage - - def initialize(customerId = nil, responseGroup = [], reviewPage = nil) - @customerId = customerId - @responseGroup = responseGroup - @reviewPage = reviewPage - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SimilarityLookupRequest -class SimilarityLookupRequest - @@schema_type = "SimilarityLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["condition", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Condition")]], - ["deliveryMethod", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "DeliveryMethod")]], - ["itemId", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemId")]], - ["iSPUPostalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ISPUPostalCode")]], - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["similarityType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityType")]] - ] - - attr_accessor :condition - attr_accessor :deliveryMethod - attr_accessor :itemId - attr_accessor :iSPUPostalCode - attr_accessor :merchantId - attr_accessor :responseGroup - attr_accessor :similarityType - - def initialize(condition = nil, deliveryMethod = nil, itemId = [], iSPUPostalCode = nil, merchantId = nil, responseGroup = [], similarityType = nil) - @condition = condition - @deliveryMethod = deliveryMethod - @itemId = itemId - @iSPUPostalCode = iSPUPostalCode - @merchantId = merchantId - @responseGroup = responseGroup - @similarityType = similarityType - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerLookupRequest -class SellerLookupRequest - @@schema_type = "SellerLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["sellerId", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["feedbackPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FeedbackPage")]] - ] - - attr_accessor :responseGroup - attr_accessor :sellerId - attr_accessor :feedbackPage - - def initialize(responseGroup = [], sellerId = [], feedbackPage = nil) - @responseGroup = responseGroup - @sellerId = sellerId - @feedbackPage = feedbackPage - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartGetRequest -class CartGetRequest - @@schema_type = "CartGetRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["cartId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartId")]], - ["hMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HMAC")]], - ["mergeCart", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MergeCart")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :cartId - attr_accessor :hMAC - attr_accessor :mergeCart - attr_accessor :responseGroup - - def initialize(cartId = nil, hMAC = nil, mergeCart = nil, responseGroup = []) - @cartId = cartId - @hMAC = hMAC - @mergeCart = mergeCart - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartAddRequest -class CartAddRequest - @@schema_type = "CartAddRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["cartId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartId")]], - ["hMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HMAC")]], - ["mergeCart", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MergeCart")]], - ["items", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :cartId - attr_accessor :hMAC - attr_accessor :mergeCart - attr_accessor :items - attr_accessor :responseGroup - - def initialize(cartId = nil, hMAC = nil, mergeCart = nil, items = nil, responseGroup = []) - @cartId = cartId - @hMAC = hMAC - @mergeCart = mergeCart - @items = items - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartCreateRequest -class CartCreateRequest - @@schema_type = "CartCreateRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["mergeCart", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MergeCart")]], - ["items", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :mergeCart - attr_accessor :items - attr_accessor :responseGroup - - def initialize(mergeCart = nil, items = nil, responseGroup = []) - @mergeCart = mergeCart - @items = items - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartModifyRequest -class CartModifyRequest - @@schema_type = "CartModifyRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["cartId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartId")]], - ["hMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HMAC")]], - ["mergeCart", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MergeCart")]], - ["items", [nil, XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Items")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :cartId - attr_accessor :hMAC - attr_accessor :mergeCart - attr_accessor :items - attr_accessor :responseGroup - - def initialize(cartId = nil, hMAC = nil, mergeCart = nil, items = nil, responseGroup = []) - @cartId = cartId - @hMAC = hMAC - @mergeCart = mergeCart - @items = items - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartClearRequest -class CartClearRequest - @@schema_type = "CartClearRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["cartId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartId")]], - ["hMAC", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HMAC")]], - ["mergeCart", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MergeCart")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :cartId - attr_accessor :hMAC - attr_accessor :mergeCart - attr_accessor :responseGroup - - def initialize(cartId = nil, hMAC = nil, mergeCart = nil, responseGroup = []) - @cartId = cartId - @hMAC = hMAC - @mergeCart = mergeCart - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}TransactionLookupRequest -class TransactionLookupRequest - @@schema_type = "TransactionLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["transactionId", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionId")]] - ] - - attr_accessor :responseGroup - attr_accessor :transactionId - - def initialize(responseGroup = [], transactionId = []) - @responseGroup = responseGroup - @transactionId = transactionId - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingSearchRequest -class SellerListingSearchRequest - @@schema_type = "SellerListingSearchRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["keywords", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Keywords")]], - ["listingPage", ["SOAP::SOAPPositiveInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListingPage")]], - ["offerStatus", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "OfferStatus")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]], - ["sellerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["sort", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Sort")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]] - ] - - attr_accessor :keywords - attr_accessor :listingPage - attr_accessor :offerStatus - attr_accessor :responseGroup - attr_accessor :sellerId - attr_accessor :sort - attr_accessor :title - - def initialize(keywords = nil, listingPage = nil, offerStatus = nil, responseGroup = [], sellerId = nil, sort = nil, title = nil) - @keywords = keywords - @listingPage = listingPage - @offerStatus = offerStatus - @responseGroup = responseGroup - @sellerId = sellerId - @sort = sort - @title = title - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}SellerListingLookupRequest -class SellerListingLookupRequest - @@schema_type = "SellerListingLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["id", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Id")]], - ["sellerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["idType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IdType")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :id - attr_accessor :sellerId - attr_accessor :idType - attr_accessor :responseGroup - - def initialize(id = nil, sellerId = nil, idType = nil, responseGroup = []) - @id = id - @sellerId = sellerId - @idType = idType - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}BrowseNodeLookupRequest -class BrowseNodeLookupRequest - @@schema_type = "BrowseNodeLookupRequest" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["browseNodeId", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeId")]], - ["responseGroup", ["SOAP::SOAPString[]", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ResponseGroup")]] - ] - - attr_accessor :browseNodeId - attr_accessor :responseGroup - - def initialize(browseNodeId = [], responseGroup = []) - @browseNodeId = browseNodeId - @responseGroup = responseGroup - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}CartItem -class CartItem - @@schema_type = "CartItem" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["cartItemId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartItemId")]], - ["aSIN", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ASIN")]], - ["exchangeId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ExchangeId")]], - ["merchantId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MerchantId")]], - ["sellerId", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerId")]], - ["sellerNickname", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerNickname")]], - ["quantity", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Quantity")]], - ["title", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Title")]], - ["productGroup", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ProductGroup")]], - ["listOwner", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListOwner")]], - ["listType", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListType")]], - ["price", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Price")]], - ["itemTotal", ["Price", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemTotal")]] - ] - - attr_accessor :cartItemId - attr_accessor :aSIN - attr_accessor :exchangeId - attr_accessor :merchantId - attr_accessor :sellerId - attr_accessor :sellerNickname - attr_accessor :quantity - attr_accessor :title - attr_accessor :productGroup - attr_accessor :listOwner - attr_accessor :listType - attr_accessor :price - attr_accessor :itemTotal - - def initialize(cartItemId = nil, aSIN = nil, exchangeId = nil, merchantId = nil, sellerId = nil, sellerNickname = nil, quantity = nil, title = nil, productGroup = nil, listOwner = nil, listType = nil, price = nil, itemTotal = nil) - @cartItemId = cartItemId - @aSIN = aSIN - @exchangeId = exchangeId - @merchantId = merchantId - @sellerId = sellerId - @sellerNickname = sellerNickname - @quantity = quantity - @title = title - @productGroup = productGroup - @listOwner = listOwner - @listType = listType - @price = price - @itemTotal = itemTotal - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Address -class Address - @@schema_type = "Address" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["name", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Name")]], - ["address1", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Address1")]], - ["address2", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Address2")]], - ["address3", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Address3")]], - ["city", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "City")]], - ["state", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "State")]], - ["postalCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "PostalCode")]], - ["country", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Country")]] - ] - - attr_accessor :name - attr_accessor :address1 - attr_accessor :address2 - attr_accessor :address3 - attr_accessor :city - attr_accessor :state - attr_accessor :postalCode - attr_accessor :country - - def initialize(name = nil, address1 = nil, address2 = nil, address3 = nil, city = nil, state = nil, postalCode = nil, country = nil) - @name = name - @address1 = address1 - @address2 = address2 - @address3 = address3 - @city = city - @state = state - @postalCode = postalCode - @country = country - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Price -class Price - @@schema_type = "Price" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["amount", ["SOAP::SOAPInteger", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Amount")]], - ["currencyCode", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CurrencyCode")]], - ["formattedPrice", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "FormattedPrice")]] - ] - - attr_accessor :amount - attr_accessor :currencyCode - attr_accessor :formattedPrice - - def initialize(amount = nil, currencyCode = nil, formattedPrice = nil) - @amount = amount - @currencyCode = currencyCode - @formattedPrice = formattedPrice - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}Image -class Image - @@schema_type = "Image" - @@schema_ns = "http://webservices.amazon.com/AWSECommerceService/2006-06-07" - @@schema_element = [ - ["uRL", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "URL")]], - ["height", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Height")]], - ["width", ["DecimalWithUnits", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Width")]], - ["isVerified", ["SOAP::SOAPString", XSD::QName.new("http://webservices.amazon.com/AWSECommerceService/2006-06-07", "IsVerified")]] - ] - - attr_accessor :uRL - attr_accessor :height - attr_accessor :width - attr_accessor :isVerified - - def initialize(uRL = nil, height = nil, width = nil, isVerified = nil) - @uRL = uRL - @height = height - @width = width - @isVerified = isVerified - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}NonNegativeIntegerWithUnits -# contains SOAP::SOAPNonNegativeInteger -class NonNegativeIntegerWithUnits < ::String - @@schema_attribute = { - XSD::QName.new(nil, "Units") => "SOAP::SOAPString" - } - - def xmlattr_Units - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] - end - - def xmlattr_Units=(value) - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}DecimalWithUnits -# contains SOAP::SOAPDecimal -class DecimalWithUnits < ::String - @@schema_attribute = { - XSD::QName.new(nil, "Units") => "SOAP::SOAPString" - } - - def xmlattr_Units - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] - end - - def xmlattr_Units=(value) - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {http://webservices.amazon.com/AWSECommerceService/2006-06-07}StringWithUnits -# contains SOAP::SOAPString -class StringWithUnits < ::String - @@schema_attribute = { - XSD::QName.new(nil, "Units") => "SOAP::SOAPString" - } - - def xmlattr_Units - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] - end - - def xmlattr_Units=(value) - (@__xmlattr ||= {})[XSD::QName.new(nil, "Units")] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEcDriver.rb b/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEcDriver.rb deleted file mode 100644 index df1a924f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonEcDriver.rb +++ /dev/null @@ -1,171 +0,0 @@ -require 'amazonEc.rb' - -require 'soap/rpc/driver' - -class AWSECommerceServicePortType < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://soap.amazon.com/onca/soap?Service=AWSECommerceService" - MappingRegistry = ::SOAP::Mapping::Registry.new - - Methods = [ - [ "http://soap.amazon.com", - "help", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "Help"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "HelpResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "itemSearch", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemSearch"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemSearchResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "itemLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ItemLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "browseNodeLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "BrowseNodeLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "listSearch", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListSearch"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListSearchResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "listLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "ListLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "customerContentSearch", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentSearch"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentSearchResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "customerContentLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CustomerContentLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "similarityLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SimilarityLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "sellerLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "cartGet", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartGet"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartGetResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "cartCreate", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartCreate"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartCreateResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "cartAdd", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartAdd"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartAddResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "cartModify", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartModify"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartModifyResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "cartClear", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartClear"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "CartClearResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "transactionLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "TransactionLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "sellerListingSearch", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingSearch"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingSearchResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "sellerListingLookup", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingLookup"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "SellerListingLookupResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ], - [ "http://soap.amazon.com", - "multiOperation", - [ ["in", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MultiOperation"], true], - ["out", "body", ["::SOAP::SOAPElement", "http://webservices.amazon.com/AWSECommerceService/2006-06-07", "MultiOperationResponse"], true] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = MappingRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonresponse.xml b/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonresponse.xml deleted file mode 100644 index e4d02e51..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/amazonresponse.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - -
-
-
- 00000000000000000000 - - - - - 0.17442512512207 -
- - - True - - 11 - 2 - - B000AMF800 - the_url_is_too_long - - Andreas Bieber, Pia Douwes, Thomas Borchert, Felix Martin Uwe - Ar-Express (Sony BMG) - Music - Musical Stars - - - - 852 - EUR - EUR 8,52 - - - 852 - EUR - EUR 8,52 - - 12 - 2 - 0 - 0 - - - - Totale Finsternis (Tanz der Vampire) - Ich mir (Elisabeth) - The Winner Takes It All ("Mamma Mia") - Cindy (Cindy) - Beauty And The Beast (Disney's Beauty & The Best) - Somewhere Out There (American Tail) - Mamma Mia - Musicalstars singen Abba-Hits - Dies ist die Stunde (Jekyll & Hyde) - Bring ihn heim (Les ) - New Hampshire Nights (An Unfinished Song) - The Door Is Open - Pinball Wizard (Tommy) - Ocean Of Love (Poe: Pech und Schwefel) - - - Written In The Stars ("Aida" - I Am (Hero) - Waterloo - Musicalstars singen Abba-Hits - Don't Cry For Me Argentina (Evita) - Gib mir Kraft (Bonifatius: Das Musical) - Break The Silence (Paradise Of Pain) - Irgendetwas fehlt (Letterland) - A Dangerous Game (Jekyll & Hyde) - I Am A Mirror (Freudiana) - Easy Terms (Blood Brothers) - The Shades Of Night (Elisabeth) - Gold von den Sternen (Mozart!) - Die Musik der Nacht (Das Phantom der Oper) - - - Schlag ein (Poe: Pech und Schwefel) - Edited Version - Ein Leben lang (Bonifatius: Das Musical) - Memory (Cats) - Any Fool Could Se / Oh, Paris (Paris) - Does Your Mother Know (Mamma Mia) - Out Of My Pain - Lullaby From Faraway - Die unstillbare Gier (Tanz der Vampire) - Make A Wish Come True (Make-A-Wish-Foundation Song) - Somewhere In Heaven (Arena) - Are We Really Angels - Lost My Mind (Peggy: Das Musical) - Our Time (Merrily We Roll Along) - Follow Your Star - - - - -
-
-
diff --git a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/test_definedarray.rb b/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/test_definedarray.rb deleted file mode 100644 index 4a87e2d9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/literalArrayMapping/test_definedarray.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'test/unit' -require 'soap/mapping' -require 'soap/processor' -require 'soap/rpc/element' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP -module Marshal - - -class TestDefinedArray < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def pathname(filename) - File.join(DIR, filename) - end - - def setup - TestUtil.require(DIR, 'amazonEcDriver.rb') - end - - def test_amazonresponse - drv = AWSECommerceServicePortType.new - drv.wiredump_dev = STDOUT if $DEBUG - drv.test_loopback_response << File.read(pathname('amazonresponse.xml')) - obj = drv.itemSearch(ItemSearch.new) - assert_equal(3, obj.items.item.tracks.disc.size) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/marshal/marshaltestlib.rb b/vendor/gems/soap4r-1.5.8/test/soap/marshal/marshaltestlib.rb deleted file mode 100644 index ffac6aa2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/marshal/marshaltestlib.rb +++ /dev/null @@ -1,494 +0,0 @@ -module MarshalTestLib - # include this module to a Test::Unit::TestCase and definde encode(o) and - # decode(s) methods. e.g. - # - # def encode(o) - # SOAPMarshal.dump(o) - # end - # - # def decode(s) - # SOAPMarshal.load(s) - # end - - NegativeZero = (-1.0 / (1.0 / 0.0)) - - module Mod1; end - module Mod2; end - - def marshaltest(o1) - str = encode(o1) - print str, "\n" if $DEBUG - o2 = decode(str) - o2 - end - - def marshal_equal(o1, msg = nil) - msg = msg ? msg + "(#{ caller[0] })" : caller[0] - o2 = marshaltest(o1) - assert_equal(o1.class, o2.class, msg) - iv1 = o1.instance_variables.sort - iv2 = o2.instance_variables.sort - assert_equal(iv1, iv2) - val1 = iv1.map {|var| o1.instance_eval {eval var}} - val2 = iv1.map {|var| o2.instance_eval {eval var}} - assert_equal(val1, val2, msg) - if block_given? - assert_equal(yield(o1), yield(o2), msg) - else - assert_equal(o1, o2, msg) - end - end - - class MyObject; def initialize(v) @v = v end; attr_reader :v; end - def test_object - o1 = Object.new - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_object_subclass - marshal_equal(MyObject.new(2)) {|o| o.v} - end - - def test_object_extend - o1 = Object.new - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - def test_object_subclass_extend - o1 = MyObject.new(2) - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - class MyArray < Array - def initialize(v, *args) - super(args) - @v = v - end - end - def test_array - marshal_equal(5) - marshal_equal([1,2,3]) - end - - def test_array_subclass - marshal_equal(MyArray.new(0, 1, 2, 3)) - end - - def test_array_ivar - o1 = Array.new - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - class MyException < Exception; def initialize(v, *args) super(*args); @v = v; end; attr_reader :v; end - def test_exception - marshal_equal(Exception.new('foo')) {|o| o.message} - marshal_equal(assert_raise(NoMethodError) {no_such_method()}) {|o| o.message} - end - - def test_exception_subclass - marshal_equal(MyException.new(20, "bar")) {|o| [o.message, o.v]} - end - - def test_false - marshal_equal(false) - end - - class MyHash < Hash; def initialize(v, *args) super(*args); @v = v; end end - def test_hash - marshal_equal({1=>2, 3=>4}) - end - - def test_hash_default - h = Hash.new(:default) - h[5] = 6 - marshal_equal(h) - end - - def test_hash_subclass - h = MyHash.new(7, 8) - h[4] = 5 - marshal_equal(h) - end - - def test_hash_default_proc - h = Hash.new {} - assert_raises(TypeError) { marshaltest(h) } - end - - def test_hash_ivar - o1 = Hash.new - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_hash_extend - o1 = Hash.new - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - def test_hash_subclass_extend - o1 = MyHash.new(2) - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - def test_bignum - marshal_equal(-0x4000_0000_0000_0001) - marshal_equal(-0x4000_0001) - marshal_equal(0x4000_0000) - marshal_equal(0x4000_0000_0000_0000) - end - - def test_fixnum - marshal_equal(-0x4000_0000) - marshal_equal(-0x3fff_ffff) - marshal_equal(-1) - marshal_equal(0) - marshal_equal(1) - marshal_equal(0x3fff_ffff) - end - - def test_fixnum_ivar - o1 = 1 - o1.instance_eval { @iv = 2 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - ensure - 1.instance_eval { remove_instance_variable("@iv") } - end - - def test_fixnum_ivar_self - o1 = 1 - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - ensure - 1.instance_eval { remove_instance_variable("@iv") } - end - - def test_float - marshal_equal(-1.0) - marshal_equal(0.0) - marshal_equal(1.0) - end - - def test_float_inf_nan - marshal_equal(1.0/0.0) - marshal_equal(-1.0/0.0) - marshal_equal(0.0/0.0) {|o| o.nan?} - marshal_equal(NegativeZero) {|o| 1.0/o} - end - - def test_float_ivar - o1 = 1.23 - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_float_ivar_self - o1 = 5.5 - o1.instance_eval { @iv = o1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_float_extend - o1 = 0.0/0.0 - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - class MyRange < Range; def initialize(v, *args) super(*args); @v = v; end end - def test_range - marshal_equal(1..2) - marshal_equal(1...3) - end - - def test_range_subclass - marshal_equal(MyRange.new(4,5,8, false)) - end - - class MyRegexp < Regexp; def initialize(v, *args) super(*args); @v = v; end end - def test_regexp - marshal_equal(/a/) - marshal_equal(/A/i) - marshal_equal(/A/mx) - end - - def test_regexp_subclass - marshal_equal(MyRegexp.new(10, "a")) - end - - class MyString < String; def initialize(v, *args) super(*args); @v = v; end end - def test_string - marshal_equal("abc") - end - - def test_string_ivar - o1 = "" - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_string_subclass - marshal_equal(MyString.new(10, "a")) - end - - def test_string_subclass_cycle - str = MyString.new(10, "b") - str.instance_eval { @v = str } - marshal_equal(str) { |o| - assert_equal(o.__id__, o.instance_eval { @v }.__id__) - o.instance_eval { @v } - } - end - - def test_string_subclass_extend - o = "abc" - o.extend(Mod1) - str = MyString.new(o, "c") - marshal_equal(str) { |o| - assert(o.instance_eval { @v }).kind_of?(Mod1) - } - end - - MyStruct = Struct.new("MyStruct", :a, :b) - if RUBY_VERSION < "1.8.0" - # Struct#== is not defined in ruby/1.6 - class MyStruct - def ==(rhs) - return true if __id__ == rhs.__id__ - return false unless rhs.is_a?(::Struct) - return false if self.class != rhs.class - members.each do |member| - return false if self.__send__(member) != rhs.__send__(member) - end - return true - end - end - end - class MySubStruct < MyStruct; def initialize(v, *args) super(*args); @v = v; end end - def test_struct - marshal_equal(MyStruct.new(1,2)) - end - - def test_struct_subclass - if RUBY_VERSION < "1.8.0" - # Substruct instance cannot be dumped in ruby/1.6 - # ::Marshal.dump(MySubStruct.new(10, 1, 2)) #=> uninitialized struct - return false - end - marshal_equal(MySubStruct.new(10,1,2)) - end - - def test_struct_ivar - o1 = MyStruct.new - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_struct_subclass_extend - o1 = MyStruct.new - o1.extend(Mod1) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - o1.extend(Mod2) - marshal_equal(o1) { |o| - (class << self; self; end).ancestors - } - end - - def test_symbol - marshal_equal(:a) - marshal_equal(:a?) - marshal_equal(:a!) - marshal_equal(:a=) - marshal_equal(:|) - marshal_equal(:^) - marshal_equal(:&) - marshal_equal(:<=>) - marshal_equal(:==) - marshal_equal(:===) - marshal_equal(:=~) - marshal_equal(:>) - marshal_equal(:>=) - marshal_equal(:<) - marshal_equal(:<=) - marshal_equal(:<<) - marshal_equal(:>>) - marshal_equal(:+) - marshal_equal(:-) - marshal_equal(:*) - marshal_equal(:/) - marshal_equal(:%) - marshal_equal(:**) - marshal_equal(:~) - marshal_equal(:+@) - marshal_equal(:-@) - marshal_equal(:[]) - marshal_equal(:[]=) - marshal_equal(:`) #` - marshal_equal("a b".intern) - end - - class MyTime < Time; def initialize(v, *args) super(*args); @v = v; end end - def test_time - # once there was a bug caused by usec overflow. try a little harder. - 10.times do - t = Time.now - marshal_equal(t, t.usec.to_s) - end - end - - def test_time_subclass - marshal_equal(MyTime.new(10)) - end - - def test_time_ivar - o1 = Time.now - o1.instance_eval { @iv = 1 } - marshal_equal(o1) {|o| o.instance_eval { @iv }} - end - - def test_true - marshal_equal(true) - end - - def test_nil - marshal_equal(nil) - end - - def test_share - o = [:share] - o1 = [o, o] - o2 = marshaltest(o1) - assert_same(o2.first, o2.last) - end - - class CyclicRange < Range - def <=>(other); true; end - end - def test_range_cyclic - return unless CyclicRange.respond_to?(:allocate) # test for 1.8 - o1 = CyclicRange.allocate - o1.instance_eval { initialize(o1, o1) } - o2 = marshaltest(o1) - assert_same(o2, o2.begin) - assert_same(o2, o2.end) - end - - def test_singleton - o = Object.new - def o.m() end - assert_raises(TypeError) { marshaltest(o) } - o = Object.new - c = class << o - @v = 1 - class C; self; end - end - assert_raises(TypeError) { marshaltest(o) } - assert_raises(TypeError) { marshaltest(c) } - assert_raises(TypeError) { marshaltest(ARGF) } - assert_raises(TypeError) { marshaltest(ENV) } - end - - def test_extend - o = Object.new - o.extend Mod1 - marshal_equal(o) { |obj| obj.kind_of? Mod1 } - o = Object.new - o.extend Mod1 - o.extend Mod2 - marshal_equal(o) {|obj| class << obj; ancestors end} - o = Object.new - o.extend Module.new - assert_raises(TypeError) { marshaltest(o) } - end - - def test_extend_string - o = "" - o.extend Mod1 - marshal_equal(o) { |obj| obj.kind_of? Mod1 } - o = "" - o.extend Mod1 - o.extend Mod2 - marshal_equal(o) {|obj| class << obj; ancestors end} - o = "" - o.extend Module.new - assert_raises(TypeError) { marshaltest(o) } - end - - def test_anonymous - c = Class.new - assert_raises(TypeError) { marshaltest(c) } - o = c.new - assert_raises(TypeError) { marshaltest(o) } - m = Module.new - assert_raises(TypeError) { marshaltest(m) } - end - - def test_string_empty - marshal_equal("") - end - - def test_string_crlf - marshal_equal("\r\n") - end - - def test_string_escape - marshal_equal("<;;>&\r'\";;>") - end - - MyStruct2 = Struct.new(:a, :b) - if RUBY_VERSION < "1.8.0" - # Struct#== is not defined in ruby/1.6 - class MyStruct2 - def ==(rhs) - return true if __id__ == rhs.__id__ - return false unless rhs.is_a?(::Struct) - return false if self.class != rhs.class - members.each do |member| - return false if self.__send__(member) != rhs.__send__(member) - end - return true - end - end - end - def test_struct_toplevel - o = MyStruct2.new(1,2) - marshal_equal(o) - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_digraph.rb b/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_digraph.rb deleted file mode 100644 index d7f30654..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_digraph.rb +++ /dev/null @@ -1,56 +0,0 @@ -require 'test/unit' -require 'soap/marshal' - - -module SOAP -module Marshal - - -class Node; include SOAP::Marshallable - attr_reader :first, :second, :str - - def initialize(*init_next) - @first = init_next[0] - @second = init_next[1] - end -end - -class TestDigraph < Test::Unit::TestCase - def setup - @n9 = Node.new - @n81 = Node.new(@n9) - @n82 = Node.new(@n9) - @n7 = Node.new(@n81, @n82) - @n61 = Node.new(@n7) - @n62 = Node.new(@n7) - @n5 = Node.new(@n61, @n62) - @n41 = Node.new(@n5) - @n42 = Node.new(@n5) - @n3 = Node.new(@n41, @n42) - @n21 = Node.new(@n3) - @n22 = Node.new(@n3) - @n1 = Node.new(@n21, @n22) - end - - def test_marshal - f = File.open("digraph_marshalled_string.soap", "wb") - SOAP::Marshal.dump(@n1, f) - f.close - f = File.open("digraph_marshalled_string.soap") - str = f.read - f.close - newnode = SOAP::Marshal.unmarshal(str) - assert_equal(newnode.first.first.__id__, newnode.second.first.__id__) - assert_equal(newnode.first.first.first.first.__id__, newnode.second.first.second.first.__id__) - end - - def teardown - if File.exist?("digraph_marshalled_string.soap") - File.unlink("digraph_marshalled_string.soap") - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_marshal.rb b/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_marshal.rb deleted file mode 100644 index d8f900cb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_marshal.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'test/unit' -require 'soap/marshal' -require File.join(File.dirname(File.expand_path(__FILE__)), 'marshaltestlib') - - -if RUBY_VERSION > "1.7.0" - - -module SOAP -module Marshal -class TestMarshal < Test::Unit::TestCase - include MarshalTestLib - - def encode(o) - SOAPMarshal.dump(o) - end - - def decode(s) - SOAPMarshal.load(s) - end -end -end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_struct.rb b/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_struct.rb deleted file mode 100644 index 33975c31..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/marshal/test_struct.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'test/unit' -require 'soap/marshal' - - -module SOAP -module Marshal - - -Foo1 = ::Struct.new("Foo1", :m) -Foo2 = ::Struct.new(:m) -class Foo3 - attr_accessor :m -end - -class TestStruct < Test::Unit::TestCase - def test_foo1 - org = Foo1.new - org.m = org - obj = convert(org) - assert_equal(Foo1, obj.class) - assert_equal(obj.m, obj) - end - - def test_foo2 - org = Foo2.new - org.m = org - obj = convert(org) - assert_equal(Foo2, obj.class) - assert_equal(obj.m, obj) - end - - def test_foo3 - org = Foo3.new - org.m = org - obj = convert(org) - assert_equal(Foo3, obj.class) - assert_equal(obj.m, obj) - end - - def convert(obj) - SOAP::Marshal.unmarshal(SOAP::Marshal.marshal(obj)) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/README b/vendor/gems/soap4r-1.5.8/test/soap/ssl/README deleted file mode 100644 index 927c738f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/README +++ /dev/null @@ -1 +0,0 @@ -* certificates and keys in this directory is copied from httpclient test. diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/ca.cert b/vendor/gems/soap4r-1.5.8/test/soap/ssl/ca.cert deleted file mode 100644 index bcabbee4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/ca.cert +++ /dev/null @@ -1,23 +0,0 @@ ------BEGIN CERTIFICATE----- -MIID0DCCArigAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQswCQYDVQQGDAJKUDES -MBAGA1UECgwJSklOLkdSLkpQMQwwCgYDVQQLDANSUlIxCzAJBgNVBAMMAkNBMB4X -DTA0MDEzMDAwNDIzMloXDTM2MDEyMjAwNDIzMlowPDELMAkGA1UEBgwCSlAxEjAQ -BgNVBAoMCUpJTi5HUi5KUDEMMAoGA1UECwwDUlJSMQswCQYDVQQDDAJDQTCCASIw -DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANbv0x42BTKFEQOE+KJ2XmiSdZpR -wjzQLAkPLRnLB98tlzs4xo+y4RyY/rd5TT9UzBJTIhP8CJi5GbS1oXEerQXB3P0d -L5oSSMwGGyuIzgZe5+vZ1kgzQxMEKMMKlzA73rbMd4Jx3u5+jdbP0EDrPYfXSvLY -bS04n2aX7zrN3x5KdDrNBfwBio2/qeaaj4+9OxnwRvYP3WOvqdW0h329eMfHw0pi -JI0drIVdsEqClUV4pebT/F+CPUPkEh/weySgo9wANockkYu5ujw2GbLFcO5LXxxm -dEfcVr3r6t6zOA4bJwL0W/e6LBcrwiG/qPDFErhwtgTLYf6Er67SzLyA66UCAwEA -AaOB3DCB2TAPBgNVHRMBAf8EBTADAQH/MDEGCWCGSAGG+EIBDQQkFiJSdWJ5L09w -ZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBRJ7Xd380KzBV7f -USKIQ+O/vKbhDzAOBgNVHQ8BAf8EBAMCAQYwZAYDVR0jBF0wW4AUSe13d/NCswVe -31EiiEPjv7ym4Q+hQKQ+MDwxCzAJBgNVBAYMAkpQMRIwEAYDVQQKDAlKSU4uR1Iu -SlAxDDAKBgNVBAsMA1JSUjELMAkGA1UEAwwCQ0GCAQAwDQYJKoZIhvcNAQEFBQAD -ggEBAIu/mfiez5XN5tn2jScgShPgHEFJBR0BTJBZF6xCk0jyqNx/g9HMj2ELCuK+ -r/Y7KFW5c5M3AQ+xWW0ZSc4kvzyTcV7yTVIwj2jZ9ddYMN3nupZFgBK1GB4Y05GY -MJJFRkSu6d/Ph5ypzBVw2YMT/nsOo5VwMUGLgS7YVjU+u/HNWz80J3oO17mNZllj -PvORJcnjwlroDnS58KoJ7GDgejv3ESWADvX1OHLE4cRkiQGeLoEU4pxdCxXRqX0U -PbwIkZN9mXVcrmPHq8MWi4eC/V7hnbZETMHuWhUoiNdOEfsAXr3iP4KjyyRdwc7a -d/xgcK06UVQRL/HbEYGiQL056mc= ------END CERTIFICATE----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.cert b/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.cert deleted file mode 100644 index ad13c4b7..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.cert +++ /dev/null @@ -1,19 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDKDCCAhCgAwIBAgIBAjANBgkqhkiG9w0BAQUFADA8MQswCQYDVQQGDAJKUDES -MBAGA1UECgwJSklOLkdSLkpQMQwwCgYDVQQLDANSUlIxCzAJBgNVBAMMAkNBMB4X -DTA0MDEzMTAzMTQ1OFoXDTM1MDEyMzAzMTQ1OFowZTELMAkGA1UEBgwCSlAxEjAQ -BgNVBAoMCUpJTi5HUi5KUDEMMAoGA1UECwwDUlJSMRAwDgYDVQQDDAdleGFtcGxl -MSIwIAYJKoZIhvcNAQkBDBNleGFtcGxlQGV4YW1wbGUub3JnMIGfMA0GCSqGSIb3 -DQEBAQUAA4GNADCBiQKBgQDRWssrK8Gyr+500hpLjCGR3+AHL8/hEJM5zKi/MgLW -jTkvsgOwbYwXOiNtAbR9y4/ucDq7EY+cMUMHES4uFaPTcOaAV0aZRmk8AgslN1tQ -gNS6ew7/Luq3DcVeWkX8PYgR9VG0mD1MPfJ6+IFA5d3vKpdBkBgN4l46jjO0/2Xf -ewIDAQABo4GPMIGMMAwGA1UdEwEB/wQCMAAwMQYJYIZIAYb4QgENBCQWIlJ1Ynkv -T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFOFvay0H7lr2 -xUx6waYEV2bVDYQhMAsGA1UdDwQEAwIF4DAdBgNVHSUEFjAUBggrBgEFBQcDAgYI -KwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBABd2dYWqbDIWf5sWFvslezxJv8gI -w64KCJBuyJAiDuf+oazr3016kMzAlt97KecLZDusGNagPrq02UX7YMoQFsWJBans -cDtHrkM0al5r6/WGexNMgtYbNTYzt/IwodISGBgZ6dsOuhznwms+IBsTNDAvWeLP -lt2tOqD8kEmjwMgn0GDRuKjs4EoboA3kMULb1p9akDV9ZESU3eOtpS5/G5J5msLI -9WXbYBjcjvkLuJH9VsJhb+R58Vl0ViemvAHhPilSl1SPWVunGhv6FcIkdBEi1k9F -e8BNMmsEjFiANiIRvpdLRbiGBt0KrKTndVfsmoKCvY48oCOvnzxtahFxfs8= ------END CERTIFICATE----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.key b/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.key deleted file mode 100644 index 37bc62f2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/client.key +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICWwIBAAKBgQDRWssrK8Gyr+500hpLjCGR3+AHL8/hEJM5zKi/MgLWjTkvsgOw -bYwXOiNtAbR9y4/ucDq7EY+cMUMHES4uFaPTcOaAV0aZRmk8AgslN1tQgNS6ew7/ -Luq3DcVeWkX8PYgR9VG0mD1MPfJ6+IFA5d3vKpdBkBgN4l46jjO0/2XfewIDAQAB -AoGAZcz8llWErtsV3QB9gNb3S/PNADGjqBFjReva8n3jG2k4sZSibpwWTwUaTNtT -ZQgjSRKRvH1hk9XwffNAvXAQZNNkuj/16gO2oO45nyLj4dO365ujLptWnVIWDHOE -uN0GeiZO+VzcCisT0WCq4tvtLeH8svrxzA8cbXIEyOK7NiECQQDwo2zPFyKAZ/Cu -lDJ6zKT+RjfWwW7DgWzirAlTrt4ViMaW+IaDH29TmQpb4V4NuR3Xi+2Xl4oicu6S -36TW9+/FAkEA3rgfOQJuLlWSnw1RTGwvnC816a/W7iYYY7B+0U4cDbfWl7IoXT4y -M8nV/HESooviZLqBwzAYSoj3fFKYBKpGPwJAUO8GN5iWWA2dW3ooiDiv/X1sZmRk -dojfMFWgRW747tEzya8Ivq0h6kH8w+5GjeMG8Gn1nRiwsulo6Ckj7dEx6QJACyui -7UIQ8qP6GZ4aYMHgVW4Mvy7Bkeo5OO7GPYs0Xv/EdJFL8vlGnVBXOjUVoS9w6Gpu -TbLg1QQvnX2rADjmEwJANxZO2GUkaWGsEif8aGW0x5g/IdaMGG27pTWk5zqix7P3 -1UDrdo/JOXhptovhRi06EppIxAxYmbh9vd9VN8Itlw== ------END RSA PRIVATE KEY----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.cert b/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.cert deleted file mode 100644 index 998ccc58..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.cert +++ /dev/null @@ -1,19 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC/zCCAeegAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQswCQYDVQQGDAJKUDES -MBAGA1UECgwJSklOLkdSLkpQMQwwCgYDVQQLDANSUlIxDjAMBgNVBAMMBVN1YkNB -MB4XDTA0MDEzMTAzMTMxNloXDTMzMDEyMzAzMTMxNlowQzELMAkGA1UEBgwCSlAx -EjAQBgNVBAoMCUpJTi5HUi5KUDEMMAoGA1UECwwDUlJSMRIwEAYDVQQDDAlsb2Nh -bGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANFJTxWqup3nV9dsJAku -p+WaXnPNIzcpAA3qMGZDJTJsfa8Du7ZxTP0XJK5mETttBrn711cJxAuP3KjqnW9S -vtZ9lY2sXJ6Zj62sN5LwG3VVe25dI28yR1EsbHjJ5Zjf9tmggMC6am52dxuHbt5/ -vHo4ngJuKE/U+eeGRivMn6gFAgMBAAGjgYUwgYIwDAYDVR0TAQH/BAIwADAxBglg -hkgBhvhCAQ0EJBYiUnVieS9PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAd -BgNVHQ4EFgQUpZIyygD9JxFYHHOTEuWOLbCKfckwCwYDVR0PBAQDAgWgMBMGA1Ud -JQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBBQUAA4IBAQBwAIj5SaBHaA5X31IP -CFCJiep96awfp7RANO0cuUj+ZpGoFn9d6FXY0g+Eg5wAkCNIzZU5NHN9xsdOpnUo -zIBbyTfQEPrge1CMWMvL6uGaoEXytq84VTitF/xBTky4KtTn6+es4/e7jrrzeUXQ -RC46gkHObmDT91RkOEGjHLyld2328jo3DIN/VTHIryDeVHDWjY5dENwpwdkhhm60 -DR9IrNBbXWEe9emtguNXeN0iu1ux0lG1Hc6pWGQxMlRKNvGh0yZB9u5EVe38tOV0 -jQaoNyL7qzcQoXD3Dmbi1p0iRmg/+HngISsz8K7k7MBNVsSclztwgCzTZOBiVtkM -rRlQ ------END CERTIFICATE----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.key b/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.key deleted file mode 100644 index 9ba2218a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/server.key +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQDRSU8Vqrqd51fXbCQJLqflml5zzSM3KQAN6jBmQyUybH2vA7u2 -cUz9FySuZhE7bQa5+9dXCcQLj9yo6p1vUr7WfZWNrFyemY+trDeS8Bt1VXtuXSNv -MkdRLGx4yeWY3/bZoIDAumpudncbh27ef7x6OJ4CbihP1PnnhkYrzJ+oBQIDAQAB -AoGBAIf4CstW2ltQO7+XYGoex7Hh8s9lTSW/G2vu5Hbr1LTHy3fzAvdq8MvVR12O -rk9fa+lU9vhzPc0NMB0GIDZ9GcHuhW5hD1Wg9OSCbTOkZDoH3CAFqonjh4Qfwv5W -IPAFn9KHukdqGXkwEMdErsUaPTy9A1V/aROVEaAY+HJgq/eZAkEA/BP1QMV04WEZ -Oynzz7/lLizJGGxp2AOvEVtqMoycA/Qk+zdKP8ufE0wbmCE3Qd6GoynavsHb6aGK -gQobb8zDZwJBANSK6MrXlrZTtEaeZuyOB4mAmRzGzOUVkUyULUjEx2GDT93ujAma -qm/2d3E+wXAkNSeRpjUmlQXy/2oSqnGvYbMCQQDRM+cYyEcGPUVpWpnj0shrF/QU -9vSot/X1G775EMTyaw6+BtbyNxVgOIu2J+rqGbn3c+b85XqTXOPL0A2RLYkFAkAm -syhSDtE9X55aoWsCNZY/vi+i4rvaFoQ/WleogVQAeGVpdo7/DK9t9YWoFBIqth0L -mGSYFu9ZhvZkvQNV8eYrAkBJ+rOIaLDsmbrgkeDruH+B/9yrm4McDtQ/rgnOGYnH -LjLpLLOrgUxqpzLWe++EwSLwK2//dHO+SPsQJ4xsyQJy ------END RSA PRIVATE KEY----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/sslsvr.rb b/vendor/gems/soap4r-1.5.8/test/soap/ssl/sslsvr.rb deleted file mode 100644 index 4f67eb94..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/sslsvr.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'webrick/https' -require 'logger' -require 'rbconfig' - -require 'soap/rpc/httpserver' - -class HelloWorldServer < SOAP::RPC::HTTPServer -private - - def on_init - self.level = Logger::Severity::FATAL - @default_namespace = 'urn:ssltst' - add_method(self, 'hello_world', 'from') - end - - def hello_world(from) - "Hello World, from #{ from }" - end -end - - -if $0 == __FILE__ - PORT = 17171 - DIR = File.dirname(File.expand_path(__FILE__)) - - def cert(filename) - OpenSSL::X509::Certificate.new(File.open(File.join(DIR, filename)) { |f| - f.read - }) - end - - def key(filename) - OpenSSL::PKey::RSA.new(File.open(File.join(DIR, filename)) { |f| - f.read - }) - end - - $server = HelloWorldServer.new( - :BindAddress => "0.0.0.0", - :Port => PORT, - :AccessLog => [], - :SSLEnable => true, - :SSLCACertificateFile => File.join(DIR, 'ca.cert'), - :SSLCertificate => cert('server.cert'), - :SSLPrivateKey => key('server.key'), - :SSLVerifyClient => nil, #OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT|OpenSSL::SSL::VERIFY_PEER, - :SSLClientCA => cert('ca.cert'), - :SSLCertName => nil - ) - t = Thread.new { - Thread.current.abort_on_exception = true - $server.start - } - STDOUT.sync = true - puts $$ - t.join -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/subca.cert b/vendor/gems/soap4r-1.5.8/test/soap/ssl/subca.cert deleted file mode 100644 index 1e471851..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/subca.cert +++ /dev/null @@ -1,21 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDaDCCAlCgAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MQswCQYDVQQGDAJKUDES -MBAGA1UECgwJSklOLkdSLkpQMQwwCgYDVQQLDANSUlIxCzAJBgNVBAMMAkNBMB4X -DTA0MDEzMDAwNDMyN1oXDTM1MDEyMjAwNDMyN1owPzELMAkGA1UEBgwCSlAxEjAQ -BgNVBAoMCUpJTi5HUi5KUDEMMAoGA1UECwwDUlJSMQ4wDAYDVQQDDAVTdWJDQTCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0Ou7AyRcRXnB/kVHv/6kwe -ANzgg/DyJfsAUqW90m7Lu1nqyug8gK0RBd77yU0w5HOAMHTVSdpjZK0g2sgx4Mb1 -d/213eL9TTl5MRVEChTvQr8q5DVG/8fxPPE7fMI8eOAzd98/NOAChk+80r4Sx7fC -kGVEE1bKwY1MrUsUNjOY2d6t3M4HHV3HX1V8ShuKfsHxgCmLzdI8U+5CnQedFgkm -3e+8tr8IX5RR1wA1Ifw9VadF7OdI/bGMzog/Q8XCLf+WPFjnK7Gcx6JFtzF6Gi4x -4dp1Xl45JYiVvi9zQ132wu8A1pDHhiNgQviyzbP+UjcB/tsOpzBQF8abYzgEkWEC -AwEAAaNyMHAwDwYDVR0TAQH/BAUwAwEB/zAxBglghkgBhvhCAQ0EJBYiUnVieS9P -cGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUlCjXWLsReYzH -LzsxwVnCXmKoB/owCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQCJ/OyN -rT8Cq2Y+G2yA/L1EMRvvxwFBqxavqaqHl/6rwsIBFlB3zbqGA/0oec6MAVnYynq4 -c4AcHTjx3bQ/S4r2sNTZq0DH4SYbQzIobx/YW8PjQUJt8KQdKMcwwi7arHP7A/Ha -LKu8eIC2nsUBnP4NhkYSGhbmpJK+PFD0FVtD0ZIRlY/wsnaZNjWWcnWF1/FNuQ4H -ySjIblqVQkPuzebv3Ror6ZnVDukn96Mg7kP4u6zgxOeqlJGRe1M949SS9Vudjl8X -SF4aZUUB9pQGhsqQJVqaz2OlhGOp9D0q54xko/rekjAIcuDjl1mdX4F2WRrzpUmZ -uY/bPeOBYiVsOYVe ------END CERTIFICATE----- diff --git a/vendor/gems/soap4r-1.5.8/test/soap/ssl/test_ssl.rb b/vendor/gems/soap4r-1.5.8/test/soap/ssl/test_ssl.rb deleted file mode 100644 index 8da4e5ef..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/ssl/test_ssl.rb +++ /dev/null @@ -1,235 +0,0 @@ -require 'test/unit' -begin - require 'httpclient' -rescue LoadError -end -require 'soap/rpc/driver' - -if defined?(HTTPClient) and defined?(OpenSSL) - -module SOAP; module SSL - - -class TestSSL < Test::Unit::TestCase - PORT = 17171 - - DIR = File.dirname(File.expand_path(__FILE__)) - require 'rbconfig' - RUBY = File.join( - Config::CONFIG["bindir"], - Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"] - ) - - def setup - @url = "https://localhost:#{PORT}/hello" - @serverpid = @client = nil - @verify_callback_called = false - setup_server - setup_client - end - - def teardown - teardown_client - teardown_server - end - - def test_options - cfg = @client.streamhandler.client.ssl_config - assert_nil(cfg.client_cert) - assert_nil(cfg.client_key) - assert_nil(cfg.client_ca) - assert_equal(OpenSSL::SSL::VERIFY_PEER | OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT, cfg.verify_mode) - assert_nil(cfg.verify_callback) - assert_nil(cfg.timeout) - assert_equal(OpenSSL::SSL::OP_ALL | OpenSSL::SSL::OP_NO_SSLv2, cfg.options) - assert_equal("ALL:!ADH:!LOW:!EXP:!MD5:+SSLv2:@STRENGTH", cfg.ciphers) - assert_instance_of(OpenSSL::X509::Store, cfg.cert_store) - # dummy call to ensure sslsvr initialization finished. - assert_raise(OpenSSL::SSL::SSLError) do - @client.hello_world("ssl client") - end - end - - def test_verification - cfg = @client.options - cfg["protocol.http.ssl_config.verify_callback"] = method(:verify_callback).to_proc - begin - @verify_callback_called = false - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # - cfg["protocol.http.ssl_config.client_cert"] = File.join(DIR, "client.cert") - cfg["protocol.http.ssl_config.client_key"] = File.join(DIR, "client.key") - @verify_callback_called = false - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # - cfg["protocol.http.ssl_config.ca_file"] = File.join(DIR, "ca.cert") - @verify_callback_called = false - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # - cfg["protocol.http.ssl_config.ca_file"] = File.join(DIR, "subca.cert") - @verify_callback_called = false - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - assert(@verify_callback_called) - # - cfg["protocol.http.ssl_config.verify_depth"] = "1" - @verify_callback_called = false - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # - cfg["protocol.http.ssl_config.verify_depth"] = "" - cfg["protocol.http.ssl_config.cert_store"] = OpenSSL::X509::Store.new - cfg["protocol.http.ssl_config.verify_mode"] = OpenSSL::SSL::VERIFY_PEER.to_s - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - end - # - cfg["protocol.http.ssl_config.verify_mode"] = "" - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - end - - def test_property - testpropertyname = File.join(DIR, 'soapclient.properties') - File.open(testpropertyname, "w") do |f| - f <<<<__EOP__ -protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER -# depth: 1 causes an error (intentional) -protocol.http.ssl_config.verify_depth = 1 -protocol.http.ssl_config.client_cert = #{File.join(DIR, 'client.cert')} -protocol.http.ssl_config.client_key = #{File.join(DIR, 'client.key')} -protocol.http.ssl_config.ca_file = #{File.join(DIR, 'ca.cert')} -protocol.http.ssl_config.ca_file = #{File.join(DIR, 'subca.cert')} -protocol.http.ssl_config.ciphers = ALL -__EOP__ - end - begin - @client.loadproperty(testpropertyname) - @client.options["protocol.http.ssl_config.verify_callback"] = method(:verify_callback).to_proc - @verify_callback_called = false - # NG with String - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # NG with Integer - @client.options["protocol.http.ssl_config.verify_depth"] = 0 - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - assert(/certificate verify failed/ =~ ssle.message) - assert(@verify_callback_called) - end - # OK with empty - @client.options["protocol.http.ssl_config.verify_depth"] = "" - @verify_callback_called = false - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - assert(@verify_callback_called) - # OK with nil - @client.options["protocol.http.ssl_config.verify_depth"] = nil - @verify_callback_called = false - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - assert(@verify_callback_called) - # OK with String - @client.options["protocol.http.ssl_config.verify_depth"] = "3" - @verify_callback_called = false - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - assert(@verify_callback_called) - # OK with Integer - @client.options["protocol.http.ssl_config.verify_depth"] = 3 - @verify_callback_called = false - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - assert(@verify_callback_called) - ensure - File.unlink(testpropertyname) - end - end - - def test_ciphers - cfg = @client.options - cfg["protocol.http.ssl_config.client_cert"] = File.join(DIR, 'client.cert') - cfg["protocol.http.ssl_config.client_key"] = File.join(DIR, 'client.key') - cfg["protocol.http.ssl_config.ca_file"] = File.join(DIR, "ca.cert") - cfg["protocol.http.ssl_config.ca_file"] = File.join(DIR, "subca.cert") - #cfg.timeout = 123 - cfg["protocol.http.ssl_config.ciphers"] = "!ALL" - # - begin - @client.hello_world("ssl client") - assert(false) - rescue OpenSSL::SSL::SSLError => ssle - # depends on OpenSSL version. (?:0.9.8|0.9.7) - assert_match(/\A(?:SSL_CTX_set_cipher_list:: no cipher match|no ciphers available)\z/, ssle.message) - end - # - cfg["protocol.http.ssl_config.ciphers"] = "ALL" - assert_equal("Hello World, from ssl client", @client.hello_world("ssl client")) - end - -private - - def q(str) - %Q["#{str}"] - end - - def setup_server - svrcmd = "#{q(RUBY)} " - svrcmd << File.join(DIR, "sslsvr.rb") - svrout = IO.popen(svrcmd) - @serverpid = Integer(svrout.gets.chomp) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, 'urn:ssltst') - @client.add_method("hello_world", "from") - end - - def teardown_server - if @serverpid - Process.kill('KILL', @serverpid) - Process.waitpid(@serverpid) - end - end - - def teardown_client - @client.reset_stream if @client - end - - def verify_callback(ok, cert) - @verify_callback_called = true - p ["client", ok, cert] if $DEBUG - ok - end -end - - -end; end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/struct/test_struct.rb b/vendor/gems/soap4r-1.5.8/test/soap/struct/test_struct.rb deleted file mode 100644 index 2363ba3c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/struct/test_struct.rb +++ /dev/null @@ -1,70 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/rpc/driver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP; module Struct - - -class TestStruct < Test::Unit::TestCase - Namespace = "urn:example.com:simpletype-rpc" - class Server < ::SOAP::RPC::HTTPServer - @@test_struct = ::Struct.new(:one, :two) - - def on_init - add_method(self, 'a_method') - end - - def a_method - @@test_struct.new("string", 1) - end - end - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :Port => Port, - :BindAddress => "0.0.0.0", - :AccessLog => [], - :SOAPDefaultNamespace => Namespace - ) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/", Namespace) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('a_method') - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def test_struct - assert_equal("string", @client.a_method.one) - assert_equal(1, @client.a_method.two) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/styleuse/client.rb b/vendor/gems/soap4r-1.5.8/test/soap/styleuse/client.rb deleted file mode 100644 index 57fe569b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/styleuse/client.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'soap/rpc/driver' - -server = 'http://localhost:7000/' - -app = SOAP::RPC::Driver.new(server, 'urn:styleuse') -app.add_rpc_method('rpc_serv', 'obj1', 'obj2') -app.add_document_method('doc_serv', 'urn:doc_serv#doc_serv', - [XSD::QName.new('urn:styleuse', 'req')], - [XSD::QName.new('urn:styleuse', 'res')]) -app.add_document_method('doc_serv2', 'urn:doc_serv#doc_serv2', - [XSD::QName.new('urn:styleuse', 'req')], - [XSD::QName.new('urn:styleuse', 'res')]) -app.wiredump_dev = STDOUT - -p app.rpc_serv(true, false) -p app.rpc_serv("foo", "bar") -p app.doc_serv({"a" => "2"}) -p app.doc_serv({"a" => {"b" => "2"}}) -p app.doc_serv2({"a" => "2"}) -p app.doc_serv2({"a" => {"b" => "2"}}) diff --git a/vendor/gems/soap4r-1.5.8/test/soap/styleuse/server.rb b/vendor/gems/soap4r-1.5.8/test/soap/styleuse/server.rb deleted file mode 100644 index 6e61c41b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/styleuse/server.rb +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env ruby - -require 'soap/rpc/standaloneServer' - -class Server < SOAP::RPC::StandaloneServer - class RpcServant - def rpc_serv(obj1, obj2) - [obj1, obj2] - end - end - - class DocumentServant - def doc_serv(hash) - hash - end - - def doc_serv2(hash) - { 'newroot' => hash } - end - end - - class GenericServant - - # method name style: requeststyle_requestuse_responsestyle_responseuse - - def rpc_enc_rpc_enc(obj1, obj2) - [obj1, obj2] - end - - alias rpc_enc_rpc_lit rpc_enc_rpc_enc - - def rpc_enc_doc_enc(obj1, obj2) - obj1 - end - - alias rpc_enc_doc_lit rpc_enc_doc_enc - - def doc_enc_rpc_enc(obj) - [obj, obj] - end - - alias doc_enc_rpc_lit doc_enc_rpc_enc - - def doc_enc_doc_enc(obj) - obj - end - - alias doc_enc_doc_lit doc_enc_doc_enc - end - - def initialize(*arg) - super - rpcservant = RpcServant.new - docservant = DocumentServant.new - add_rpc_servant(rpcservant) - add_document_method(docservant, 'urn:doc_serv#doc_serv', 'doc_serv', - [XSD::QName.new('urn:styleuse', 'req')], - [XSD::QName.new('urn:styleuse', 'res')]) - add_document_method(docservant, 'urn:doc_serv#doc_serv2', 'doc_serv2', - [XSD::QName.new('urn:styleuse', 'req')], - [XSD::QName.new('urn:styleuse', 'res')]) - - #servant = Servant.new - # ToDo: too plain: should add bare test case - #qname ||= XSD::QName.new(@default_namespace, name) - #add_operation(qname, nil, servant, "rpc_enc_rpc_enc", param_def, - # opt(:rpc, :rpc, :encoded, :encoded)) - end - - def opt(request_style, request_use, response_style, response_use) - { - :request_style => request_style, - :request_use => request_use, - :response_style => response_style, - :response_use => response_use - } - end -end - -if $0 == __FILE__ - server = Server.new('Server', 'urn:styleuse', '0.0.0.0', 7000) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/swa/test_file.rb b/vendor/gems/soap4r-1.5.8/test/soap/swa/test_file.rb deleted file mode 100644 index 09dd91a3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/swa/test_file.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'soap/rpc/standaloneServer' -require 'soap/attachment' - - -module SOAP -module SWA - - -class TestFile < Test::Unit::TestCase - Port = 17171 - THIS_FILE = File.expand_path(__FILE__) - - class SwAService - def get_file - return { - 'name' => $0, - 'file' => SOAP::Attachment.new(File.open(THIS_FILE)) # closed when GCed. - } - end - - def put_file(name, file) - "File '#{name}' was received ok." - end - end - - def setup - @server = SOAP::RPC::StandaloneServer.new('SwAServer', - 'http://www.acmetron.com/soap', '0.0.0.0', Port) - @server.add_servant(SwAService.new) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint, 'http://www.acmetron.com/soap') - @client.add_method('get_file') - @client.add_method('put_file', 'name', 'file') - @client.wiredump_dev = STDERR if $DEBUG - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - def test_get_file - assert_equal( - File.open(THIS_FILE) { |f| f.read }, - @client.get_file['file'].content - ) - end - - def test_put_file - assert_equal( - "File 'foo' was received ok.", - @client.put_file('foo', - SOAP::Attachment.new(File.open(THIS_FILE))) - ) - assert_equal( - "File 'bar' was received ok.", - @client.put_file('bar', - SOAP::Attachment.new(File.open(THIS_FILE) { |f| f.read })) - ) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_basetype.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_basetype.rb deleted file mode 100644 index 5a420aab..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_basetype.rb +++ /dev/null @@ -1,1090 +0,0 @@ -require 'test/unit' -require 'soap/baseData' - - -module SOAP - - -class TestSOAP < Test::Unit::TestCase - NegativeZero = (-1.0 / (1.0 / 0.0)) - - def setup - # Nothing to do. - end - - def teardown - # Nothing to do. - end - - def assert_parsed_result(klass, str) - o = klass.new(str) - assert_equal(str, o.to_s) - end - - def test_SOAPNil - o = SOAP::SOAPNil.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NilLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - o = SOAP::SOAPNil.new(nil) - assert_equal(true, o.is_nil) - assert_equal(nil, o.data) - assert_equal("", o.to_s) - o = SOAP::SOAPNil.new('var') - assert_equal(false, o.is_nil) - assert_equal('var', o.data) - assert_equal('var', o.to_s) - end - - def test_SOAPString - o = SOAP::SOAPString.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::StringLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, SOAP::SOAPString.new(str).data) - assert_equal(str, SOAP::SOAPString.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPString.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPString.new("\xC0\xC0").to_s - end - ensure - XSD::XSDString.strict_ces_validation = back - end - end - - def test_SOAPNormalizedString - XSD::Charset.module_eval { @encoding_backup = @internal_encoding; @internal_encoding = "NONE" } - begin - o = SOAP::SOAPNormalizedString.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NormalizedStringLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, SOAP::SOAPNormalizedString.new(str).data) - assert_equal(str, SOAP::SOAPNormalizedString.new(str).to_s) - back = SOAP::SOAPString.strict_ces_validation - SOAP::SOAPString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPNormalizedString.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPNormalizedString.new("\xC0\xC0").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPNormalizedString.new("a\tb").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPNormalizedString.new("a\r").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPNormalizedString.new("\nb").to_s - end - ensure - SOAP::SOAPString.strict_ces_validation = back - end - ensure - XSD::Charset.module_eval { @internal_encoding = @encoding_backup } - end - end - - def test_SOAPToken - XSD::Charset.module_eval { @encoding_backup = @internal_encoding; @internal_encoding = "NONE" } - begin - o = SOAP::SOAPToken.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::TokenLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, SOAP::SOAPToken.new(str).data) - assert_equal(str, SOAP::SOAPToken.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("\xC0\xC0").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("a\tb").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("a\r").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("\nb").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new(" a").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("b ").to_s - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPToken.new("a b").to_s - end - assert_equal("a b", SOAP::SOAPToken.new("a b").data) - ensure - XSD::XSDString.strict_ces_validation = back - end - ensure - XSD::Charset.module_eval { @internal_encoding = @encoding_backup } - end - end - - def test_SOAPLanguage - o = SOAP::SOAPLanguage.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::LanguageLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "ja" - assert_equal(str, SOAP::SOAPLanguage.new(str).data) - assert_equal(str, SOAP::SOAPLanguage.new(str).to_s) - str = "ja-jp" - assert_equal(str, SOAP::SOAPLanguage.new(str).data) - assert_equal(str, SOAP::SOAPLanguage.new(str).to_s) - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPLanguage.new("ja-jp-") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPLanguage.new("-ja-") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPLanguage.new("ja-") - end - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPLanguage.new("a1-01") - end - assert_equal("aA-01", SOAP::SOAPLanguage.new("aA-01").to_s) - end - - def test_SOAPBoolean - o = SOAP::SOAPBoolean.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::BooleanLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - ["true", true], - ["1", true], - ["false", false], - ["0", false], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPBoolean.new(data).data) - assert_equal(expected.to_s, SOAP::SOAPBoolean.new(data).to_s) - end - - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPBoolean.new("nil").to_s - end - end - - def test_SOAPDecimal - o = SOAP::SOAPDecimal.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DecimalLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - -9999999999, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |dec| - assert_equal(dec.to_s, SOAP::SOAPDecimal.new(dec).data) - end - - targets = [ - "0", - "0.00000001", - "1000000000", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123.45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPDecimal.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["0.0", "0"], - ["-0.0", "0"], - ["+0.0", "0"], - ["0.", "0"], - [".0", "0"], - [ - "+0.12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "0.1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" - ], - [ - ".0000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "0.000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" - ], - [ - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPDecimal.new(data).to_s) - end - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPDecimal.new(d) - end - end - end - - def test_SOAPFloat - o = SOAP::SOAPFloat.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::FloatLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 3.14159265358979, - 12.34e36, - 1.402e-45, - -1.402e-45, - ] - targets.each do |f| - assert_equal(f, SOAP::SOAPFloat.new(f).data) - end - - targets = [ - "+3.141592654", - "+1.234e+37", - "+1.402e-45", - "-1.402e-45", - ] - targets.each do |f| - assert_equal(f, SOAP::SOAPFloat.new(f).to_s) - end - - targets = [ - [3, "+3"], # should be 3.0? - [-2, "-2"], # ditto - [3.14159265358979, "+3.141592654"], - [12.34e36, "+1.234e+37"], - [1.402e-45, "+1.402e-45"], - [-1.402e-45, "-1.402e-45"], - ["1.402e", "+1.402"], - ["12.34E36", "+1.234e+37"], - ["1.402E-45", "+1.402e-45"], - ["-1.402E-45", "-1.402e-45"], - ["1.402E", "+1.402"], - ] - targets.each do |f, str| - assert_equal(str, SOAP::SOAPFloat.new(f).to_s) - end - - assert_equal("+0", SOAP::SOAPFloat.new(+0.0).to_s) - assert_equal("-0", SOAP::SOAPFloat.new(NegativeZero).to_s) - assert(SOAP::SOAPFloat.new(0.0/0.0).data.nan?) - assert_equal("INF", SOAP::SOAPFloat.new(1.0/0.0).to_s) - assert_equal(1, SOAP::SOAPFloat.new(1.0/0.0).data.infinite?) - assert_equal("-INF", SOAP::SOAPFloat.new(-1.0/0.0).to_s) - assert_equal(-1, SOAP::SOAPFloat.new(-1.0/0.0).data.infinite?) - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - "5_0", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPFloat.new(d) - end - end - end - - def test_SOAPDouble - o = SOAP::SOAPDouble.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DoubleLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 3.14159265358979, - 12.34e36, - 1.402e-45, - -1.402e-45, - ] - targets.each do |f| - assert_equal(f, SOAP::SOAPDouble.new(f).data) - end - - targets = [ - "+3.14159265358979", - "+1.234e+37", - "+1.402e-45", - "-1.402e-45", - ] - targets.each do |f| - assert_equal(f, SOAP::SOAPDouble.new(f).to_s) - end - - targets = [ - [3, "+3"], # should be 3.0? - [-2, "-2"], # ditto. - [3.14159265358979, "+3.14159265358979"], - [12.34e36, "+1.234e+37"], - [1.402e-45, "+1.402e-45"], - [-1.402e-45, "-1.402e-45"], - ["1.402e", "+1.402"], - ["12.34E36", "+1.234e+37"], - ["1.402E-45", "+1.402e-45"], - ["-1.402E-45", "-1.402e-45"], - ["1.402E", "+1.402"], - ] - targets.each do |f, str| - assert_equal(str, SOAP::SOAPDouble.new(f).to_s) - end - - assert_equal("+0", SOAP::SOAPFloat.new(+0.0).to_s) - assert_equal("-0", SOAP::SOAPFloat.new(NegativeZero).to_s) - assert_equal("NaN", SOAP::SOAPDouble.new(0.0/0.0).to_s) - assert(SOAP::SOAPDouble.new(0.0/0.0).data.nan?) - assert_equal("INF", SOAP::SOAPDouble.new(1.0/0.0).to_s) - assert_equal(1, SOAP::SOAPDouble.new(1.0/0.0).data.infinite?) - assert_equal("-INF", SOAP::SOAPDouble.new(-1.0/0.0).to_s) - assert_equal(-1, SOAP::SOAPDouble.new(-1.0/0.0).data.infinite?) - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPDouble.new(d) - end - end - end - - def test_SOAPDuration - o = SOAP::SOAPDuration.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DurationLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "P1Y2M3DT4H5M6S", - "P1234Y5678M9012DT3456H7890M1234.5678S", - "PT3456H7890M1234.5678S", - "P1234Y5678M9012D", - "-P1234Y5678M9012DT3456H7890M1234.5678S", - "P5678M9012DT3456H7890M1234.5678S", - "-P1234Y9012DT3456H7890M1234.5678S", - "+P1234Y5678MT3456H7890M1234.5678S", - "P1234Y5678M9012DT7890M1234.5678S", - "-P1234Y5678M9012DT3456H1234.5678S", - "+P1234Y5678M9012DT3456H7890M", - "P123400000000000Y", - "-P567800000000000M", - "+P901200000000000D", - "PT345600000000000H", - "-PT789000000000000M", - "+PT123400000000000.000000000005678S", - "P1234YT1234.5678S", - "-P5678MT7890M", - "+P9012DT3456H", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPDuration, str) - end - - targets = [ - ["P0Y0M0DT0H0M0S", - "P0D"], - ["-P0DT0S", - "-P0D"], - ["P01234Y5678M9012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y005678M9012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M0009012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT00003456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT3456H000007890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT3456H7890M0000001234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPDuration.new(data).to_s) - end - end - - def test_SOAPDateTime - o = SOAP::SOAPDateTime.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DateTimeLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05-18T16:52:20Z", - "0001-01-01T00:00:00Z", - "9999-12-31T23:59:59Z", - "19999-12-31T23:59:59Z", - "2002-12-31T23:59:59.999Z", - "2002-12-31T23:59:59.001Z", - "2002-12-31T23:59:59.99999999999999999999Z", - "2002-12-31T23:59:59.00000000000000000001Z", - "2002-12-31T23:59:59+09:00", - "2002-12-31T23:59:59+00:01", - "2002-12-31T23:59:59-00:01", - "2002-12-31T23:59:59-23:59", - "2002-12-31T23:59:59.00000000000000000001+13:30", - "2002-12-31T23:59:59.51375Z", - "2002-12-31T23:59:59.51345+12:34", - "-2002-05-18T16:52:20Z", - "-4711-12-31T23:59:59Z", - "-4713-01-01T12:00:00Z", - "-19999-12-31T23:59:59Z", - "-2002-12-31T23:59:59+00:01", - "-0001-12-31T23:59:59.00000000000000000001+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPDateTime, str) - end - - targets = [ - ["2002-12-31T23:59:59.00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59+00:00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59-00:00", - "2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59.00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59+00:00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59-00:00", - "-2002-12-31T23:59:59Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPDateTime.new(data).to_s) - d = DateTime.parse(data) - d >>= 12 if d.year < 0 # XSDDateTime.year(-1) == DateTime.year(0) - assert_equal(expected, SOAP::SOAPDateTime.new(d).to_s) - end - - targets = [ - "1-05-18T16:52:20Z", - "05-18T16:52:20Z", - "2002-05T16:52:20Z", - "2002-05-18T16:52Z", - "", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - SOAP::SOAPDateTime.new(d) - end - end - end - - def test_SOAPTime - o = SOAP::SOAPTime.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::TimeLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "16:52:20Z", - "00:00:00Z", - "23:59:59Z", - "23:59:59.999Z", - "23:59:59.001Z", - "23:59:59.99999999999999999999Z", - "23:59:59.00000000000000000001Z", - "23:59:59+09:00", - "23:59:59+00:01", - "23:59:59-00:01", - "23:59:59-23:59", - "23:59:59.00000000000000000001+13:30", - "23:59:59.51375Z", - "23:59:59.51375+12:34", - "23:59:59+00:01", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPTime, str) - end - - targets = [ - ["23:59:59.00", - "23:59:59Z"], - ["23:59:59+00:00", - "23:59:59Z"], - ["23:59:59-00:00", - "23:59:59Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPTime.new(data).to_s) - end - end - - def test_SOAPDate - o = SOAP::SOAPDate.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DateLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05-18Z", - "0001-01-01Z", - "9999-12-31Z", - "19999-12-31Z", - "2002-12-31+09:00", - "2002-12-31+00:01", - "2002-12-31-00:01", - "2002-12-31-23:59", - "2002-12-31+13:30", - "-2002-05-18Z", - "-19999-12-31Z", - "-2002-12-31+00:01", - "-0001-12-31+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPDate, str) - end - - targets = [ - ["2002-12-31", - "2002-12-31Z"], - ["2002-12-31+00:00", - "2002-12-31Z"], - ["2002-12-31-00:00", - "2002-12-31Z"], - ["-2002-12-31", - "-2002-12-31Z"], - ["-2002-12-31+00:00", - "-2002-12-31Z"], - ["-2002-12-31-00:00", - "-2002-12-31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPDate.new(data).to_s) - d = Date.parse(data) - d >>= 12 if d.year < 0 # XSDDate.year(-1) == Date.year(0) - assert_equal(expected, SOAP::SOAPDate.new(d).to_s) - end - end - - def test_SOAPGYearMonth - o = SOAP::SOAPGYearMonth.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GYearMonthLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05Z", - "0001-01Z", - "9999-12Z", - "19999-12Z", - "2002-12+09:00", - "2002-12+00:01", - "2002-12-00:01", - "2002-12-23:59", - "2002-12+13:30", - "-2002-05Z", - "-19999-12Z", - "-2002-12+00:01", - "-0001-12+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPGYearMonth, str) - end - - targets = [ - ["2002-12", - "2002-12Z"], - ["2002-12+00:00", - "2002-12Z"], - ["2002-12-00:00", - "2002-12Z"], - ["-2002-12", - "-2002-12Z"], - ["-2002-12+00:00", - "-2002-12Z"], - ["-2002-12-00:00", - "-2002-12Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPGYearMonth.new(data).to_s) - end - end - - def test_SOAPGYear - o = SOAP::SOAPGYear.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GYearLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002Z", - "0001Z", - "9999Z", - "19999Z", - "2002+09:00", - "2002+00:01", - "2002-00:01", - "2002-23:59", - "2002+13:30", - "-2002Z", - "-19999Z", - "-2002+00:01", - "-0001+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPGYear, str) - end - - targets = [ - ["2002", - "2002Z"], - ["2002+00:00", - "2002Z"], - ["2002-00:00", - "2002Z"], - ["-2002", - "-2002Z"], - ["-2002+00:00", - "-2002Z"], - ["-2002-00:00", - "-2002Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPGYear.new(data).to_s) - end - end - - def test_SOAPGMonthDay - o = SOAP::SOAPGMonthDay.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GMonthDayLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "05-18Z", - "01-01Z", - "12-31Z", - "12-31+09:00", - "12-31+00:01", - "12-31-00:01", - "12-31-23:59", - "12-31+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPGMonthDay, str) - end - - targets = [ - ["12-31", - "12-31Z"], - ["12-31+00:00", - "12-31Z"], - ["12-31-00:00", - "12-31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPGMonthDay.new(data).to_s) - end - end - - def test_SOAPGDay - o = SOAP::SOAPGDay.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GDayLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "18Z", - "01Z", - "31Z", - "31+09:00", - "31+00:01", - "31-00:01", - "31-23:59", - "31+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPGDay, str) - end - - targets = [ - ["31", - "31Z"], - ["31+00:00", - "31Z"], - ["31-00:00", - "31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPGDay.new(data).to_s) - end - end - - def test_SOAPGMonth - o = SOAP::SOAPGMonth.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GMonthLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "05Z", - "01Z", - "12Z", - "12+09:00", - "12+00:01", - "12-00:01", - "12-23:59", - "12+13:30", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPGMonth, str) - end - - targets = [ - ["12", - "12Z"], - ["12+00:00", - "12Z"], - ["12-00:00", - "12Z"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPGMonth.new(data).to_s) - end - end - - def test_SOAPHexBinary - o = SOAP::SOAPHexBinary.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::HexBinaryLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "abcdef", - "\xe3\x81\xaa\xe3\x81\xb2", - "\0", - "", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPHexBinary.new(str).string) - assert_equal(str.unpack("H*")[0].tr('a-f', 'A-F'), - SOAP::SOAPHexBinary.new(str).data) - o = SOAP::SOAPHexBinary.new - o.set_encoded(str.unpack("H*")[0].tr('a-f', 'A-F')) - assert_equal(str, o.string) - o.set_encoded(str.unpack("H*")[0].tr('A-F', 'a-f')) - assert_equal(str, o.string) - end - - targets = [ - "0FG7", - "0fg7", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - o = SOAP::SOAPHexBinary.new - o.set_encoded(d) - p o.string - end - end - end - - def test_SOAPBase64Binary - o = SOAP::SOAPBase64.new - assert_equal(SOAP::EncodingNamespace, o.type.namespace) - assert_equal(SOAP::Base64Literal, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "abcdef", - "\xe3\x81\xaa\xe3\x81\xb2", - "\0", - "", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPBase64.new(str).string) - assert_equal([str].pack("m").chomp, SOAP::SOAPBase64.new(str).data) - o = SOAP::SOAPBase64.new - o.set_encoded([str].pack("m").chomp) - assert_equal(str, o.string) - end - - targets = [ - "-", - "*", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - o = SOAP::SOAPBase64.new - o.set_encoded(d) - p o.string - end - end - end - - def test_SOAPAnyURI - o = SOAP::SOAPAnyURI.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::AnyURILiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - # Too few tests here I know. Believe uri module. :) - targets = [ - "foo", - "http://foo", - "http://foo/bar/baz", - "http://foo/bar#baz", - "http://foo/bar%20%20?a+b", - "HTTP://FOO/BAR%20%20?A+B", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPAnyURI, str) - end - end - - def test_SOAPQName - o = SOAP::SOAPQName.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::QNameLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - # More strict test is needed but current implementation allows all non-':' - # chars like ' ', C0 or C1... - targets = [ - "foo", - "foo:bar", - "a:b", - ] - targets.each do |str| - assert_parsed_result(SOAP::SOAPQName, str) - end - end - - - ### - ## Derived types - # - - def test_SOAPInteger - o = SOAP::SOAPInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::IntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - -9999999999, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |int| - assert_equal(int, SOAP::SOAPInteger.new(int).data) - end - - targets = [ - "0", - "1000000000", - "-9999999999", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPInteger.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - [ - "+12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPInteger.new(data).to_s) - end - - targets = [ - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPInteger.new(d) - end - end - end - - def test_SOAPLong - o = SOAP::SOAPLong.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::LongLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 9223372036854775807, - -9223372036854775808, - ] - targets.each do |lng| - assert_equal(lng, SOAP::SOAPLong.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "9223372036854775807", - "-9223372036854775808", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPLong.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPLong.new(data).to_s) - end - - targets = [ - 9223372036854775808, - -9223372036854775809, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPLong.new(d) - end - end - end - - def test_SOAPInt - o = SOAP::SOAPInt.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::IntLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 2147483647, - -2147483648, - ] - targets.each do |lng| - assert_equal(lng, SOAP::SOAPInt.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "2147483647", - "-2147483648", - ] - targets.each do |str| - assert_equal(str, SOAP::SOAPInt.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, SOAP::SOAPInt.new(data).to_s) - end - - targets = [ - 2147483648, - -2147483649, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - SOAP::SOAPInt.new(d) - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_cookie.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_cookie.rb deleted file mode 100644 index eae956b3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_cookie.rb +++ /dev/null @@ -1,112 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'webrick' -require 'logger' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'testutil.rb') - - -module SOAP - - -class TestCookie < Test::Unit::TestCase - Port = 17171 - - class CookieFilter < SOAP::Filter::StreamHandler - attr_accessor :cookie_value - - def initialize - @cookie_value = nil - end - - def on_http_outbound(req) - if @cookie_value - req.header.delete('Cookie') - req.header['Cookie'] = @cookie_value - end - end - - def on_http_inbound(req, res) - # this sample filter only caputures the first cookie. - cookie = res.header['Set-Cookie'][0] - cookie.sub!(/;.*\z/, '') if cookie - @cookie_value = cookie - # do not save cookie value. - end - end - - def setup - @logger = Logger.new(STDERR) - @logger.level = Logger::Severity::ERROR - @url = "http://localhost:#{Port}/" - @server = @client = nil - @server_thread = nil - setup_server - setup_client - end - - def teardown - teardown_client if @client - teardown_server if @server - end - - def setup_server - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)) - ) - @server.mount( - '/', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc).to_proc) - ) - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, '') - @client.add_method("do_server_proc") - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def do_server_proc(req, res) - cookie = req['Cookie'].to_s - cookie = "var=hello world" if cookie.empty? - res['content-type'] = 'text/xml' - res['Set-Cookie'] = cookie - res.body = <<__EOX__ - - - - - - - - -__EOX__ - end - - def test_normal - @client.wiredump_dev = STDOUT if $DEBUG - filter = CookieFilter.new - @client.streamhandler.filterchain << filter - assert_nil(@client.do_server_proc) - assert_equal('var=hello world', filter.cookie_value) - filter.cookie_value = 'var=empty' - assert_nil(@client.do_server_proc) - assert_equal('var=empty', filter.cookie_value) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_custom_ns.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_custom_ns.rb deleted file mode 100644 index 51cadc64..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_custom_ns.rb +++ /dev/null @@ -1,105 +0,0 @@ -require 'test/unit' -require 'soap/processor' - - -module SOAP - - -class TestCustomNs < Test::Unit::TestCase - NORMAL_XML = <<__XML__.chomp - - - - hi - - - bi - - -__XML__ - - CUSTOM_NS_XML = <<__XML__.chomp - - - - hi - - - bi - - -__XML__ - - XML_WITH_DEFAULT_NS = <<__XML__.chomp - - - - hi - - - bi - - -__XML__ - - def test_custom_ns - # create test env - header = SOAP::SOAPHeader.new() - hi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "headeritem"), 'hi') - header.add("test", hi) - body = SOAP::SOAPBody.new() - bi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "bodyitem"), 'bi') - bi.extraattr[XSD::QName.new('my:bar', 'baz')] = 'qux' - body.add("test", bi) - env = SOAP::SOAPEnvelope.new(header, body) - # normal - opt = {} - result = SOAP::Processor.marshal(env, opt) - assert_equal(NORMAL_XML, result) - # Envelope ns customize - env = SOAP::SOAPEnvelope.new(header, body) - ns = XSD::NS.new - ns.assign(SOAP::EnvelopeNamespace, 'ENV') - ns.assign('my:foo', 'myns') - # tag customize - tag = XSD::NS.new - tag.assign('my:bar', 'bar') - opt = { :default_ns => ns, :default_ns_tag => tag } - result = SOAP::Processor.marshal(env, opt) - assert_equal(CUSTOM_NS_XML, result) - end - - def test_default_namespace - # create test env - header = SOAP::SOAPHeader.new() - hi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "headeritem"), 'hi') - header.add("test", hi) - body = SOAP::SOAPBody.new() - bi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "bodyitem"), 'bi') - bi.extraattr[XSD::QName.new('my:bar', 'baz')] = 'qux' - bi.extraattr[XSD::QName.new('my:foo', 'quxx')] = 'quxxx' - body.add("test", bi) - env = SOAP::SOAPEnvelope.new(header, body) - # normal - opt = {:use_default_namespace => true} - result = SOAP::Processor.marshal(env, opt) - assert_equal(XML_WITH_DEFAULT_NS, result) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_custommap.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_custommap.rb deleted file mode 100644 index c17407c5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_custommap.rb +++ /dev/null @@ -1,110 +0,0 @@ -require 'test/unit' -require 'soap/marshal' -require 'soap/rpc/standaloneServer' -require 'soap/rpc/driver' - - -module SOAP - - -class TestMap < Test::Unit::TestCase - - class CustomHashFactory < SOAP::Mapping::Factory - def initialize(itemname) - @itemname = itemname - end - - def obj2soap(soap_class, obj, info, map) - soap_obj = SOAP::SOAPStruct.new(SOAP::Mapping::MapQName) - mark_marshalled_obj(obj, soap_obj) - obj.each do |key, value| - elem = SOAP::SOAPStruct.new - elem.add('key', Mapping._obj2soap(key, map)) - elem.add('value', Mapping._obj2soap(value, map)) - soap_obj.add(@itemname, elem) - end - soap_obj - end - - def soap2obj(obj_class, node, info, map) - false - end - end - - Map = SOAP::Mapping::Registry.new - Map.add(Hash, SOAP::SOAPStruct, CustomHashFactory.new('customname')) - - Port = 17171 - - class MapServer < SOAP::RPC::StandaloneServer - def initialize(*arg) - super - add_rpc_method(self, 'echo', 'map') - add_rpc_method(self, 'setmap') - end - - def echo(map) - map - end - - def setmap - self.mapping_registry = Map - nil - end - end - - def setup - @server = MapServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint) - @client.add_rpc_method('echo', 'map') - @client.add_rpc_method('setmap') - @client.wiredump_dev = STDOUT if $DEBUG - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - def test_map - h = {'a' => 1, 'b' => 2} - soap = SOAP::Marshal.marshal(h) - puts soap if $DEBUG - obj = SOAP::Marshal.unmarshal(soap) - assert_equal(h, obj) - # - soap = SOAP::Marshal.marshal(h, Map) - puts soap if $DEBUG - obj = SOAP::Marshal.unmarshal(soap, Map) - assert_equal(h, obj) - end - - def test_rpc - h = {'a' => 1, 'b' => 2} - @client.wiredump_dev = str = '' - assert_equal(h, @client.echo(h)) - assert_equal(0, str.scan(/customname/).size) - # - @client.setmap - @client.wiredump_dev = str = '' - assert_equal(h, @client.echo(h)) - assert_equal(4, str.scan(/customname/).size) - # - @client.mapping_registry = Map - @client.wiredump_dev = str = '' - assert_equal(h, @client.echo(h)) - assert_equal(8, str.scan(/customname/).size) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_empty.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_empty.rb deleted file mode 100644 index fd8c2d0f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_empty.rb +++ /dev/null @@ -1,105 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/rpc/driver' -require 'soap/header/handler' - - -module SOAP - - -class TestEmpty < Test::Unit::TestCase - Port = 17171 - - class EmptyHeaderHandler < SOAP::Header::Handler - def on_outbound(header) - # dump Header even if no header item given. - header.force_encode = true - # no additional header item - nil - end - end - - class NopServer < SOAP::RPC::StandaloneServer - def initialize(*arg) - super - add_document_method(self, 'urn:empty:nop', 'nop', [], []) - add_document_method(self, 'urn:empty:nop', 'nop_nil', nil, nil) - end - - def nop - [1, 2, 3] # ignored - end - - def nop_nil - [1, 2, 3] # ignored - end - end - - def setup - @server = NopServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint) - @client.add_document_method('nop', 'urn:empty:nop', [], []) - @client.add_document_method('nop_nil', 'urn:empty:nop', nil, nil) - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - EMPTY_XML = %q[ - - -] - - EMPTY_HEADER_XML = %q[ - - - -] - - def test_nop - @client.wiredump_dev = str = '' - @client.nop - assert_equal(EMPTY_XML, parse_requestxml(str)) - assert_equal(EMPTY_XML, parse_responsexml(str)) - end - - def test_nop_nil - @client.wiredump_dev = str = '' - @client.nop_nil - assert_equal(EMPTY_XML, parse_requestxml(str)) - assert_equal(EMPTY_XML, parse_responsexml(str)) - end - - def test_empty_header - @client.headerhandler << EmptyHeaderHandler.new(nil) - @client.wiredump_dev = str = '' - @client.nop - assert_equal(EMPTY_HEADER_XML, parse_requestxml(str)) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end - - def parse_responsexml(str) - str.split(/\r?\n\r?\n/)[6] - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_envelopenamespace.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_envelopenamespace.rb deleted file mode 100644 index cd39c1a2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_envelopenamespace.rb +++ /dev/null @@ -1,85 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'webrick' -require 'logger' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'testutil.rb') - - -module SOAP - - -class TestEnvelopeNamespace < Test::Unit::TestCase - Port = 17171 - TemporaryNamespace = 'urn:foo' - - def setup - @logger = Logger.new(STDERR) - @logger.level = Logger::Severity::ERROR - @url = "http://localhost:#{Port}/" - @server = @client = nil - @server_thread = nil - setup_server - setup_client - end - - def teardown - teardown_client if @client - teardown_server if @server - end - - def setup_server - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)) - ) - @server.mount( - '/', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc).to_proc) - ) - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, '') - @client.add_method("do_server_proc") - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def do_server_proc(req, res) - res['content-type'] = 'text/xml' - res.body = <<__EOX__ - - - - - hello world - - - -__EOX__ - end - - def test_normal - assert_raise(SOAP::ResponseFormatError) do - @client.do_server_proc - end - @client.options["soap.envelope.requestnamespace"] = TemporaryNamespace - @client.options["soap.envelope.responsenamespace"] = TemporaryNamespace - assert_equal('hello world', @client.do_server_proc) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_extraattr.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_extraattr.rb deleted file mode 100644 index d0812907..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_extraattr.rb +++ /dev/null @@ -1,54 +0,0 @@ -require 'test/unit' -require 'soap/processor' - - -module SOAP - - -class TestExtrAttr < Test::Unit::TestCase - - HEADER_XML = %q[ - - - - - - - -] - - def test_extraattr - header = SOAP::SOAPHeader.new() - header.extraattr["Id"] = "extraattr" - hi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "headeritem")) - hi.extraattr["Id"] = "extraattr" - header.add("test", hi) - body = SOAP::SOAPBody.new() - body.extraattr["Id"] = "extraattr<>" - bi = SOAP::SOAPElement.new(XSD::QName.new("my:foo", "bodyitem")) - bi.extraattr["Id"] = "extraattr" - body.add("test", bi) - env = SOAP::SOAPEnvelope.new(header, body) - env.extraattr["Id"] = "extraattr" - g = SOAP::Generator.new() - xml = g.generate(env) - assert_equal(HEADER_XML, xml) - # - parser = SOAP::Parser.new - env = parser.parse(xml) - header = env.header - body = env.body - assert_equal("extraattr", env.extraattr[XSD::QName.new(nil, "Id")]) - assert_equal("extraattr", header.extraattr[XSD::QName.new(nil, "Id")]) - assert_equal("extraattr<>", body.extraattr[XSD::QName.new(nil, "Id")]) - assert_equal("extraattr", header["headeritem"].element.extraattr[XSD::QName.new(nil, "Id")]) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_generator.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_generator.rb deleted file mode 100644 index 975b2dd6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_generator.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'test/unit' -require 'soap/processor' - - -module SOAP - - -class TestGenerator < Test::Unit::TestCase - # based on #417, reported by Kou. - def test_encode - str = "\343\201\217<" - g = SOAP::Generator.new - g.generate(SOAPElement.new('foo')) - assert_equal("<", g.encode_string(str)[-4, 4]) - # - begin - kc_backup = $KCODE.dup - $KCODE = 'EUC-JP' - assert_equal("<", g.encode_string(str)[-4, 4]) - ensure - $KCODE = kc_backup - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_httpconfigloader.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_httpconfigloader.rb deleted file mode 100644 index d3ca8bd5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_httpconfigloader.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'test/unit' -require 'soap/httpconfigloader' -require 'soap/rpc/driver' - -if defined?(HTTPClient) - -module SOAP - - -class TestHTTPConfigLoader < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def setup - @client = SOAP::RPC::Driver.new(nil, nil) - end - - class Request - class Header - attr_reader :request_uri - def initialize(request_uri) - @request_uri = request_uri - end - end - - attr_reader :header - def initialize(request_uri) - @header = Header.new(request_uri) - end - end - - def test_property - testpropertyname = File.join(DIR, 'soapclient.properties') - File.open(testpropertyname, "w") do |f| - f <<<<__EOP__ -protocol.http.proxy = http://myproxy:8080 -protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER -# depth: 1 causes an error (intentional) -protocol.http.ssl_config.verify_depth = 1 -protocol.http.ssl_config.ciphers = ALL -protocol.http.basic_auth.1.url = http://www.example.com/foo1/ -protocol.http.basic_auth.1.userid = user1 -protocol.http.basic_auth.1.password = password1 -protocol.http.basic_auth.2.url = http://www.example.com/foo2/ -protocol.http.basic_auth.2.userid = user2 -protocol.http.basic_auth.2.password = password2 -__EOP__ - end - begin - @client.loadproperty(testpropertyname) - assert_equal('ALL', @client.options['protocol.http.ssl_config.ciphers']) - @client.options['protocol.http.basic_auth'] << - ['http://www.example.com/foo3/', 'user3', 'password3'] - h = @client.streamhandler.client - basic_auth = h.www_auth.basic_auth - cred1 = ["user1:password1"].pack('m').tr("\n", '') - cred2 = ["user2:password2"].pack('m').tr("\n", '') - cred3 = ["user3:password3"].pack('m').tr("\n", '') - basic_auth.challenge(URI.parse("http://www.example.com/"), nil) - assert_equal(cred1, basic_auth.get(Request.new(URI.parse("http://www.example.com/foo1/baz")))) - assert_equal(cred2, basic_auth.get(Request.new(URI.parse("http://www.example.com/foo2/")))) - assert_equal(cred3, basic_auth.get(Request.new(URI.parse("http://www.example.com/foo3/baz/qux")))) - ensure - File.unlink(testpropertyname) - end - end -end - - -end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_mapping.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_mapping.rb deleted file mode 100644 index e41be7ac..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_mapping.rb +++ /dev/null @@ -1,131 +0,0 @@ -require 'test/unit' -require 'soap/mapping' -require 'soap/marshal' - - -module SOAP - - -class TestMapping < Test::Unit::TestCase - - class MappablePerson - attr_reader :name - attr_reader :age - - def initialize(name, age) - @name, @age = name, age - end - - def self.soap_marshallable - true - end - end - - class UnmappablePerson - attr_reader :name - attr_reader :age - - def initialize(name, age) - @name, @age = name, age - end - - def self.soap_marshallable - false - end - end - - def test_mappable - xml = <<__XML__ - - - - - nahi - 37 - - - -__XML__ - obj = SOAP::Marshal.load(xml) - assert_equal(SOAP::TestMapping::MappablePerson, obj.class) - # - xml = <<__XML__ - - - - - nahi - 37 - - - -__XML__ - obj = SOAP::Marshal.load(xml) - assert_equal(SOAP::Mapping::Object, obj.class) - end - - def test_nestedexception - ele = Thread.new {} - obj = [ele] - begin - SOAP::Marshal.dump(obj) - rescue ::SOAP::Mapping::MappingError => e - assert(e.backtrace.find { |line| /\[NESTED\]/ =~ line }) - end - end - - def test_date - targets = [ - ["2002-12-31", - "2002-12-31Z"], - ["2002-12-31+00:00", - "2002-12-31Z"], - ["2002-12-31-00:00", - "2002-12-31Z"], - ["-2002-12-31", - "-2002-12-31Z"], - ["-2002-12-31+00:00", - "-2002-12-31Z"], - ["-2002-12-31-00:00", - "-2002-12-31Z"], - ] - targets.each do |str, expectec| - d = Date.parse(str) - assert_equal(d.class, convert(d).class) - assert_equal(d, convert(d)) - end - end - - def test_datetime - targets = [ - ["2002-12-31T23:59:59.00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59+00:00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59-00:00", - "2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59.00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59+00:00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59-00:00", - "-2002-12-31T23:59:59Z"], - ] - targets.each do |str, expectec| - d = DateTime.parse(str) - assert_equal(d.class, convert(d).class) - assert_equal(d, convert(d)) - end - end - - def convert(obj) - SOAP::Mapping.soap2obj(SOAP::Mapping.obj2soap(obj)) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_nestedexception.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_nestedexception.rb deleted file mode 100644 index 2bd65411..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_nestedexception.rb +++ /dev/null @@ -1,56 +0,0 @@ -require 'test/unit' -require 'soap/soap' - - -module SOAP - - -class TestNestedException < Test::Unit::TestCase - class MyError < SOAP::Error; end - - def foo - begin - bar - rescue - raise MyError.new("foo", $!) - end - end - - def bar - begin - baz - rescue - raise MyError.new("bar", $!) - end - end - - def baz - raise MyError.new("baz", $!) - end - - def test_nestedexception - begin - foo - rescue MyError => e - trace = e.backtrace.find_all { |line| /test\/unit/ !~ line && /\d\z/ !~ line } - trace = trace.map { |line| line.sub(/\A[^:]*/, '') } - assert_equal(TOBE, trace) - end - end - - TOBE = [ - ":15:in `foo'", - ":33:in `test_nestedexception'", - ":23:in `bar': bar (SOAP::TestNestedException::MyError) [NESTED]", - ":13:in `foo'", - ":33:in `test_nestedexception'", - ":28:in `baz': baz (SOAP::TestNestedException::MyError) [NESTED]", - ":21:in `bar'", - ":13:in `foo'", - ":33:in `test_nestedexception'", - ] - -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_nil.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_nil.rb deleted file mode 100644 index 689c57aa..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_nil.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/rpc/driver' -require 'soap/header/handler' - - -module SOAP - - -class TestNil < Test::Unit::TestCase - Port = 17171 - - class NilServer < SOAP::RPC::StandaloneServer - def initialize(*arg) - super - add_method(self, 'nop') - end - - def nop - 1 - end - end - - def setup - @server = NilServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint) - @client.add_rpc_method('nop') - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - require 'rexml/document' - # emulates SOAP::Lite's nil request - def test_soaplite_nil - body = SOAP::SOAPBody.new(REXML::Document.new(<<-__XML__)) - - __XML__ - @client.wiredump_dev = STDOUT if $DEBUG - header, body = @client.invoke(nil, body) - assert_equal(1, body.root_node["return"].data) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_no_indent.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_no_indent.rb deleted file mode 100644 index 43d617dd..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_no_indent.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/rpc/driver' - -if defined?(HTTPClient) - -module SOAP - - -class TestNoIndent < Test::Unit::TestCase - Port = 17171 - - class NopServer < SOAP::RPC::StandaloneServer - def initialize(*arg) - super - add_rpc_method(self, 'nop') - end - - def nop - SOAP::RPC::SOAPVoid.new - end - end - - def setup - @server = NopServer.new(self.class.name, nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - @server.start - } - @endpoint = "http://localhost:#{Port}/" - @client = SOAP::RPC::Driver.new(@endpoint) - @client.add_rpc_method('nop') - end - - def teardown - @server.shutdown if @server - if @t - @t.kill - @t.join - end - @client.reset_stream if @client - end - - INDENT_XML = -%q[ - - - - - -] - - NO_INDENT_XML = -%q[ - - - - - -] - - def test_indent - @client.wiredump_dev = str = '' - @client.options["soap.envelope.no_indent"] = false - @client.nop - assert_equal(INDENT_XML, parse_requestxml(str)) - end - - def test_no_indent - @client.wiredump_dev = str = '' - @client.options["soap.envelope.no_indent"] = true - @client.nop - assert_equal(NO_INDENT_XML, parse_requestxml(str)) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end -end - - -end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_property.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_property.rb deleted file mode 100644 index 0bd8eb9b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_property.rb +++ /dev/null @@ -1,427 +0,0 @@ -require 'test/unit' -require 'soap/property' - - -module SOAP - - -class TestProperty < Test::Unit::TestCase - FrozenError = (RUBY_VERSION >= "1.9.0") ? RuntimeError : TypeError - - def setup - @prop = ::SOAP::Property.new - end - - def teardown - # Nothing to do. - end - - def test_s_load - propstr = <<__EOP__ - -# comment1 - -# comment2\r -# comment2 - -\r -a.b.0 = 1 -a.b.1 = 2 -a.b.2 = 3 -a.b.3 = 日本語 -a.b.表 = 1表2 -client.protocol.http.proxy=http://myproxy:8080 \r -client.protocol.http.no_proxy: intranet.example.com,local.example.com\r -client.protocol.http.protocol_version = 1.0 -foo\\:bar\\=baz = qux -foo\\\\.bar.baz=\tq\\\\ux\ttab - a\\ b = 1 -[ppp.qqq.rrr] -sss = 3 -ttt.uuu = 4 - -[ sss.ttt.uuu ] -vvv.www = 5 -[ ] -xxx.yyy.zzz = 6 -__EOP__ - prop = Property.load(propstr) - assert_equal("1表2", prop["a.b.表"]) - assert_equal(["1", "1表2", "2", "3", "日本語"], prop["a.b"].values.sort) - assert_equal("intranet.example.com,local.example.com", - prop["client.protocol.http.no_proxy"]) - assert_equal("http://myproxy:8080", prop["client.protocol.http.proxy"]) - assert_equal("1.0", prop["client.protocol.http.protocol_version"]) - assert_equal("q\\ux\ttab", prop['foo\.bar.baz']) - assert_equal("1", prop['a b']) - assert_equal("3", prop['ppp.qqq.rrr.sss']) - assert_equal("4", prop['ppp.qqq.rrr.ttt.uuu']) - assert_equal("5", prop['sss.ttt.uuu.vvv.www']) - assert_equal("6", prop['xxx.yyy.zzz']) - end - - def test_load - prop = Property.new - hooked = false - prop.add_hook("foo.bar.baz") do |name, value| - assert_equal(["foo", "bar", "baz"], name) - assert_equal("123", value) - hooked = true - end - prop.lock - prop["foo.bar"].lock - prop.load("foo.bar.baz = 123") - assert(hooked) - assert_raises(FrozenError) do - prop.load("foo.bar.qux = 123") - end - prop.load("foo.baz = 456") - assert_equal("456", prop["foo.baz"]) - end - - def test_initialize - prop = ::SOAP::Property.new - # store is empty - assert_nil(prop["a"]) - # does hook work? - assert_equal(1, prop["a"] = 1) - end - - def test_aref - # name_to_a - assert_nil(@prop[:foo]) - assert_nil(@prop["foo"]) - assert_nil(@prop[[:foo]]) - assert_nil(@prop[["foo"]]) - assert_raises(ArgumentError) do - @prop[1] - end - @prop[:foo] = :foo - assert_equal(:foo, @prop[:foo]) - assert_equal(:foo, @prop["foo"]) - assert_equal(:foo, @prop[[:foo]]) - assert_equal(:foo, @prop[["foo"]]) - end - - def test_referent - # referent(1) - assert_nil(@prop["foo.foo"]) - assert_nil(@prop[["foo", "foo"]]) - assert_nil(@prop[["foo", :foo]]) - @prop["foo.foo"] = :foo - assert_equal(:foo, @prop["foo.foo"]) - assert_equal(:foo, @prop[["foo", "foo"]]) - assert_equal(:foo, @prop[[:foo, "foo"]]) - # referent(2) - @prop["bar.bar.bar"] = :bar - assert_equal(:bar, @prop["bar.bar.bar"]) - assert_equal(:bar, @prop[["bar", "bar", "bar"]]) - assert_equal(:bar, @prop[[:bar, "bar", :bar]]) - end - - def test_to_key_and_deref - @prop["foo.foo"] = :foo - assert_equal(:foo, @prop["fOo.FoO"]) - assert_equal(:foo, @prop[[:fOO, :FOO]]) - assert_equal(:foo, @prop[["FoO", :Foo]]) - # deref_key negative test - assert_raises(ArgumentError) do - @prop["baz"] = 1 - @prop["baz.qux"] = 2 - end - end - - def test_hook_name - tag = Object.new - tested = false - @prop.add_hook("foo.bar") do |key, value| - assert_raise(FrozenError) do - key << "baz" - end - tested = true - end - @prop["foo.bar"] = tag - assert(tested) - end - - def test_value_hook - tag = Object.new - tested = false - @prop.add_hook("FOO.BAR.BAZ") do |key, value| - assert_equal(["Foo", "baR", "baZ"], key) - assert_equal(tag, value) - tested = true - end - @prop["Foo.baR.baZ"] = tag - assert_equal(tag, @prop["foo.bar.baz"]) - assert(tested) - @prop["foo.bar"] = 1 # unhook the above block - assert_equal(1, @prop["foo.bar"]) - end - - def test_key_hook_no_cascade - tag = Object.new - tested = 0 - @prop.add_hook do |key, value| - assert(false) - end - @prop.add_hook(false) do |key, value| - assert(false) - end - @prop.add_hook("foo") do |key, value| - assert(false) - end - @prop.add_hook("foo.bar", false) do |key, value| - assert(false) - end - @prop.add_hook("foo.bar.baz") do |key, value| - assert(false) - end - @prop.add_hook("foo.bar.baz.qux", false) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop["foo.bar.baz.qux"] = tag - assert_equal(tag, @prop["foo.bar.baz.qux"]) - assert_equal(1, tested) - end - - def test_key_hook_cascade - tag = Object.new - tested = 0 - @prop.add_hook(true) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop.add_hook("foo", true) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop.add_hook("foo.bar", true) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop.add_hook("foo.bar.baz", true) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop.add_hook("foo.bar.baz.qux", true) do |key, value| - assert_equal(["foo", "bar", "baz", "qux"], key) - assert_equal(tag, value) - tested += 1 - end - @prop["foo.bar.baz.qux"] = tag - assert_equal(tag, @prop["foo.bar.baz.qux"]) - assert_equal(5, tested) - end - - def test_keys - assert(@prop.keys.empty?) - @prop["foo"] = 1 - @prop["bar"] - @prop["BAz"] = 2 - assert_equal(2, @prop.keys.size) - assert(@prop.keys.member?("foo")) - assert(@prop.keys.member?("baz")) - # - assert_nil(@prop["a"]) - @prop["a.a"] = 1 - assert_instance_of(::SOAP::Property, @prop["a"]) - @prop["a.b"] = 1 - @prop["a.c"] = 1 - assert_equal(3, @prop["a"].keys.size) - assert(@prop["a"].keys.member?("a")) - assert(@prop["a"].keys.member?("b")) - assert(@prop["a"].keys.member?("c")) - end - - def test_lshift - assert(@prop.empty?) - @prop << 1 - assert_equal([1], @prop.values) - assert_equal(1, @prop["0"]) - @prop << 1 - assert_equal([1, 1], @prop.values) - assert_equal(1, @prop["1"]) - @prop << 1 - assert_equal([1, 1, 1], @prop.values) - assert_equal(1, @prop["2"]) - # - @prop["abc.def"] = o = SOAP::Property.new - tested = 0 - o.add_hook do |k, v| - tested += 1 - end - @prop["abc.def"] << 1 - @prop["abc.def"] << 2 - @prop["abc.def"] << 3 - @prop["abc.def"] << 4 - assert_equal(4, tested) - end - - def test_lock_each - @prop["a.b.c.d.e"] = 1 - @prop["a.b.d"] = branch = ::SOAP::Property.new - @prop["a.b.d.e.f"] = 2 - @prop.lock - assert(@prop.locked?) - assert_instance_of(::SOAP::Property, @prop["a"]) - assert_raises(FrozenError) do - @prop["b"] - end - # - @prop["a"].lock - assert_raises(FrozenError) do - @prop["a"] - end - assert_instance_of(::SOAP::Property, @prop["a.b"]) - # - @prop["a.b"].lock - assert_raises(FrozenError) do - @prop["a.b"] - end - assert_raises(FrozenError) do - @prop["a"] - end - # - @prop["a.b.c.d"].lock - assert_instance_of(::SOAP::Property, @prop["a.b.c"]) - assert_raises(FrozenError) do - @prop["a.b.c.d"] - end - assert_instance_of(::SOAP::Property, @prop["a.b.d"]) - # - branch["e"].lock - assert_instance_of(::SOAP::Property, @prop["a.b.d"]) - assert_raises(FrozenError) do - @prop["a.b.d.e"] - end - assert_raises(FrozenError) do - branch["e"] - end - end - - def test_lock_cascade - @prop["a.a"] = nil - @prop["a.b.c"] = 1 - @prop["b"] = false - @prop.lock(true) - assert(@prop.locked?) - assert_equal(nil, @prop["a.a"]) - assert_equal(1, @prop["a.b.c"]) - assert_equal(false, @prop["b"]) - assert_raises(FrozenError) do - @prop["c"] - end - assert_raises(FrozenError) do - @prop["c"] = 2 - end - assert_raises(FrozenError) do - @prop["a.b.R"] - end - assert_raises(FrozenError) do - @prop.add_hook do - assert(false) - end - end - assert_raises(FrozenError) do - @prop.add_hook("c") do - assert(false) - end - end - assert_raises(FrozenError) do - @prop.add_hook("a.c") do - assert(false) - end - end - assert_nil(@prop["a.a"]) - @prop["a.a"] = 2 - assert_equal(2, @prop["a.a"]) - # - @prop.unlock(true) - assert_nil(@prop["c"]) - @prop["c"] = 2 - assert_equal(2, @prop["c"]) - @prop["a.d.a.a"] = :foo - assert_equal(:foo, @prop["a.d.a.a"]) - tested = false - @prop.add_hook("a.c") do |name, value| - assert(true) - tested = true - end - @prop["a.c"] = 3 - assert(tested) - end - - def test_hook_then_lock - tested = false - @prop.add_hook("a.b.c") do |name, value| - assert_equal(["a", "b", "c"], name) - tested = true - end - @prop["a.b"].lock - assert(!tested) - @prop["a.b.c"] = 5 - assert(tested) - assert_equal(5, @prop["a.b.c"]) - assert_raises(FrozenError) do - @prop["a.b.d"] = 5 - end - end - - def test_lock_unlock_return - assert_equal(@prop, @prop.lock) - assert_equal(@prop, @prop.unlock) - end - - def test_lock_split - @prop["a.b.c"] = 1 - assert_instance_of(::SOAP::Property, @prop["a.b"]) - @prop["a.b.d"] = branch = ::SOAP::Property.new - @prop["a.b.d.e"] = 2 - assert_equal(branch, @prop["a.b.d"]) - assert_equal(branch, @prop[:a][:b][:d]) - @prop.lock(true) - # split error 1 - assert_raises(FrozenError) do - @prop["a.b"] - end - # split error 2 - assert_raises(FrozenError) do - @prop["a"] - end - @prop["a.b.c"] = 2 - assert_equal(2, @prop["a.b.c"]) - # replace error - assert_raises(FrozenError) do - @prop["a.b.c"] = ::SOAP::Property.new - end - # override error - assert_raises(FrozenError) do - @prop["a.b"] = 1 - end - # - assert_raises(FrozenError) do - @prop["a.b.d"] << 1 - end - assert_raises(FrozenError) do - branch << 1 - end - branch.unlock(true) - branch << 1 - branch << 2 - branch << 3 - assert_equal(2, @prop["a.b.d.e"]) - assert_equal(1, @prop["a.b.d.1"]) - assert_equal(2, @prop["a.b.d.2"]) - assert_equal(3, @prop["a.b.d.3"]) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_response_as_xml.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_response_as_xml.rb deleted file mode 100644 index dcc14973..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_response_as_xml.rb +++ /dev/null @@ -1,117 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/rpc/driver' -require 'rexml/document' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'testutil.rb') - - -module SOAP - - -class TestResponseAsXml < Test::Unit::TestCase - Namespace = "urn:example.com:hello" - class Server < ::SOAP::RPC::HTTPServer - def on_init - add_method(self, 'hello', 'name') - end - - def hello(name) - "hello #{name}" - end - end - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :Port => Port, - :BindAddress => "0.0.0.0", - :AccessLog => [], - :SOAPDefaultNamespace => Namespace - ) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/", Namespace) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_method('hello', 'name') - @client.add_document_method('hellodoc', Namespace, XSD::QName.new(Namespace, 'helloRequest'), XSD::QName.new(Namespace, 'helloResponse')) - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - RESPONSE_AS_XML=<<__XML__.chomp - - - - - hello world - - - -__XML__ - - def test_hello - assert_equal("hello world", @client.hello("world")) - @client.return_response_as_xml = true - xml = @client.hello("world") - assert_equal(RESPONSE_AS_XML, xml, [RESPONSE_AS_XML, xml].join("\n\n")) - doc = REXML::Document.new(@client.hello("world")) - assert_equal("hello world", - REXML::XPath.match(doc, "//*[name()='return']")[0].text) - end - - RESPONSE_CDATA = <<__XML__.chomp - - - - - some html]]> - - - - -__XML__ - def test_cdata - @client.return_response_as_xml = false - @client.test_loopback_response << RESPONSE_CDATA - ret = @client.hellodoc(nil) - assert_equal("\n some html\n ", ret.htmlContent) - # - @client.return_response_as_xml = true - @client.test_loopback_response << RESPONSE_CDATA - xml = @client.hello(nil) - assert_equal(RESPONSE_CDATA, xml) - require 'rexml/document' - doc = REXML::Document.new(xml) - assert_equal("some html", - REXML::XPath.match(doc, "//*[name()='gno:htmlContent']")[0][1].value) - # - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_soapelement.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_soapelement.rb deleted file mode 100644 index 165b7d9d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_soapelement.rb +++ /dev/null @@ -1,138 +0,0 @@ -require 'test/unit' -require 'soap/baseData' -require 'soap/mapping' - - -module SOAP - - -class TestSOAPElement < Test::Unit::TestCase - include SOAP - - def setup - # Nothing to do. - end - - def teardown - # Nothing to do. - end - - def d(elename = nil, text = nil) - elename ||= n(nil, nil) - if text - SOAPElement.new(elename, text) - else - SOAPElement.new(elename) # do not merge. - end - end - - def n(namespace, name) - XSD::QName.new(namespace, name) - end - - def test_initialize - elename = n(nil, nil) - obj = d(elename) - assert_equal(elename, obj.elename) - assert_equal(LiteralNamespace, obj.encodingstyle) - assert_equal({}, obj.extraattr) - assert_equal([], obj.precedents) - assert_equal(nil, obj.qualified) - assert_equal(nil, obj.text) - assert(obj.members.empty?) - - obj = d("foo", "text") - assert_equal(n(nil, "foo"), obj.elename) - assert_equal("text", obj.text) - end - - def test_add - obj = d() - child = d("abc") - obj.add(child) - assert(obj.key?("abc")) - assert_same(child, obj["abc"]) - assert_same(child, obj["abc"]) - child = d("foo") - obj.add(child) - assert_equal(child, obj["foo"]) - child = d("_?a?b_") - obj.add(child) - assert_equal(child, obj["_?a?b_"]) - end - - def test_member - obj = d() - c1 = d("c1") - obj.add(c1) - c2 = d("c2") - obj.add(c2) - assert(obj.key?("c1")) - assert(obj.key?("c2")) - assert_equal(c1, obj["c1"]) - assert_equal(c2, obj["c2"]) - c22 = d("c22") - obj["c2"] = c22 - assert(obj.key?("c2")) - assert_equal(c22, obj["c2"]) - assert_equal(["c1", "c2"], obj.members.sort) - # - k_expect = ["c1", "c2"] - v_expect = [c1, c22] - obj.each do |k, v| - assert(k_expect.include?(k)) - assert(v_expect.include?(v)) - k_expect.delete(k) - v_expect.delete(v) - end - assert(k_expect.empty?) - assert(v_expect.empty?) - end - - def test_to_obj - obj = d("root") - ct1 = d("ct1", "t1") - obj.add(ct1) - c2 = d("c2") - ct2 = d("ct2", "t2") - c2.add(ct2) - obj.add(c2) - assert_equal({ "ct1" => "t1", "c2" => { "ct2" => "t2" }}, obj.to_obj) - # - assert_equal(nil, d().to_obj) - assert_equal("abc", d(nil, "abc").to_obj) - assert_equal(nil, d("abc", nil).to_obj) - end - - def test_from_obj - source = { "ct1" => "t1", "c2" => { "ct2" => "t2" }} - assert_equal(source, SOAPElement.from_obj(source).to_obj) - source = { "1" => nil } - assert_equal(source, SOAPElement.from_obj(source).to_obj) - source = {} - assert_equal(nil, SOAPElement.from_obj(source).to_obj) # not {} - source = nil - assert_equal(nil, SOAPElement.from_obj(source).to_obj) - end - - def test_from_obj_xmlattr - source = { "xmlattr_c1" => "t1", - "ymlattr_c2" => { - XSD::QName.new("urn:foo", "xmlattr_c2") => "t2", - XSD::QName.new("urn:foo", "ymlattr_c3") => "t3" }} - obj = SOAPElement.from_obj(source) - assert_equal("t1", obj.extraattr[XSD::QName.new(nil, "c1")]) - assert_equal("t2", obj["ymlattr_c2"].extraattr[XSD::QName.new("urn:foo", "c2")]) - assert_equal("t3", obj["ymlattr_c2"]["ymlattr_c3"].text) - # - source = { "xmlattr_xmlattr_c1" => "t1", - "xmlele_xmlattr_c2" => { - XSD::QName.new("urn:foo", "xmlele_xmlele_c3") => "t3" }} - obj = SOAPElement.from_obj(source) - assert_equal("t1", obj.extraattr[XSD::QName.new(nil, "xmlattr_c1")]) - assert_equal("t3", obj["xmlattr_c2"]["xmlele_c3"].text) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_streamhandler.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_streamhandler.rb deleted file mode 100644 index 72f15a9c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_streamhandler.rb +++ /dev/null @@ -1,270 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require 'webrick' -require 'webrick/httpproxy' -require 'logger' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'testutil.rb') - - -module SOAP - - -class TestStreamHandler < Test::Unit::TestCase - Port = 17171 - ProxyPort = 17172 - - def setup - @logger = Logger.new(STDERR) - @logger.level = Logger::Severity::FATAL - @url = "http://localhost:#{Port}/" - @proxyurl = "http://localhost:#{ProxyPort}/" - @server = @proxyserver = @client = nil - @server_thread = @proxyserver_thread = nil - setup_server - setup_client - end - - def teardown - teardown_client if @client - teardown_proxyserver if @proxyserver - teardown_server if @server - end - - def setup_server - @server = WEBrick::HTTPServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => Port, - :AccessLog => [], - :DocumentRoot => File.dirname(File.expand_path(__FILE__)) - ) - @server.mount( - '/', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc).to_proc) - ) - htpasswd = File.join(File.dirname(__FILE__), 'htpasswd') - htpasswd_userdb = WEBrick::HTTPAuth::Htpasswd.new(htpasswd) - @basic_auth = WEBrick::HTTPAuth::BasicAuth.new( - :Logger => @logger, - :Realm => 'auth', - :UserDB => htpasswd_userdb - ) - @server.mount( - '/basic_auth', - WEBrick::HTTPServlet::ProcHandler.new(method(:do_server_proc_basic_auth).to_proc) - ) - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_proxyserver - @proxyserver = WEBrick::HTTPProxyServer.new( - :BindAddress => "0.0.0.0", - :Logger => @logger, - :Port => ProxyPort, - :AccessLog => [] - ) - @proxyserver_thread = TestUtil.start_server_thread(@proxyserver) - end - - def setup_client - @client = SOAP::RPC::Driver.new(@url, '') - @client.add_method("do_server_proc") - @client.add_method("do_server_proc_basic_auth") - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_proxyserver - @proxyserver.shutdown - @proxyserver_thread.kill - @proxyserver_thread.join - end - - def teardown_client - @client.reset_stream - end - - def do_server_proc(req, res) - res['content-type'] = 'text/xml' - res.body = <<__EOX__ - - - - - - - - -__EOX__ - end - - def do_server_proc_basic_auth(req, res) - @basic_auth.authenticate(req, res) - do_server_proc(req, res) - end - - def parse_req_header(str) - parse_req_header_http_access2(str) - end - - def parse_req_header_http_access2(str) - headerp = false - headers = {} - req = nil - str.split(/(?:\r?\n)/).each do |line| - if headerp and /^$/ =~line - headerp = false - break - end - if headerp - k, v = line.scan(/^([^:]+):\s*(.*)$/)[0] - headers[k.downcase] = v - end - if /^POST/ =~ line - req = line - headerp = true - end - end - return req, headers - end - - def test_normal - str = "" - @client.wiredump_dev = str - assert_nil(@client.do_server_proc) - r, h = parse_req_header(str) - assert_match(%r"POST / HTTP/1.", r) - assert(/^text\/xml;/ =~ h["content-type"]) - end - - def test_uri - # initialize client with URI object - @client = SOAP::RPC::Driver.new(URI.parse(@url), '') - @client.add_method("do_server_proc") - # same as test_normal - str = "" - @client.wiredump_dev = str - assert_nil(@client.do_server_proc) - r, h = parse_req_header(str) - assert_match(%r"POST / HTTP/1.", r) - assert(/^text\/xml;/ =~ h["content-type"]) - end - - def test_basic_auth - unless Object.const_defined?('HTTPClient') - # soap4r + net/http + basic_auth is not supported. - # use httpclient instead. - assert(true) - return - end - @client.endpoint_url = @url + 'basic_auth' - str = "" - @client.wiredump_dev = str - @client.options['protocol.http.basic_auth']['0'] = [@url, "admin", "admin"] - assert_nil(@client.do_server_proc_basic_auth) - @client.options["protocol.http.basic_auth"] << [@url, "admin", "admin"] - assert_nil(@client.do_server_proc_basic_auth) - end - - def test_proxy - if Object.const_defined?('HTTPClient') - backup = HTTPClient::NO_PROXY_HOSTS.dup - HTTPClient::NO_PROXY_HOSTS.clear - else - backup = SOAP::NetHttpClient::NO_PROXY_HOSTS.dup - SOAP::NetHttpClient::NO_PROXY_HOSTS.clear - end - setup_proxyserver - str = "" - @client.wiredump_dev = str - @client.options["protocol.http.proxy"] = @proxyurl - assert_nil(@client.do_server_proc) - r, h = parse_req_header(str) - assert_match(%r"POST http://localhost:17171/ HTTP/1.", r) - # illegal proxy uri - assert_raise(ArgumentError) do - @client.options["protocol.http.proxy"] = 'ftp://foo:8080' - end - ensure - if Object.const_defined?('HTTPClient') - HTTPClient::NO_PROXY_HOSTS.replace(backup) - else - SOAP::NetHttpClient::NO_PROXY_HOSTS.replace(backup) - end - end - - def test_charset - str = "" - @client.wiredump_dev = str - @client.options["protocol.http.charset"] = "iso-8859-8" - assert_nil(@client.do_server_proc) - r, h = parse_req_header(str) - assert_equal("text/xml; charset=iso-8859-8", h["content-type"]) - # - str.replace("") - @client.options["protocol.http.charset"] = "iso-8859-3" - assert_nil(@client.do_server_proc) - r, h = parse_req_header(str) - assert_equal("text/xml; charset=iso-8859-3", h["content-type"]) - end - - def test_custom_streamhandler - @client.options["protocol.streamhandler"] = MyStreamHandler - assert_equal("hello", @client.do_server_proc) - @client.options["protocol.streamhandler"] = ::SOAP::HTTPStreamHandler - assert_nil(@client.do_server_proc) - @client.options["protocol.streamhandler"] = MyStreamHandler - assert_equal("hello", @client.do_server_proc) - @client.options["protocol.streamhandler"] = ::SOAP::HTTPStreamHandler - assert_nil(@client.do_server_proc) - end - - class MyStreamHandler < SOAP::StreamHandler - def self.create(options) - new - end - - def send(endpoint_url, conn_data, soapaction = nil, charset = nil) - conn_data.receive_string = %q[ - - - - hello - - -] - conn_data - end - - def reset(endpoint_url = nil) - # nothing to do - end - end - - # not used - class ExternalProcessStreamHandler < SOAP::StreamHandler - def self.create(options) - new - end - - def send(endpoint_url, conn_data, soapaction = nil, charset = nil) - cmd = "cat" # !! - IO.popen(cmd, "w+") do |io| - io.write(conn_data.send_string) - io.close_write - conn_data.receive_string = io.read - end - conn_data - end - - def reset(endpoint_url = nil) - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/test_styleuse.rb b/vendor/gems/soap4r-1.5.8/test/soap/test_styleuse.rb deleted file mode 100644 index 2f1e616d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/test_styleuse.rb +++ /dev/null @@ -1,326 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/rpc/driver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'testutil.rb') - - -module SOAP - - -class TestStyleUse < Test::Unit::TestCase - # rpc driver: obj in(Hash allowed for literal), obj out - # - # style: not visible from user - # rpc: wrapped element - # document: unwrappted element - # - # use: - # encoding: a graph (SOAP Data Model) - # literal: not a graph (SOAPElement) - # - # rpc stub: obj in, obj out(Hash is allowed for literal) - # - # style: not visible from user - # rpc: wrapped element - # document: unwrappted element - # - # use: - # encoding: a graph (SOAP Data Model) - # literal: not a graph (SOAPElement) - # - # document driver: SOAPElement in, SOAPElement out? [not implemented] - # - # style: ditto - # use: ditto - # - # - # document stub: SOAPElement in, SOAPElement out? [not implemented] - # - # style: ditto - # use: ditto - # - class GenericServant - # method name style: requeststyle_requestuse_responsestyle_responseuse - - # 2 params -> array - def rpc_enc_rpc_enc(obj1, obj2) - [obj1, [obj1, obj2]] - end - - # 2 objs -> array - def rpc_lit_rpc_enc(obj1, obj2) - [obj2, obj1] - end - - # 2 params -> 2 params - def rpc_enc_rpc_lit(obj1, obj2) - klass = [obj1.class.name, obj2.class.name] - [obj2, obj1] - end - - # 2 objs -> 2 objs - def rpc_lit_rpc_lit(obj1, obj2) - [obj1, obj2] - end - - # 2 params -> array - def doc_enc_doc_enc(obj1, obj2) - [obj1, [obj1, obj2]] - end - - # 2 objs -> array - def doc_lit_doc_enc(obj1, obj2) - [obj2, obj1] - end - - # 2 params -> 2 hashes - def doc_enc_doc_lit(obj1, obj2) - klass = [obj1.class.name, obj2.class.name] - return {'obj1' => {'klass' => klass}, 'misc' => 'hash does not have an order'}, - {'obj2' => {'klass' => klass}} - end - - # 2 objs -> 2 objs - def doc_lit_doc_lit(obj1, obj2) - return obj1, obj2 - end - end - - Namespace = "urn:styleuse" - - module Op - def self.opt(request_style, request_use, response_style, response_use) - { - :request_style => request_style, - :request_use => request_use, - :response_style => response_style, - :response_use => response_use - } - end - - Op_rpc_enc_rpc_enc = [ - XSD::QName.new(Namespace, 'rpc_enc_rpc_enc'), - nil, - 'rpc_enc_rpc_enc', [ - ['in', 'obj1', nil], - ['in', 'obj2', nil], - ['retval', 'return', nil]], - opt(:rpc, :encoded, :rpc, :encoded) - ] - - Op_rpc_lit_rpc_enc = [ - XSD::QName.new(Namespace, 'rpc_lit_rpc_enc'), - nil, - 'rpc_lit_rpc_enc', [ - ['in', 'obj1', nil], - ['in', 'obj2', nil], - ['retval', 'return', nil]], - opt(:rpc, :literal, :rpc, :encoded) - ] - - Op_rpc_enc_rpc_lit = [ - XSD::QName.new(Namespace, 'rpc_enc_rpc_lit'), - nil, - 'rpc_enc_rpc_lit', [ - ['in', 'obj1', nil], - ['in', 'obj2', nil], - ['retval', 'ret1', nil], - ['out', 'ret2', nil]], - opt(:rpc, :encoded, :rpc, :literal) - ] - - Op_rpc_lit_rpc_lit = [ - XSD::QName.new(Namespace, 'rpc_lit_rpc_lit'), - nil, - 'rpc_lit_rpc_lit', [ - ['in', 'obj1', nil], - ['in', 'obj2', nil], - ['retval', 'ret1', nil], - ['out', 'ret2', nil]], - opt(:rpc, :literal, :rpc, :literal) - ] - - Op_doc_enc_doc_enc = [ - Namespace + 'doc_enc_doc_enc', - 'doc_enc_doc_enc', [ - ['in', 'obj1', [nil, Namespace, 'obj1']], - ['in', 'obj2', [nil, Namespace, 'obj2']], - ['out', 'ret1', [nil, Namespace, 'ret1']], - ['out', 'ret2', [nil, Namespace, 'ret2']]], - opt(:document, :encoded, :document, :encoded) - ] - - Op_doc_lit_doc_enc = [ - Namespace + 'doc_lit_doc_enc', - 'doc_lit_doc_enc', [ - ['in', 'obj1', [nil, Namespace, 'obj1']], - ['in', 'obj2', [nil, Namespace, 'obj2']], - ['out', 'ret1', [nil, Namespace, 'ret1']], - ['out', 'ret2', [nil, Namespace, 'ret2']]], - opt(:document, :literal, :document, :encoded) - ] - - Op_doc_enc_doc_lit = [ - Namespace + 'doc_enc_doc_lit', - 'doc_enc_doc_lit', [ - ['in', 'obj1', [nil, Namespace, 'obj1']], - ['in', 'obj2', [nil, Namespace, 'obj2']], - ['out', 'ret1', [nil, Namespace, 'ret1']], - ['out', 'ret2', [nil, Namespace, 'ret2']]], - opt(:document, :encoded, :document, :literal) - ] - - Op_doc_lit_doc_lit = [ - Namespace + 'doc_lit_doc_lit', - 'doc_lit_doc_lit', [ - ['in', 'obj1', [nil, Namespace, 'obj1']], - ['in', 'obj2', [nil, Namespace, 'obj2']], - ['out', 'ret1', [nil, Namespace, 'ret1']], - ['out', 'ret2', [nil, Namespace, 'ret2']]], - opt(:document, :literal, :document, :literal) - ] - end - - include Op - - class Server < ::SOAP::RPC::HTTPServer - include Op - - def on_init - @servant = GenericServant.new - add_rpc_operation(@servant, *Op_rpc_enc_rpc_enc) - add_rpc_operation(@servant, *Op_rpc_lit_rpc_enc) - add_rpc_operation(@servant, *Op_rpc_enc_rpc_lit) - add_rpc_operation(@servant, *Op_rpc_lit_rpc_lit) - add_document_operation(@servant, *Op_doc_enc_doc_enc) - add_document_operation(@servant, *Op_doc_lit_doc_enc) - add_document_operation(@servant, *Op_doc_enc_doc_lit) - add_document_operation(@servant, *Op_doc_lit_doc_lit) - end - end - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :BindAddress => "0.0.0.0", - :Port => Port, - :AccessLog => [], - :SOAPDefaultNamespace => Namespace - ) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/", Namespace) - @client.wiredump_dev = STDERR if $DEBUG - @client.add_rpc_operation(*Op_rpc_enc_rpc_enc) - @client.add_rpc_operation(*Op_rpc_lit_rpc_enc) - @client.add_rpc_operation(*Op_rpc_enc_rpc_lit) - @client.add_rpc_operation(*Op_rpc_lit_rpc_lit) - @client.add_document_operation(*Op_doc_enc_doc_enc) - @client.add_document_operation(*Op_doc_lit_doc_enc) - @client.add_document_operation(*Op_doc_enc_doc_lit) - @client.add_document_operation(*Op_doc_lit_doc_lit) - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def test_rpc_enc_rpc_enc - o = "hello" - obj1 = o - obj2 = [1] - ret = @client.rpc_enc_rpc_enc(obj1, obj2) - # server returns [obj1, [obj1, obj2]] - assert_equal([obj1, [obj1, obj2]], ret) - assert_same(ret[0], ret[1][0]) - end - - S1 = ::Struct.new(:a) - S2 = ::Struct.new(:c) - def test_rpc_lit_rpc_enc - ret1, ret2 = @client.rpc_lit_rpc_enc(S1.new('b'), S2.new('d')) - assert_equal('d', ret1.c) - assert_equal('b', ret2.a) - # Hash is allowed for literal - ret1, ret2 = @client.rpc_lit_rpc_enc({'a' => 'b'}, {'c' => 'd'}) - assert_equal('d', ret1.c) - assert_equal('b', ret2.a) - # simple value - assert_equal( - ['1', 'a'], - @client.rpc_lit_rpc_enc('a', 1) - ) - end - - def test_rpc_enc_rpc_lit - assert_equal( - ['1', 'a'], - @client.rpc_enc_rpc_lit('a', '1') - ) - end - - def test_rpc_lit_rpc_lit - ret1, ret2 = @client.rpc_lit_rpc_lit({'a' => 'b'}, {'c' => 'd'}) - assert_equal('b', ret1["a"]) - assert_equal('d', ret2["c"]) - end - - def test_doc_enc_doc_enc - o = "hello" - obj1 = o - obj2 = [1] - ret = @client.rpc_enc_rpc_enc(obj1, obj2) - # server returns [obj1, [obj1, obj2]] - assert_equal([obj1, [obj1, obj2]], ret) - assert_same(ret[0], ret[1][0]) - end - - def test_doc_lit_doc_enc - ret1, ret2 = @client.doc_lit_doc_enc({'a' => 'b'}, {'c' => 'd'}) - assert_equal('d', ret1.c) - assert_equal('b', ret2.a) - assert_equal( - ['a', '1'], - @client.doc_lit_doc_enc(1, 'a') - ) - end - - def test_doc_enc_doc_lit - ret1, ret2 = @client.doc_enc_doc_lit('a', 1) - # literal Array - assert_equal(['String', 'Fixnum'], ret1['obj1']['klass']) - # same value - assert_equal(ret1['obj1']['klass'], ret2['obj2']['klass']) - # not the same object (not encoded) - assert_not_same(ret1['obj1']['klass'], ret2['obj2']['klass']) - end - - def test_doc_lit_doc_lit - ret1, ret2 = @client.doc_lit_doc_lit({'a' => 'b'}, {'c' => 'd'}) - assert_equal('b', ret1["a"]) - assert_equal('d', ret2["c"]) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/README.txt b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/README.txt deleted file mode 100644 index b4d45a04..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -echo_version.rb is generated by wsdl2ruby.rb; -% wsdl2ruby.rb --wsdl simpletype.wsdl --classdef --force diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/calc.wsdl b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/calc.wsdl deleted file mode 100644 index 694a01e8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/calc.wsdl +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - calculator service - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/document.wsdl b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/document.wsdl deleted file mode 100644 index 5e9e74b9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/document.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/echo_version.rb b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/echo_version.rb deleted file mode 100644 index a96179ce..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/echo_version.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'xsd/qname' - -# {urn:example.com:simpletype-rpc-type}version_struct -class Version_struct - @@schema_type = "version_struct" - @@schema_ns = "urn:example.com:simpletype-rpc-type" - @@schema_element = [ - ["myversion", ["SOAP::SOAPString", XSD::QName.new(nil, "myversion")]], - ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]] - ] - - attr_accessor :myversion - attr_accessor :msg - - def initialize(myversion = nil, msg = nil) - @myversion = myversion - @msg = msg - end -end - -# {urn:example.com:simpletype-rpc-type}myversions -class Myversions < ::String - @@schema_type = "myversions" - @@schema_ns = "urn:example.com:simpletype-rpc-type" - - C_16 = Myversions.new("1.6") - C_18 = Myversions.new("1.8") - C_19 = Myversions.new("1.9") -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/simpletype.wsdl b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/simpletype.wsdl deleted file mode 100644 index 6781dda5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/simpletype.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_calc.rb b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_calc.rb deleted file mode 100644 index 4a0f8556..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_calc.rb +++ /dev/null @@ -1,83 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP - - -class TestCalc < Test::Unit::TestCase - class Server < ::SOAP::RPC::HTTPServer - def on_init - add_method(self, 'add', 'x', 'y') - end - - def add(x, y) - x.to_f + y.to_f - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :BindAddress => "0.0.0.0", - :Port => Port, - :AccessLog => [], - :SOAPDefaultNamespace => 'http://www.fred.com' - ) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - @wsdl = File.join(DIR, 'calc.wsdl') - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream if @client - end - - def test_rpc_driver - @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_rpc_driver - @client.wiredump_dev = STDOUT if $DEBUG - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = true - assert_equal(0.3, @client.add(0.1, 0.2)) - @client.generate_explicit_type = false - assert_equal(0.3, @client.add(0.1, 0.2)) - end - - def test_old_driver - TestUtil.silent do - @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_driver - end - @client.wiredump_dev = STDOUT if $DEBUG - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = true - assert_equal(0.3, @client.add(0.1, 0.2)) - @client.generate_explicit_type = false - assert_equal(0.3, @client.add(0.1, 0.2)) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_document.rb b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_document.rb deleted file mode 100644 index 1c0f26d8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_document.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP - - -class TestDocument < Test::Unit::TestCase - Namespace = 'urn:example.com:document' - - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_document_method(self, 'urn:example.com:document#submit', 'submit', XSD::QName.new(Namespace, 'ruby'), XSD::QName.new(Namespace, 'ruby')) - end - - def submit(ruby) - ruby - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new('Test', Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - wsdl = File.join(DIR, 'document.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def test_document - msg = {'myversion' => "1.9", 'date' => "2004-01-01T00:00:00Z"} - reply_msg = @client.submit(msg) - assert_equal('1.9', reply_msg.myversion) - assert_equal('1.9', reply_msg['myversion']) - assert_equal('2004-01-01T00:00:00Z', reply_msg.date) - assert_equal('2004-01-01T00:00:00Z', reply_msg['date']) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_simpletype.rb b/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_simpletype.rb deleted file mode 100644 index 08b8224c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/soap/wsdlDriver/test_simpletype.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module SOAP - - -class TestSimpleType < Test::Unit::TestCase - class Server < ::SOAP::RPC::HTTPServer - def on_init - add_method(self, 'echo_version', 'version') - end - - def echo_version(version) - # "2.0" is out of range. - Version_struct.new(version || "2.0", 'checked') - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - require File.join(DIR, 'echo_version') - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :BindAddress => "0.0.0.0", - :Port => Port, - :AccessLog => [], - :SOAPDefaultNamespace => "urn:example.com:simpletype-rpc" - ) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - wsdl = File.join(DIR, 'simpletype.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.wiredump_dev = STDOUT if $DEBUG - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = false - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def test_ping - result = @client.echo_version("1.9") - assert_equal("1.9", result.myversion) - assert_equal("checked", result.msg) - assert_raise(XSD::ValueSpaceError) do - @client.echo_version("2.0") - end - assert_raise(XSD::ValueSpaceError) do - @client.echo_version(nil) # nil => "2.0" => out of range - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/testutil.rb b/vendor/gems/soap4r-1.5.8/test/testutil.rb deleted file mode 100644 index 8bab07e0..00000000 --- a/vendor/gems/soap4r-1.5.8/test/testutil.rb +++ /dev/null @@ -1,54 +0,0 @@ -module TestUtil - # MT-unsafe - def self.require(dir, *features) - begin - # avoid 'already initialized constant FizzBuzz' warning - silent do - Dir.chdir(dir) do - features.each do |feature| - Kernel.require feature - end - end - end - ensure - features.each do |feature| - $".delete(feature) - end - end - end - - # MT-unsafe - def self.silent - if $DEBUG - yield - else - back = $VERBOSE - $VERBOSE = nil - begin - yield - ensure - $VERBOSE = back - end - end - end - - def self.filecompare(expectedfile, actualfile) - expected = loadfile(expectedfile) - actual = loadfile(actualfile) - if expected != actual - raise "#{File.basename(actualfile)} is different from #{File.basename(expectedfile)}" - end - end - - def self.loadfile(file) - File.open(file) { |f| f.read } - end - - def self.start_server_thread(server) - t = Thread.new { - Thread.current.abort_on_exception = true - server.start - } - t - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/abstract.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/abstract.wsdl deleted file mode 100644 index 4d3a29a3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/abstract.wsdl +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/test_abstract.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/test_abstract.rb deleted file mode 100644 index 80357d3b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/abstract/test_abstract.rb +++ /dev/null @@ -1,159 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Abstract - - -class TestAbstract < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_rpc_method(self, 'echo', 'name', 'author') - add_rpc_method(self, 'echoDerived', 'parameter') - add_document_operation( - self, - "", - "echoLiteral", - [ ["in", "author", ["::SOAP::SOAPElement", "urn:www.example.org:abstract", "Author"]], - ["out", "return", ["::SOAP::SOAPElement", "urn:www.example.org:abstract", "Book"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ) - self.mapping_registry = AbstractMappingRegistry::EncodedRegistry - self.literal_mapping_registry = AbstractMappingRegistry::LiteralRegistry - end - - def echo(name, author) - Book.new(name, author) - end - - def echoLiteral(author) - author - end - - def echoDerived(parameter) - parameter - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('abstract.rb')) - File.unlink(pathname('abstractMappingRegistry.rb')) - File.unlink(pathname('abstractDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:www.example.org:abstract", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("abstract.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'abstractDriver.rb', 'abstract.rb', 'abstractMappingRegistry.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'abstract.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.mapping_registry = AbstractMappingRegistry::EncodedRegistry - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDERR if $DEBUG - - author = UserAuthor.new("first", "last", "uid") - ret = @client.echo("book1", author) - assert_equal("book1", ret.name) - assert_equal(author.firstname, ret.author.firstname) - assert_equal(author.lastname, ret.author.lastname) - assert_equal(author.userid, ret.author.userid) - - author = NonUserAuthor.new("first", "last", "nonuserid") - ret = @client.echo("book2", author) - assert_equal("book2", ret.name) - assert_equal(author.firstname, ret.author.firstname) - assert_equal(author.lastname, ret.author.lastname) - assert_equal(author.nonuserid, ret.author.nonuserid) - end - - def test_stub - @client = AbstractService.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - - author = UserAuthor.new("first", "last", "uid") - ret = @client.echo("book1", author) - assert_equal("book1", ret.name) - assert_equal(author.firstname, ret.author.firstname) - assert_equal(author.lastname, ret.author.lastname) - assert_equal(author.userid, ret.author.userid) - # - author = NonUserAuthor.new("first", "last", "nonuserid") - ret = @client.echo("book2", author) - assert_equal("book2", ret.name) - assert_equal(author.firstname, ret.author.firstname) - assert_equal(author.lastname, ret.author.lastname) - assert_equal(author.nonuserid, ret.author.nonuserid) - end - - def test_literal_stub - @client = AbstractService.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - author = NonUserAuthor.new("first", "last", "nonuserid") - ret = @client.echoLiteral(author) - assert_equal(author.firstname, ret.firstname) - assert_equal(author.lastname, ret.lastname) - assert_equal(author.nonuserid, ret.nonuserid) - assert_equal(NonUserAuthor, ret.class) - end - - def test_stub_derived - @client = AbstractService.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - - parameter = DerivedClass1.new(123, "someVar1") - ret = @client.echoDerived(parameter) - assert_equal(123, ret.id) - assert_equal(["someVar1"], ret.someVar1) - assert_equal(DerivedClass1, ret.class) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedClassDef.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedClassDef.rb deleted file mode 100644 index fec47b7b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedClassDef.rb +++ /dev/null @@ -1,128 +0,0 @@ -require 'xsd/qname' - -module WSDL; module Anonymous - - -# {urn:lp}Header -# header3 - SOAP::SOAPString -class Header - attr_accessor :header3 - - def initialize(header3 = nil) - @header3 = header3 - end -end - -# {urn:lp}ExtraInfo -class ExtraInfo < ::Array - - # {}Entry - # key - SOAP::SOAPString - # value - SOAP::SOAPString - class Entry - attr_accessor :key - attr_accessor :value - - def initialize(key = nil, value = nil) - @key = key - @value = value - end - end -end - -# {urn:lp}loginResponse -# loginResult - WSDL::Anonymous::LoginResponse::LoginResult -class LoginResponse - - # inner class for member: loginResult - # {}loginResult - # sessionID - SOAP::SOAPString - class LoginResult - attr_accessor :sessionID - - def initialize(sessionID = nil) - @sessionID = sessionID - end - end - - attr_accessor :loginResult - - def initialize(loginResult = nil) - @loginResult = loginResult - end -end - -# {urn:lp}Pack -# header - WSDL::Anonymous::Pack::Header -class Pack - - # inner class for member: Header - # {}Header - # header1 - SOAP::SOAPString - class Header - attr_accessor :header1 - - def initialize(header1 = nil) - @header1 = header1 - end - end - - attr_accessor :header - - def initialize(header = nil) - @header = header - end -end - -# {urn:lp}Envelope -# header - WSDL::Anonymous::Envelope::Header -class Envelope - - # inner class for member: Header - # {}Header - # header2 - SOAP::SOAPString - class Header - attr_accessor :header2 - - def initialize(header2 = nil) - @header2 = header2 - end - end - - attr_accessor :header - - def initialize(header = nil) - @header = header - end -end - -# {urn:lp}login -# loginRequest - WSDL::Anonymous::Login::LoginRequest -class Login - - # inner class for member: loginRequest - # {}loginRequest - # username - SOAP::SOAPString - # password - SOAP::SOAPString - # timezone - SOAP::SOAPString - class LoginRequest - attr_accessor :username - attr_accessor :password - attr_accessor :timezone - - def initialize(username = nil, password = nil, timezone = nil) - @username = username - @password = password - @timezone = timezone - end - end - - attr_accessor :loginRequest - - def initialize(loginRequest = nil) - @loginRequest = loginRequest - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedDriver.rb deleted file mode 100644 index 7f3451f6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedDriver.rb +++ /dev/null @@ -1,59 +0,0 @@ -require 'lp.rb' -require 'lpMappingRegistry.rb' -require 'soap/rpc/driver' - -module WSDL::Anonymous - -class Lp_porttype < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:17171/" - - Methods = [ - [ "urn:lp:login", - "login", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:lp", "login"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:lp", "loginResponse"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ], - [ "urn:lp:echo", - "echo", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:lp", "Pack"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:lp", "Envelope"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = LpMappingRegistry::EncodedRegistry - self.literal_mapping_registry = LpMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedMappingRegistry.rb deleted file mode 100644 index 371fbdf9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/expectedMappingRegistry.rb +++ /dev/null @@ -1,176 +0,0 @@ -require 'lp.rb' -require 'soap/mapping' - -module WSDL; module Anonymous - -module LpMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsLp = "urn:lp" - - EncodedRegistry.register( - :class => WSDL::Anonymous::Header, - :schema_type => XSD::QName.new(NsLp, "Header"), - :schema_element => [ - ["header3", ["SOAP::SOAPString", XSD::QName.new(nil, "Header3")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::Anonymous::ExtraInfo, - :schema_type => XSD::QName.new(NsLp, "ExtraInfo"), - :schema_element => [ - ["entry", ["WSDL::Anonymous::ExtraInfo::Entry[]", XSD::QName.new(nil, "Entry")], [1, nil]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::Anonymous::ExtraInfo::Entry, - :schema_name => XSD::QName.new(nil, "Entry"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["key", ["SOAP::SOAPString", XSD::QName.new(nil, "Key")]], - ["value", ["SOAP::SOAPString", XSD::QName.new(nil, "Value")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::Anonymous::LoginResponse, - :schema_type => XSD::QName.new(NsLp, "loginResponse"), - :schema_element => [ - ["loginResult", ["WSDL::Anonymous::LoginResponse::LoginResult", XSD::QName.new(nil, "loginResult")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::Anonymous::LoginResponse::LoginResult, - :schema_name => XSD::QName.new(nil, "loginResult"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["sessionID", "SOAP::SOAPString"] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Header, - :schema_type => XSD::QName.new(NsLp, "Header"), - :schema_element => [ - ["header3", ["SOAP::SOAPString", XSD::QName.new(nil, "Header3")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::ExtraInfo, - :schema_type => XSD::QName.new(NsLp, "ExtraInfo"), - :schema_element => [ - ["entry", ["WSDL::Anonymous::ExtraInfo::Entry[]", XSD::QName.new(nil, "Entry")], [1, nil]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::ExtraInfo::Entry, - :schema_name => XSD::QName.new(nil, "Entry"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["key", ["SOAP::SOAPString", XSD::QName.new(nil, "Key")]], - ["value", ["SOAP::SOAPString", XSD::QName.new(nil, "Value")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::LoginResponse, - :schema_type => XSD::QName.new(NsLp, "loginResponse"), - :schema_element => [ - ["loginResult", ["WSDL::Anonymous::LoginResponse::LoginResult", XSD::QName.new(nil, "loginResult")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::LoginResponse::LoginResult, - :schema_name => XSD::QName.new(nil, "loginResult"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["sessionID", "SOAP::SOAPString"] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Pack, - :schema_name => XSD::QName.new(NsLp, "Pack"), - :schema_element => [ - ["header", ["WSDL::Anonymous::Pack::Header", XSD::QName.new(nil, "Header")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Pack::Header, - :schema_name => XSD::QName.new(nil, "Header"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["header1", ["SOAP::SOAPString", XSD::QName.new(nil, "Header1")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Envelope, - :schema_name => XSD::QName.new(NsLp, "Envelope"), - :schema_element => [ - ["header", ["WSDL::Anonymous::Envelope::Header", XSD::QName.new(nil, "Header")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Envelope::Header, - :schema_name => XSD::QName.new(nil, "Header"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["header2", ["SOAP::SOAPString", XSD::QName.new(nil, "Header2")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Login, - :schema_name => XSD::QName.new(NsLp, "login"), - :schema_element => [ - ["loginRequest", ["WSDL::Anonymous::Login::LoginRequest", XSD::QName.new(nil, "loginRequest")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::Login::LoginRequest, - :schema_name => XSD::QName.new(nil, "loginRequest"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["username", "SOAP::SOAPString"], - ["password", "SOAP::SOAPString"], - ["timezone", "SOAP::SOAPString", [0, 1]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::LoginResponse, - :schema_name => XSD::QName.new(NsLp, "loginResponse"), - :schema_element => [ - ["loginResult", ["WSDL::Anonymous::LoginResponse::LoginResult", XSD::QName.new(nil, "loginResult")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Anonymous::LoginResponse::LoginResult, - :schema_name => XSD::QName.new(nil, "loginResult"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["sessionID", "SOAP::SOAPString"] - ] - ) -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/lp.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/lp.wsdl deleted file mode 100644 index 896866d6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/lp.wsdl +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Service specific information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/test_anonymous.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/test_anonymous.rb deleted file mode 100644 index d0aacca4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/anonymous/test_anonymous.rb +++ /dev/null @@ -1,130 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -if defined?(HTTPClient) - -module WSDL; module Anonymous - - -class TestAnonymous < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:lp' - - def on_init - add_document_method( - self, - Namespace + ':login', - 'login', - XSD::QName.new(Namespace, 'login'), - XSD::QName.new(Namespace, 'loginResponse') - ) - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(Namespace, 'Pack'), - XSD::QName.new(Namespace, 'Envelope') - ) - self.literal_mapping_registry = LpMappingRegistry::LiteralRegistry - end - - def login(arg) - req = arg.loginRequest - sess = [req.username, req.password, req.timezone].join - LoginResponse.new(LoginResponse::LoginResult.new(sess)) - end - - def echo(pack) - raise unless pack.class == Pack - raise unless pack.header.class == Pack::Header - Envelope.new(Envelope::Header.new(pack.header.header1)) - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_clientdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('lp.rb')) - File.unlink(pathname('lpMappingRegistry.rb')) - File.unlink(pathname('lpDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:lp", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_clientdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("lp.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'lpDriver.rb', 'lpMappingRegistry.rb', 'lp.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def test_stubgeneration - compare("expectedClassDef.rb", "lp.rb") - compare("expectedMappingRegistry.rb", "lpMappingRegistry.rb") - compare("expectedDriver.rb", "lpDriver.rb") - end - - def test_stub - @client = Lp_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - request = Login.new(Login::LoginRequest.new("username", "password", "tz")) - response = @client.login(request) - assert_equal(LoginResponse::LoginResult, response.loginResult.class) - assert_equal("usernamepasswordtz", response.loginResult.sessionID) - end - - def test_anonymous_mapping - @client = Lp_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - request = Pack.new(Pack::Header.new("pack_header")) - response = @client.echo(request) - assert_equal(Envelope, response.class) - assert_equal(Envelope::Header, response.header.class) - assert_equal("pack_header", response.header.header2) - end -end - - -end; end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/any.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/any/any.wsdl deleted file mode 100644 index 6e09f888..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/any.wsdl +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedDriver.rb deleted file mode 100644 index cfd16a72..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedDriver.rb +++ /dev/null @@ -1,68 +0,0 @@ -require 'echo.rb' -require 'echoMappingRegistry.rb' -require 'soap/rpc/driver' - -module WSDL::Any - -class Echo_port_type < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:10080" - NsEcho = "urn:example.com:echo" - - Methods = [ - [ "urn:example.com:echo", - "echo", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "foo.bar"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "foo.bar"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ], - [ XSD::QName.new(NsEcho, "echoAny"), - "urn:example.com:echoAny", - "echoAny", - [ ["retval", "echoany_return", [nil]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ "urn:example.com:echo", - "setOutputAndComplete", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "setOutputAndCompleteRequest"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "setOutputAndCompleteRequest"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = EchoMappingRegistry::EncodedRegistry - self.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedEcho.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedEcho.rb deleted file mode 100644 index bc406e7c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedEcho.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'xsd/qname' - -module WSDL; module Any - - -# {urn:example.com:echo-type}foo.bar -# before - SOAP::SOAPString -# after - SOAP::SOAPString -class FooBar - attr_accessor :before - attr_reader :__xmlele_any - attr_accessor :after - - def set_any(elements) - @__xmlele_any = elements - end - - def initialize(before = nil, after = nil) - @before = before - @__xmlele_any = nil - @after = after - end -end - -# {urn:example.com:echo-type}setOutputAndCompleteRequest -# taskId - SOAP::SOAPString -# data - WSDL::Any::SetOutputAndCompleteRequest::C_Data -# participantToken - SOAP::SOAPString -class SetOutputAndCompleteRequest - - # inner class for member: data - # {}data - class C_Data - attr_reader :__xmlele_any - - def set_any(elements) - @__xmlele_any = elements - end - - def initialize - @__xmlele_any = nil - end - end - - attr_accessor :taskId - attr_accessor :data - attr_accessor :participantToken - - def initialize(taskId = nil, data = nil, participantToken = nil) - @taskId = taskId - @data = data - @participantToken = participantToken - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedMappingRegistry.rb deleted file mode 100644 index 870ae8f7..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedMappingRegistry.rb +++ /dev/null @@ -1,63 +0,0 @@ -require 'echo.rb' -require 'soap/mapping' - -module WSDL; module Any - -module EchoMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsEchoType = "urn:example.com:echo-type" - NsXMLSchema = "http://www.w3.org/2001/XMLSchema" - - EncodedRegistry.register( - :class => WSDL::Any::FooBar, - :schema_type => XSD::QName.new(NsEchoType, "foo.bar"), - :schema_element => [ - ["before", ["SOAP::SOAPString", XSD::QName.new(nil, "before")]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - ["after", ["SOAP::SOAPString", XSD::QName.new(nil, "after")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Any::FooBar, - :schema_type => XSD::QName.new(NsEchoType, "foo.bar"), - :schema_element => [ - ["before", ["SOAP::SOAPString", XSD::QName.new(nil, "before")]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - ["after", ["SOAP::SOAPString", XSD::QName.new(nil, "after")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Any::FooBar, - :schema_name => XSD::QName.new(NsEchoType, "foo.bar"), - :schema_element => [ - ["before", ["SOAP::SOAPString", XSD::QName.new(nil, "before")]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - ["after", ["SOAP::SOAPString", XSD::QName.new(nil, "after")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Any::SetOutputAndCompleteRequest, - :schema_name => XSD::QName.new(NsEchoType, "setOutputAndCompleteRequest"), - :schema_element => [ - ["taskId", ["SOAP::SOAPString", XSD::QName.new(nil, "taskId")]], - ["data", ["WSDL::Any::SetOutputAndCompleteRequest::C_Data", XSD::QName.new(nil, "data")]], - ["participantToken", ["SOAP::SOAPString", XSD::QName.new(nil, "participantToken")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::Any::SetOutputAndCompleteRequest::C_Data, - :schema_name => XSD::QName.new(nil, "data"), - :is_anonymous => true, - :schema_qualified => false, - :schema_element => [ - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]] - ] - ) -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedService.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedService.rb deleted file mode 100644 index 60ebe115..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/expectedService.rb +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env ruby -require 'echoServant.rb' -require 'echoMappingRegistry.rb' -require 'soap/rpc/standaloneServer' - -module WSDL; module Any - -class Echo_port_type - NsEcho = "urn:example.com:echo" - - Methods = [ - [ "urn:example.com:echo", - "echo", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "foo.bar"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "foo.bar"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ], - [ XSD::QName.new(NsEcho, "echoAny"), - "urn:example.com:echoAny", - "echoAny", - [ ["retval", "echoany_return", [nil]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ "urn:example.com:echo", - "setOutputAndComplete", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "setOutputAndCompleteRequest"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:example.com:echo-type", "setOutputAndCompleteRequest"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ] - ] -end - -end; end - -module WSDL; module Any - -class Echo_port_typeApp < ::SOAP::RPC::StandaloneServer - def initialize(*arg) - super(*arg) - servant = WSDL::Any::Echo_port_type.new - WSDL::Any::Echo_port_type::Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - @router.add_document_operation(servant, *definitions) - else - @router.add_rpc_operation(servant, *definitions) - end - end - self.mapping_registry = EchoMappingRegistry::EncodedRegistry - self.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - end -end - -end; end - -if $0 == __FILE__ - # Change listen port. - server = WSDL::Any::Echo_port_typeApp.new('app', nil, '0.0.0.0', 10080) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/any/test_any.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/any/test_any.rb deleted file mode 100644 index 647a4f22..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/any/test_any.rb +++ /dev/null @@ -1,193 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Any - - -class TestAny < Test::Unit::TestCase - Namespace = 'urn:example.com:echo' - TypeNamespace = 'urn:example.com:echo-type' - - class Server < ::SOAP::RPC::StandaloneServer - def on_init - # use WSDL to serialize/deserialize - wsdlfile = File.join(DIR, 'any.wsdl') - wsdl = WSDL::Importer.import(wsdlfile) - port = wsdl.services[0].ports[0] - wsdl_elements = wsdl.collect_elements - wsdl_types = wsdl.collect_complextypes + wsdl.collect_simpletypes - rpc_decode_typemap = wsdl_types + - wsdl.soap_rpc_complextypes(port.find_binding) - @router.mapping_registry = - ::SOAP::Mapping::WSDLEncodedRegistry.new(rpc_decode_typemap) - @router.literal_mapping_registry = - ::SOAP::Mapping::WSDLLiteralRegistry.new(wsdl_types, wsdl_elements) - # add method - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(TypeNamespace, 'foo.bar'), - XSD::QName.new(TypeNamespace, 'foo.bar') - ) - add_rpc_operation(self, - XSD::QName.new("urn:example.com:echo", "echoAny"), - "urn:example.com:echoAny", - "echoAny", - [ ["retval", "echoany_return", [XSD::QName.new("http://www.w3.org/2001/XMLSchema", "anyType")]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ) - end - - def echo(arg) - res = FooBar.new(arg.before, arg.after) - res.set_any([ - ::SOAP::SOAPElement.new("foo", "bar"), - ::SOAP::SOAPElement.new("baz", "qux") - ]) - res - # TODO: arg - end - - AnyStruct = Struct.new(:a, :b) - def echoAny - AnyStruct.new(1, Time.mktime(2007, 1, 1)) - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('echo.rb')) if File.exist?(pathname('echo.rb')) - File.unlink(pathname('echoMappingRegistry.rb')) if File.exist?(pathname('echoMappingRegistry.rb')) - File.unlink(pathname('echoDriver.rb')) if File.exist?(pathname('echoDriver.rb')) - File.unlink(pathname('echoServant.rb')) if File.exist?(pathname('echoServant.rb')) - File.unlink(pathname('echo_service.rb')) if File.exist?(pathname('echo_service.rb')) - File.unlink(pathname('echo_serviceClient.rb')) if File.exist?(pathname('echo_serviceClient.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("any.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'echoDriver.rb', 'echoMappingRegistry.rb', 'echo.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_any - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("any.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['client_skelton'] = nil - gen.opt['servant_skelton'] = nil - gen.opt['standalone_server_stub'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - compare("expectedEcho.rb", "echo.rb") - compare("expectedMappingRegistry.rb", "echoMappingRegistry.rb") - compare("expectedDriver.rb", "echoDriver.rb") - compare("expectedService.rb", "echo_service.rb") - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def test_anyreturl_wsdl - wsdl = File.join(DIR, 'any.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - res = @client.echoAny - assert_equal(1, res.a) - assert_equal(2007, res.b.year) - end - - def test_wsdl - wsdl = File.join(DIR, 'any.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - arg = FooBar.new("before", "after") - arg.set_any( - [ - ::SOAP::SOAPElement.new("foo", "bar"), - ::SOAP::SOAPElement.new("baz", "qux") - ] - ) - res = @client.echo(arg) - assert_equal(arg.before, res.before) - assert_equal("bar", res.foo) - assert_equal("qux", res.baz) - assert_equal(arg.after, res.after) - end - - def test_naive - @client = Echo_port_type.new - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - arg = FooBar.new("before", "after") - arg.set_any( - [ - ::SOAP::SOAPElement.new("foo", "bar"), - ::SOAP::SOAPElement.new("baz", "qux") - ] - ) - res = @client.echo(arg) - assert_equal(arg.before, res.before) - assert_equal("bar", res.foo) - assert_equal("qux", res.baz) - assert_equal(arg.after, res.after) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/axisArray.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/axisArray.wsdl deleted file mode 100644 index 1ad06f34..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/axisArray.wsdl +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/test_axisarray.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/test_axisarray.rb deleted file mode 100644 index 152f18bb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/axisArray/test_axisarray.rb +++ /dev/null @@ -1,124 +0,0 @@ -require 'test/unit' -require 'soap/processor' -require 'soap/mapping' -require 'soap/rpc/element' -require 'wsdl/importer' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL -module AxisArray - - -class TestAxisArray < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def setup - @xml =<<__EOX__ - - - - - - - - - - - - - name3 - - - name1 - - - name2 - - - -__EOX__ - setup_classdef - end - - def teardown - unless $DEBUG - File.unlink(pathname('itemList.rb')) - File.unlink(pathname('itemListMappingRegistry.rb')) - File.unlink(pathname('itemListDriver.rb')) - end - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("axisArray.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'itemListDriver.rb', 'itemList.rb', 'itemListMappingRegistry.rb') - end - - def test_by_stub - driver = ItemListPortType.new - driver.test_loopback_response << @xml - ary = driver.listItem - assert_equal(3, ary.size) - assert_equal("name1", ary[0].name) - assert_equal("name2", ary[1].name) - assert_equal("name3", ary[2].name) - end - - def test_by_wsdl - wsdlfile = File.join(File.dirname(File.expand_path(__FILE__)), 'axisArray.wsdl') - wsdl = WSDL::Importer.import(wsdlfile) - service = wsdl.services[0] - port = service.ports[0] - wsdl_types = wsdl.collect_complextypes - rpc_decode_typemap = wsdl_types + wsdl.soap_rpc_complextypes(port.find_binding) - opt = {} - opt[:default_encodingstyle] = ::SOAP::EncodingNamespace - opt[:decode_typemap] = rpc_decode_typemap - header, body = ::SOAP::Processor.unmarshal(@xml, opt) - ary = ::SOAP::Mapping.soap2obj(body.response) - assert_equal(3, ary.size) - assert_equal("name1", ary[0].name) - assert_equal("name2", ary[1].name) - assert_equal("name3", ary[2].name) - end - -XML_LONG = <<__XML__ - - - - - - - - - - 105759347 - - -__XML__ - - def test_multiref_long - driver = ItemListPortType.new - driver.test_loopback_response << XML_LONG - ret = driver.getMeetingInfo - assert_equal(105759347, ret.meetingId) - end - - def pathname(filename) - File.join(DIR, filename) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/choice/choice.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/choice/choice.wsdl deleted file mode 100644 index 924bcd10..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/choice/choice.wsdl +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/choice/test_choice.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/choice/test_choice.rb deleted file mode 100644 index 6de9a5d7..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/choice/test_choice.rb +++ /dev/null @@ -1,310 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Choice - - -class TestChoice < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:choice' - - def on_init - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(Namespace, 'echoele'), - XSD::QName.new(Namespace, 'echo_response') - ) - add_document_method( - self, - Namespace + ':echo_complex', - 'echo_complex', - XSD::QName.new(Namespace, 'echoele_complex'), - XSD::QName.new(Namespace, 'echo_complex_response') - ) - add_document_method( - self, - Namespace + ':echo_complex_emptyArrayAtFirst', - 'echo_complex_emptyArrayAtFirst', - XSD::QName.new(Namespace, 'echoele_complex_emptyArrayAtFirst'), - XSD::QName.new(Namespace, 'echoele_complex_emptyArrayAtFirst') - ) - @router.literal_mapping_registry = ChoiceMappingRegistry::LiteralRegistry - end - - def echo(arg) - arg - end - - def echo_complex(arg) - Echo_complex_response.new(arg.data) - end - - def echo_complex_emptyArrayAtFirst(arg) - arg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('choice.rb')) - File.unlink(pathname('choiceMappingRegistry.rb')) - File.unlink(pathname('choiceDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("choice.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'choiceDriver.rb', 'choiceMappingRegistry.rb', 'choice.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'choice.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = ChoiceMappingRegistry::LiteralRegistry - - ret = @client.echo(Echoele.new(TerminalID.new("imei", nil))) - assert_equal("imei", ret.terminalID.imei) - assert_nil(ret.terminalID.devId) - ret = @client.echo(Echoele.new(TerminalID.new(nil, 'devId'))) - assert_equal("devId", ret.terminalID.devId) - assert_nil(ret.terminalID.imei) - end - - include ::SOAP - def test_naive - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo', 'urn:choice:echo', - XSD::QName.new('urn:choice', 'echoele'), - XSD::QName.new('urn:choice', 'echo_response')) - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = ChoiceMappingRegistry::LiteralRegistry - - echo = SOAPElement.new('echoele') - echo.add(terminalID = SOAPElement.new('terminalID')) - terminalID.add(SOAPElement.new('imei', 'imei')) - ret = @client.echo(echo) - assert_equal("imei", ret.terminalID.imei) - assert_nil(ret.terminalID.devId) - - echo = SOAPElement.new('echoele') - echo.add(terminalID = SOAPElement.new('terminalID')) - terminalID.add(SOAPElement.new('devId', 'devId')) - ret = @client.echo(echo) - assert_equal("devId", ret.terminalID.devId) - assert_nil(ret.terminalID.imei) - end - - def test_wsdl_with_map_complex - wsdl = File.join(DIR, 'choice.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - do_test_with_map_complex(@client) - end - - def test_wsdl_with_stub_complex - wsdl = File.join(DIR, 'choice.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = ChoiceMappingRegistry::LiteralRegistry - do_test_with_stub_complex(@client) - end - - def test_naive_with_map_complex - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo_complex', 'urn:choice:echo_complex', - XSD::QName.new('urn:choice', 'echoele_complex'), - XSD::QName.new('urn:choice', 'echo_complex_response')) - @client.wiredump_dev = STDOUT if $DEBUG - do_test_with_map_complex(@client) - end - - def test_naive_with_stub_complex - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo_complex', 'urn:choice:echo_complex', - XSD::QName.new('urn:choice', 'echoele_complex'), - XSD::QName.new('urn:choice', 'echo_complex_response')) - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = ChoiceMappingRegistry::LiteralRegistry - do_test_with_stub_complex(@client) - end - - def do_test_with_map_complex(client) - req = { - :data => { - :A => "A", - :B1 => "B1", - :C1 => "C1", - :C2 => "C2" - } - } - ret = client.echo_complex(req) - assert_equal("A", ret.data["A"]) - assert_equal("B1", ret.data["B1"]) - assert_equal(nil, ret.data["B2a"]) - assert_equal(nil, ret.data["B2b"]) - assert_equal(nil, ret.data["B3a"]) - assert_equal(nil, ret.data["B3b"]) - assert_equal("C1", ret.data["C1"]) - assert_equal("C2", ret.data["C2"]) - # - req = { - :data => { - :A => "A", - :B2a => "B2a", - :B2b => "B2b", - :C1 => "C1", - :C2 => "C2" - } - } - ret = client.echo_complex(req) - assert_equal("A", ret.data["A"]) - assert_equal(nil, ret.data["B1"]) - assert_equal("B2a", ret.data["B2a"]) - assert_equal("B2b", ret.data["B2b"]) - assert_equal(nil, ret.data["B3a"]) - assert_equal(nil, ret.data["B3b"]) - assert_equal("C1", ret.data["C1"]) - assert_equal("C2", ret.data["C2"]) - # - req = { - :data => { - :A => "A", - :B3a => "B3a", - :C1 => "C1", - :C2 => "C2" - } - } - ret = client.echo_complex(req) - assert_equal("A", ret.data["A"]) - assert_equal(nil, ret.data["B1"]) - assert_equal(nil, ret.data["B2a"]) - assert_equal(nil, ret.data["B2b"]) - assert_equal("B3a", ret.data["B3a"]) - assert_equal(nil, ret.data["B3b"]) - assert_equal("C1", ret.data["C1"]) - assert_equal("C2", ret.data["C2"]) - # - req = { - :data => { - :A => "A", - :B3b => "B3b", - :C1 => "C1", - :C2 => "C2" - } - } - ret = client.echo_complex(req) - assert_equal("A", ret.data["A"]) - assert_equal(nil, ret.data["B1"]) - assert_equal(nil, ret.data["B2a"]) - assert_equal(nil, ret.data["B2b"]) - assert_equal(nil, ret.data["B3a"]) - assert_equal("B3b", ret.data["B3b"]) - assert_equal("C1", ret.data["C1"]) - assert_equal("C2", ret.data["C2"]) - end - - def do_test_with_stub_complex(client) - ret = client.echo_complex(Echoele_complex.new(Andor.new("A", "B1", nil, nil, nil, nil, "C1", "C2"))) - assert_equal("A", ret.data.a) - assert_equal("B1", ret.data.b1) - assert_equal(nil, ret.data.b2a) - assert_equal(nil, ret.data.b2b) - assert_equal(nil, ret.data.b3a) - assert_equal(nil, ret.data.b3b) - assert_equal("C1", ret.data.c1) - assert_equal("C2", ret.data.c2) - # - ret = client.echo_complex(Echoele_complex.new(Andor.new("A", nil, "B2a", "B2b", nil, nil, "C1", "C2"))) - assert_equal("A", ret.data.a) - assert_equal(nil, ret.data.b1) - assert_equal("B2a", ret.data.b2a) - assert_equal("B2b", ret.data.b2b) - assert_equal(nil, ret.data.b3a) - assert_equal(nil, ret.data.b3b) - assert_equal("C1", ret.data.c1) - assert_equal("C2", ret.data.c2) - # - ret = client.echo_complex(Echoele_complex.new(Andor.new("A", nil, nil, nil, "B3a", nil, "C1", "C2"))) - assert_equal("A", ret.data.a) - assert_equal(nil, ret.data.b1) - assert_equal(nil, ret.data.b2a) - assert_equal(nil, ret.data.b2b) - assert_equal("B3a", ret.data.b3a) - assert_equal(nil, ret.data.b3b) - assert_equal("C1", ret.data.c1) - assert_equal("C2", ret.data.c2) - # - ret = client.echo_complex(Echoele_complex.new(Andor.new("A", nil, nil, nil, nil, "B3b", "C1", "C2"))) - assert_equal("A", ret.data.a) - assert_equal(nil, ret.data.b1) - assert_equal(nil, ret.data.b2a) - assert_equal(nil, ret.data.b2b) - assert_equal(nil, ret.data.b3a) - assert_equal("B3b", ret.data.b3b) - assert_equal("C1", ret.data.c1) - assert_equal("C2", ret.data.c2) - end - - def test_stub_emptyArrayAtFirst - @client = Choice_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - # - arg = EmptyArrayAtFirst.new - arg.b1 = "b1" - ret = @client.echo_complex_emptyArrayAtFirst(Echoele_complex_emptyArrayAtFirst.new(arg)) - assert_nil(ret.data.a) - assert_equal("b1", ret.data.b1) - assert_nil(ret.data.b2) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/complexContent.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/complexContent.wsdl deleted file mode 100644 index 3ff1fdc8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/complexContent.wsdl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/test_echo.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/test_echo.rb deleted file mode 100644 index 2b4df583..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/complexcontent/test_echo.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module ComplexContent - - -class TestEcho < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:complexContent' - - def on_init - add_document_method( - self, - nil, - 'echo', - XSD::QName.new(Namespace, 'echo'), - XSD::QName.new(Namespace, 'echo') - ) - end - - def echo(arg) - arg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('complexContent.rb')) - File.unlink(pathname('complexContentMappingRegistry.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("complexContent.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'complexContentMappingRegistry.rb', 'complexContent.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'complexContent.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.literal_mapping_registry = ComplexContentMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - d = Derived.new - d.name = "NaHi" - assert_instance_of(Echo, @client.echo(Echo.new(d))) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/DatetimeService.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/DatetimeService.rb deleted file mode 100644 index 800e06d6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/DatetimeService.rb +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env ruby -require 'datetimeServant.rb' - -require 'soap/rpc/standaloneServer' -require 'soap/mapping/registry' - -class DatetimePortType - MappingRegistry = ::SOAP::Mapping::Registry.new - - Methods = [ - ["now", "now", - [ - ["in", "now", [::SOAP::SOAPDateTime]], - ["retval", "now", [::SOAP::SOAPDateTime]] - ], - "", "urn:jp.gr.jin.rrr.example.datetime", :rpc - ] - ] -end - -class DatetimePortTypeApp < ::SOAP::RPC::StandaloneServer - def initialize(*arg) - super(*arg) - servant = DatetimePortType.new - DatetimePortType::Methods.each do |name_as, name, param_def, soapaction, namespace, style| - if style == :document - @router.add_document_operation(servant, soapaction, name, param_def) - else - qname = XSD::QName.new(namespace, name_as) - @router.add_rpc_operation(servant, qname, soapaction, name, param_def) - end - end - self.mapping_registry = DatetimePortType::MappingRegistry - end -end - -if $0 == __FILE__ - # Change listen port. - server = DatetimePortTypeApp.new('app', nil, '0.0.0.0', 10080) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetime.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetime.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetime.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetime.wsdl deleted file mode 100644 index 4998dc48..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetime.wsdl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetimeServant.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetimeServant.rb deleted file mode 100644 index c6215def..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/datetimeServant.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'datetime.rb' - -class DatetimePortType - # SYNOPSIS - # now(now) - # - # ARGS - # now - {http://www.w3.org/2001/XMLSchema}dateTime - # - # RETURNS - # now - {http://www.w3.org/2001/XMLSchema}dateTime - # - # RAISES - # (undefined) - # - def now(now) - #raise NotImplementedError.new - return nil if now.nil? - now + 1 - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/test_datetime.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/test_datetime.rb deleted file mode 100644 index 0138173f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/datetime/test_datetime.rb +++ /dev/null @@ -1,86 +0,0 @@ -require 'test/unit' -require 'soap/wsdlDriver' -require 'DatetimeService.rb' - - -module WSDL -module Datetime - - -class TestDatetime < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = DatetimePortTypeApp.new('Datetime server', nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - end - - def setup_client - wsdl = File.join(DIR, 'datetime.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = true - @client.wiredump_dev = STDOUT if $DEBUG - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - def test_datetime - d = DateTime.now - d1 = d + 1 - d2 = @client.now(d) - assert_equal(d1.year, d2.year) - assert_equal(d1.month, d2.month) - assert_equal(d1.day, d2.day) - assert_equal(d1.hour, d2.hour) - assert_equal(d1.min, d2.min) - assert_equal(d1.sec, d2.sec) - assert_equal(d1.sec, d2.sec) - end - - def test_time - d = DateTime.now - t = Time.gm(d.year, d.month, d.day, d.hour, d.min, d.sec) - d1 = d + 1 - d2 = @client.now(t) - assert_equal(d1.year, d2.year) - assert_equal(d1.month, d2.month) - assert_equal(d1.day, d2.day) - assert_equal(d1.hour, d2.hour) - assert_equal(d1.min, d2.min) - assert_equal(d1.sec, d2.sec) - assert_equal(d1.sec, d2.sec) - end - - def test_nil - assert_nil(@client.now(nil)) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/double.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/double.wsdl deleted file mode 100644 index 0a744c05..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/double.wsdl +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/test_array.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/test_array.rb deleted file mode 100644 index 479aa626..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/array/test_array.rb +++ /dev/null @@ -1,201 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'testutil.rb') - - -module WSDL; module Document - - -class TestArray < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'http://tempuri.org/' - - def on_init - add_document_method( - self, - Namespace + 'echo', - 'echo', - XSD::QName.new(Namespace, 'echo'), - XSD::QName.new(Namespace, 'echoResponse') - ) - add_document_method( - self, - Namespace + 'echo2', - 'echo2', - XSD::QName.new(Namespace, 'echo2'), - XSD::QName.new(Namespace, 'echo2Response') - ) - add_document_method( - self, - Namespace + 'echo3', - 'echo3', - XSD::QName.new(Namespace, 'ArrayOfRecord'), - XSD::QName.new(Namespace, 'ArrayOfRecord') - ) - self.literal_mapping_registry = DoubleMappingRegistry::LiteralRegistry - end - - def echo(arg) - arg - end - - def echo2(arg) - arg - end - - def echo3(arg) - arg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('double.rb')) - File.unlink(pathname('doubleMappingRegistry.rb')) - File.unlink(pathname('doubleDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("double.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'doubleDriver.rb', 'doubleMappingRegistry.rb', 'double.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_stub - @client = PricerSoap.new - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - arg = ArrayOfComplex[c1 = Complex.new, c2 = Complex.new, c3 = Complex.new] - c1.string = "str_c1" - c1.double = 1.1 - c2.string = "str_c2" - c2.double = 2.2 - c3.string = "str_c3" - c3.double = 3.3 - ret = @client.echo2(Echo2.new(arg)) - assert_equal(ArrayOfComplex, ret.arg.class) - assert_equal(Complex, ret.arg[0].class) - assert_equal(arg[0].string, ret.arg[0].string) - assert_equal(arg[1].string, ret.arg[1].string) - assert_equal(arg[2].string, ret.arg[2].string) - end - - def test_wsdl_stubclassdef - wsdl = File.join(DIR, 'double.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.literal_mapping_registry = DoubleMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - arg = ArrayOfDouble[0.1, 0.2, 0.3] - assert_equal(arg, @client.echo(Echo.new(arg)).ary) - end - - def test_wsdl - wsdl = File.join(DIR, 'double.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.literal_mapping_registry = DoubleMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - double = [0.1, 0.2, 0.3] - assert_equal(double, @client.echo(:ary => double).ary) - end - - def test_stub - @client = ::WSDL::Document::PricerSoap.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - double = [0.1, 0.2, 0.3] - assert_equal(double, @client.echo(:ary => double).ary) - end - - def test_stub_nil - @client = ::WSDL::Document::PricerSoap.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - assert_equal(nil, @client.echo(Echo.new).ary) - end - - def test_attribute_array - @client = ::WSDL::Document::PricerSoap.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - # - r1 = ReportRecord.new - r1.xmlattr_a = "r1_xmlattr_a" - r1.xmlattr_b = "r1_xmlattr_b" - r1.xmlattr_c = "r1_xmlattr_c" - r2 = ReportRecord.new - r2.xmlattr_a = "r2_xmlattr_a" - r2.xmlattr_b = "r2_xmlattr_b" - r2.xmlattr_c = "r2_xmlattr_c" - arg = ArrayOfRecord[r1, r2] - ret = @client.echo3(arg) - assert_equal(arg.class , ret.class) - assert_equal(arg.size , ret.size) - assert_equal(2, ret.size) - assert_equal(arg[0].class, ret[0].class) - assert_equal(arg[0].xmlattr_a, ret[0].xmlattr_a) - assert_equal(arg[0].xmlattr_b, ret[0].xmlattr_b) - assert_equal(arg[0].xmlattr_c, ret[0].xmlattr_c) - assert_equal(arg[1].class, ret[1].class) - assert_equal(arg[1].xmlattr_a, ret[1].xmlattr_a) - assert_equal(arg[1].xmlattr_b, ret[1].xmlattr_b) - assert_equal(arg[1].xmlattr_c, ret[1].xmlattr_c) - # - arg = ArrayOfRecord[r1] - ret = @client.echo3(arg) - assert_equal(arg.class , ret.class) - assert_equal(arg.size , ret.size) - assert_equal(1, ret.size) - assert_equal(arg[0].class, ret[0].class) - assert_equal(arg[0].xmlattr_a, ret[0].xmlattr_a) - assert_equal(arg[0].xmlattr_b, ret[0].xmlattr_b) - assert_equal(arg[0].xmlattr_c, ret[0].xmlattr_c) - # - arg = ArrayOfRecord[] - ret = @client.echo3(arg) - assert_equal(arg.class , ret.class) - assert_equal(arg.size , ret.size) - assert_equal(0, ret.size) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/document.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/document/document.wsdl deleted file mode 100644 index 9b7baf62..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/document.wsdl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/number.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/document/number.wsdl deleted file mode 100644 index cc3dd8e9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/number.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/ping_nosoapaction.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/document/ping_nosoapaction.wsdl deleted file mode 100644 index 20c31e5d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/ping_nosoapaction.wsdl +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_nosoapaction.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_nosoapaction.rb deleted file mode 100644 index 551547d8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_nosoapaction.rb +++ /dev/null @@ -1,102 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require 'soap/rpc/driver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Document - - -class TestNoSOAPAction < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'http://xmlsoap.org/Ping' - - def on_init - add_document_method( - self, - Namespace + '/ping', - 'ping_with_soapaction', - XSD::QName.new(Namespace, 'Ping'), - XSD::QName.new(Namespace, 'PingResponse') - ) - - add_document_method( - self, - nil, - 'ping', - XSD::QName.new(Namespace, 'Ping'), - XSD::QName.new(Namespace, 'PingResponse') - ) - - # When no SOAPAction given, latter method(ping) is called. - end - - def ping(arg) - arg.text = 'ping' - arg - end - - def ping_with_soapaction(arg) - arg.text = 'ping_with_soapaction' - arg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - @client = nil - end - - def teardown - teardown_server if @server - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def test_with_soapaction - wsdl = File.join(DIR, 'ping_nosoapaction.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - rv = @client.ping(:scenario => 'scenario', :origin => 'origin', - :text => 'text') - assert_equal('scenario', rv.scenario) - assert_equal('origin', rv.origin) - assert_equal('ping', rv.text) - end - - def test_without_soapaction - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/", - Server::Namespace) - @client.add_document_method('ping', Server::Namespace + '/ping', - XSD::QName.new(Server::Namespace, 'Ping'), - XSD::QName.new(Server::Namespace, 'PingResponse')) - @client.wiredump_dev = STDOUT if $DEBUG - rv = @client.ping(:scenario => 'scenario', :origin => 'origin', - :text => 'text') - assert_equal('scenario', rv.scenario) - assert_equal('origin', rv.origin) - assert_equal('ping_with_soapaction', rv.text) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_number.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_number.rb deleted file mode 100644 index 8c348fa6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_number.rb +++ /dev/null @@ -1,92 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Document - - -class TestNumber < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:foo' - - def on_init - add_document_method( - self, - Namespace + ':get_foo', - 'get_foo', - XSD::QName.new(Namespace, 'get_foo'), - XSD::QName.new(Namespace, 'get_foo_response') - ) - end - - def get_foo(arg) - arg.number - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - File.unlink(pathname('foo.rb')) - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:rpc", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("number.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'foo.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'number.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - - # with the Struct defined in foo.rb, which is generated from WSDL - assert_equal("12345", @client.get_foo(Get_foo.new("12345"))) - - # with Hash - assert_equal("12345", @client.get_foo({:number => "12345"})) - - # with Original struct - get_foo_struct = Struct.new(:number) - assert_equal("12345", @client.get_foo(get_foo_struct.new("12345"))) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_rpc.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_rpc.rb deleted file mode 100644 index 81a227e2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/document/test_rpc.rb +++ /dev/null @@ -1,355 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Document - - -class TestRPC < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:docrpc' - - def on_init - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(Namespace, 'echo'), - XSD::QName.new(Namespace, 'echo_response') - ) - add_document_method( - self, - Namespace + ':return_nil', - 'return_nil', - nil, - XSD::QName.new(Namespace, 'echo_response') - ) - add_document_method( - self, - Namespace + ':return_empty', - 'return_empty', - nil, - XSD::QName.new(Namespace, 'echo_response') - ) - self.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - end - - def echo(arg) - if arg.is_a?(Echoele) - # swap args - tmp = arg.struct1 - arg.struct1 = arg.struct_2 - arg.struct_2 = tmp - arg - else - # swap args - tmp = arg["struct1"] - arg["struct1"] = arg["struct-2"] - arg["struct-2"] = tmp - arg - end - end - - def return_nil - e = Echoele.new - e.struct1 = Echo_struct.new(nil, nil) - e.struct_2 = Echo_struct.new(nil, nil) - e.long = nil - e - end - - def return_empty - e = Echoele.new - e.struct1 = Echo_struct.new("", nil) - e.struct_2 = Echo_struct.new("", nil) - e.long = 0 - e - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - File.unlink(pathname('echo.rb')) unless $DEBUG - File.unlink(pathname('echoMappingRegistry.rb')) unless $DEBUG - File.unlink(pathname('echoDriver.rb')) unless $DEBUG - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:rpc", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("document.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'echoDriver.rb', 'echoMappingRegistry.rb', 'echo.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'document.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - do_test_with_stub(@client) - end - - def test_driver_stub - @client = ::WSDL::Document::Docrpc_porttype.new - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - do_test_with_stub(@client) - end - - def test_nil_attribute - @client = ::WSDL::Document::Docrpc_porttype.new - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - struct1 = Echo_struct.new("mystring1", now1 = Time.now) - struct1.xmlattr_m_attr = nil - struct2 = Echo_struct.new("mystr<>ing2", now2 = Time.now) - struct2.xmlattr_m_attr = '' - echo = Echoele.new(struct1, struct2, 105759347) - echo.xmlattr_attr_string = '' - echo.xmlattr_attr_int = nil - ret = @client.echo(echo) - # struct1 and struct2 are swapped - assert_equal('', ret.struct1.xmlattr_m_attr) - assert_equal(nil, ret.struct_2.xmlattr_m_attr) - assert_equal('', ret.xmlattr_attr_string) - assert_equal(nil, ret.xmlattr_attr_int) - assert_equal(105759347, ret.long) - end - - def do_test_with_stub(client) - struct1 = Echo_struct.new("mystring1", now1 = Time.now) - struct1.xmlattr_m_attr = 'myattr1' - struct2 = Echo_struct.new("mystr<>ing2", now2 = Time.now) - struct2.xmlattr_m_attr = 'myattr2' - echo = Echoele.new(struct1, struct2, 105759347) - echo.xmlattr_attr_string = 'attr_str<>ing' - echo.xmlattr_attr_int = 5 - ret = client.echo(echo) - - # struct#m_datetime in a response is a DateTime even though - # struct#m_datetime in a request is a Time. - timeformat = "%Y-%m-%dT%H:%M:%S" - assert_equal("mystr<>ing2", ret.struct1.m_string) - assert_equal(now2.strftime(timeformat), - date2time(ret.struct1.m_datetime).strftime(timeformat)) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal(now1.strftime(timeformat), - date2time(ret.struct_2.m_datetime).strftime(timeformat)) - assert_equal("attr_str<>ing", ret.xmlattr_attr_string) - assert_equal(5, ret.xmlattr_attr_int) - assert_equal(105759347, ret.long) - end - - def test_wsdl_with_map - wsdl = File.join(DIR, 'document.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - - struct1 = { - :m_string => "mystring1", - :m_datetime => (now1 = Time.now), - :xmlattr_m_attr => "myattr1" - } - struct2 = { - "m_string" => "mystr<>ing2", - "m_datetime" => now2 = (Time.now), - "xmlattr_m_attr" => "myattr2" - } - echo = { - :struct1 => struct1, - "struct-2" => struct2, - :xmlattr_attr_string => 'attr_str<>ing', - "xmlattr_attr-int" => 5 - } - ret = @client.echo(echo) - # - now1str = XSD::XSDDateTime.new(now1).to_s - now2str = XSD::XSDDateTime.new(now2).to_s - assert_equal("mystr<>ing2", ret.struct1.m_string) - assert_equal(now2str, ret.struct1.m_datetime) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal(now1str, ret.struct_2.m_datetime) - assert_equal("attr_str<>ing", ret.xmlattr_attr_string) - assert_equal("5", ret.xmlattr_attr_int) - end - - def date2time(date) - if date.respond_to?(:to_time) - date.to_time - else - d = date.new_offset(0) - d.instance_eval { - Time.utc(year, mon, mday, hour, min, sec, - (sec_fraction * 86400000000).to_i) - }.getlocal - end - end - - include ::SOAP - def test_naive - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo', 'urn:docrpc:echo', - XSD::QName.new('urn:docrpc', 'echoele'), - XSD::QName.new('urn:docrpc', 'echo_response')) - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - - echo = SOAPElement.new('foo') - echo.extraattr['attr_string'] = 'attr_str<>ing' - echo.extraattr['attr-int'] = 5 - echo.add(struct1 = SOAPElement.new('struct1')) - struct1.add(SOAPElement.new('m_string', 'mystring1')) - struct1.add(SOAPElement.new('m_datetime', '2005-03-17T19:47:31+01:00')) - struct1.extraattr['m_attr'] = 'myattr1' - echo.add(struct2 = SOAPElement.new('struct-2')) - struct2.add(SOAPElement.new('m_string', 'mystring2')) - struct2.add(SOAPElement.new('m_datetime', '2005-03-17T19:47:32+02:00')) - struct2.extraattr['m_attr'] = 'myattr2' - ret = @client.echo(echo) - timeformat = "%Y-%m-%dT%H:%M:%S" - assert_equal('mystring2', ret.struct1.m_string) - assert_equal('2005-03-17T19:47:32', - ret.struct1.m_datetime.strftime(timeformat)) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal('2005-03-17T19:47:31', - ret.struct_2.m_datetime.strftime(timeformat)) - assert_equal('attr_str<>ing', ret.xmlattr_attr_string) - assert_equal(5, ret.xmlattr_attr_int) - - echo = {'struct1' => {'m_string' => 'mystring1', 'm_datetime' => '2005-03-17T19:47:31+01:00'}, - 'struct_2' => {'m_string' => 'mystring2', 'm_datetime' => '2005-03-17T19:47:32+02:00'}} - ret = @client.echo(echo) - timeformat = "%Y-%m-%dT%H:%M:%S" - assert_equal('mystring2', ret.struct1.m_string) - assert_equal('2005-03-17T19:47:32', - ret.struct1.m_datetime.strftime(timeformat)) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal('2005-03-17T19:47:31', - ret.struct_2.m_datetime.strftime(timeformat)) - end - - def test_to_xml - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo', 'urn:docrpc:echo', - XSD::QName.new('urn:docrpc', 'echoele'), - XSD::QName.new('urn:docrpc', 'echo_response')) - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - - require 'rexml/document' - echo = REXML::Document.new(<<__XML__.chomp) - - - mystring1 - 2005-03-17T19:47:31+01:00 - - - mystring2 - 2005-03-17T19:47:32+02:00 - - -__XML__ - ret = @client.echo(echo) - timeformat = "%Y-%m-%dT%H:%M:%S" - assert_equal('mystring2', ret.struct1.m_string) - assert_equal('2005-03-17T19:47:32', - ret.struct1.m_datetime.strftime(timeformat)) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal('2005-03-17T19:47:31', - ret.struct_2.m_datetime.strftime(timeformat)) - assert_equal('attr_string', ret.xmlattr_attr_string) - assert_equal(5, ret.xmlattr_attr_int) - # - echoele = REXML::Document.new(<<__XML__.chomp) - - - 2005-03-17T19:47:32+02:00 - mystring2 - - - 2005-03-17T19:47:31+01:00 - mystring1 - - -__XML__ - ret = @client.echo(echoele) - timeformat = "%Y-%m-%dT%H:%M:%S" - assert_equal('mystring2', ret.struct1.m_string) - assert_equal('2005-03-17T19:47:32', - ret.struct1.m_datetime.strftime(timeformat)) - assert_equal("mystring1", ret.struct_2.m_string) - assert_equal('2005-03-17T19:47:31', - ret.struct_2.m_datetime.strftime(timeformat)) - end - - def test_nil - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('return_nil', 'urn:docrpc:return_nil', - nil, - XSD::QName.new('urn:docrpc', 'return_nil')) - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - - ret = @client.return_nil - assert_nil(ret.struct1.m_string) - assert_nil(ret.struct_2.m_string) - assert_nil(ret.long) - end - - def test_empty - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('return_empty', 'urn:docrpc:return_empty', - nil, - XSD::QName.new('urn:docrpc', 'return_empty')) - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - - ret = @client.return_empty - assert_equal("", ret.struct1.m_string) - assert_equal("", ret.struct_2.m_string) - assert_equal(0, ret.long) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/emptycomplextype.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/emptycomplextype.wsdl deleted file mode 100644 index 4f8dc484..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/emptycomplextype.wsdl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/fault.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/fault/fault.wsdl deleted file mode 100644 index 84319d3d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/fault.wsdl +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/multifault.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/fault/multifault.wsdl deleted file mode 100644 index 2752fbc6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/multifault.wsdl +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_fault.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_fault.rb deleted file mode 100644 index 2273c36e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_fault.rb +++ /dev/null @@ -1,119 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Fault - - -class TestFault < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('Add.rb')) - File.unlink(pathname('AddMappingRegistry.rb')) - File.unlink(pathname('AddServant.rb')) - File.unlink(pathname('AddService.rb')) - end - @client.reset_stream if @client - end - - def setup_server - AddPortType.class_eval do - define_method(:add) do |request| - @sum ||= 0 - if (request.value > 100) - fault = AddFault.new("Value #{request.value} is too large", "Critical") - raise fault - end - @sum += request.value - return AddResponse.new(@sum) - end - end - @server = AddPortTypeApp.new('app', nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("fault.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['servant_skelton'] = nil - gen.opt['standalone_server_stub'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - TestUtil.require(DIR, 'Add.rb', 'AddMappingRegistry.rb', 'AddServant.rb', 'AddService.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_driver - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.mapping_registry = AddMappingRegistry::EncodedRegistry - @client.literal_mapping_registry = AddMappingRegistry::LiteralRegistry - @client.add_document_operation( - "Add", - "add", - [ ["in", "request", ["::SOAP::SOAPElement", "http://fault.test/Faulttest", "Add"]], - ["out", "response", ["::SOAP::SOAPElement", "http://fault.test/Faulttest", "AddResponse"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {"AddFault"=>{:namespace=>nil, :name=>"AddFault", :use=>"literal", :encodingstyle=>"document", :ns=>"http://fault.test/Faulttest"}} } - ) - @client.wiredump_dev = STDOUT if $DEBUG - do_test(@client) - end - - def test_wsdl - wsdl = File.join(DIR, 'fault.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.mapping_registry = AddMappingRegistry::EncodedRegistry - @client.literal_mapping_registry = AddMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - do_test(@client) - end - - def do_test(client) - assert_equal(100, client.add(Add.new(100)).sum) - assert_equal(100, client.add(Add.new(0)).sum) - assert_equal(150, client.add(Add.new(50)).sum) - begin - client.add(Add.new(101)) - assert(false) - rescue Exception => e - assert_equal(::SOAP::FaultError, e.class) - assert_equal("WSDL::Fault::AddFault", e.faultstring.data) - assert_equal("Value 101 is too large", e.detail.addFault.reason) - assert_equal("Critical", e.detail.addFault.severity) - end - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_multifault.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_multifault.rb deleted file mode 100644 index 2e78dc6c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/fault/test_multifault.rb +++ /dev/null @@ -1,134 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Fault - - -class TestMultiFault < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('Add.rb')) - File.unlink(pathname('AddMappingRegistry.rb')) - File.unlink(pathname('AddServant.rb')) - File.unlink(pathname('AddService.rb')) - end - @client.reset_stream if @client - end - - def setup_server - AddPortType.class_eval do - define_method(:add) do |request| - @sum ||= 0 - if (request.value > 100) - fault = AddFault.new("Value #{request.value} is too large", "Critical") - raise fault - end - - if (request.value < 0) - fault = NegativeValueFault.new("Value #{request.value} is negative", "Fatal") - raise fault - end - - @sum += request.value - return AddResponse.new(@sum) - end - end - @server = AddPortTypeApp.new('app', nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("multifault.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['servant_skelton'] = nil - gen.opt['standalone_server_stub'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - TestUtil.require(DIR, 'Add.rb', 'AddMappingRegistry.rb', 'AddServant.rb', 'AddService.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_driver - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.mapping_registry = AddMappingRegistry::EncodedRegistry - @client.literal_mapping_registry = AddMappingRegistry::LiteralRegistry - @client.add_document_operation( - "Add", - "add", - [ ["in", "request", ["::SOAP::SOAPElement", "http://fault.test/Faulttest", "Add"]], - ["out", "response", ["::SOAP::SOAPElement", "http://fault.test/Faulttest", "AddResponse"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {"AddFault"=>{:namespace=>nil, :name=>"AddFault", :use=>"literal", :encodingstyle=>"document", :ns=>"http://fault.test/Faulttest"}} } - ) - @client.wiredump_dev = STDOUT if $DEBUG - do_test(@client) - end - - def test_wsdl - wsdl = File.join(DIR, 'multifault.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.mapping_registry = AddMappingRegistry::EncodedRegistry - @client.literal_mapping_registry = AddMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - do_test(@client) - end - - def do_test(client) - assert_equal(100, client.add(Add.new(100)).sum) - assert_equal(100, client.add(Add.new(0)).sum) - assert_equal(150, client.add(Add.new(50)).sum) - begin - client.add(Add.new(101)) - assert(false) - rescue Exception => e - assert_equal(::SOAP::FaultError, e.class) - assert_equal("WSDL::Fault::AddFault", e.faultstring.data) - assert_equal("Value 101 is too large", e.detail.addFault.reason) - assert_equal("Critical", e.detail.addFault.severity) - end - begin - client.add(Add.new(-50)) - assert(false) - rescue Exception => e - assert_equal(::SOAP::FaultError, e.class) - assert_equal("WSDL::Fault::NegativeValueFault", e.faultstring.data) - assert_equal("Value -50 is negative", e.detail.negativeValueFault.reason) - assert_equal("Fatal", e.detail.negativeValueFault.severity) - end - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedClassdef.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedClassdef.rb deleted file mode 100644 index 6919294e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedClassdef.rb +++ /dev/null @@ -1,58 +0,0 @@ -require 'xsd/qname' - -module WSDL; module Group - - -# {urn:grouptype}groupele_type -# comment - SOAP::SOAPString -# element - SOAP::SOAPString -# eletype - SOAP::SOAPString -# var - SOAP::SOAPString -# xmlattr_attr_min - SOAP::SOAPDecimal -# xmlattr_attr_max - SOAP::SOAPDecimal -class Groupele_type - AttrAttr_max = XSD::QName.new(nil, "attr_max") - AttrAttr_min = XSD::QName.new(nil, "attr_min") - - attr_accessor :comment - attr_reader :__xmlele_any - attr_accessor :element - attr_accessor :eletype - attr_accessor :var - - def set_any(elements) - @__xmlele_any = elements - end - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_attr_min - __xmlattr[AttrAttr_min] - end - - def xmlattr_attr_min=(value) - __xmlattr[AttrAttr_min] = value - end - - def xmlattr_attr_max - __xmlattr[AttrAttr_max] - end - - def xmlattr_attr_max=(value) - __xmlattr[AttrAttr_max] = value - end - - def initialize(comment = nil, element = nil, eletype = nil, var = nil) - @comment = comment - @__xmlele_any = nil - @element = element - @eletype = eletype - @var = var - @__xmlattr = {} - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedDriver.rb deleted file mode 100644 index 9dffebf8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedDriver.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'echo.rb' -require 'echoMappingRegistry.rb' -require 'soap/rpc/driver' - -module WSDL::Group - -class Group_porttype < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:17171/" - - Methods = [ - [ "urn:group:echo", - "echo", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:grouptype", "groupele"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:grouptype", "groupele"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = EchoMappingRegistry::EncodedRegistry - self.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedMappingRegistry.rb deleted file mode 100644 index 1c9d8fff..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/group/expectedMappingRegistry.rb +++ /dev/null @@ -1,67 +0,0 @@ -require 'echo.rb' -require 'soap/mapping' - -module WSDL; module Group - -module EchoMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsGrouptype = "urn:grouptype" - NsXMLSchema = "http://www.w3.org/2001/XMLSchema" - - EncodedRegistry.register( - :class => WSDL::Group::Groupele_type, - :schema_type => XSD::QName.new(NsGrouptype, "groupele_type"), - :schema_element => [ - ["comment", "SOAP::SOAPString", [0, 1]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - [ :choice, - ["element", ["SOAP::SOAPString", XSD::QName.new(nil, "element")]], - ["eletype", ["SOAP::SOAPString", XSD::QName.new(nil, "eletype")]] - ], - ["var", ["SOAP::SOAPString", XSD::QName.new(nil, "var")]] - ], - :schema_attribute => { - XSD::QName.new(nil, "attr_min") => "SOAP::SOAPDecimal", - XSD::QName.new(nil, "attr_max") => "SOAP::SOAPDecimal" - } - ) - - LiteralRegistry.register( - :class => WSDL::Group::Groupele_type, - :schema_type => XSD::QName.new(NsGrouptype, "groupele_type"), - :schema_element => [ - ["comment", "SOAP::SOAPString", [0, 1]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - [ :choice, - ["element", ["SOAP::SOAPString", XSD::QName.new(nil, "element")]], - ["eletype", ["SOAP::SOAPString", XSD::QName.new(nil, "eletype")]] - ], - ["var", ["SOAP::SOAPString", XSD::QName.new(nil, "var")]] - ], - :schema_attribute => { - XSD::QName.new(nil, "attr_min") => "SOAP::SOAPDecimal", - XSD::QName.new(nil, "attr_max") => "SOAP::SOAPDecimal" - } - ) - - LiteralRegistry.register( - :class => WSDL::Group::Groupele_type, - :schema_name => XSD::QName.new(NsGrouptype, "groupele"), - :schema_element => [ - ["comment", "SOAP::SOAPString", [0, 1]], - ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], - [ :choice, - ["element", ["SOAP::SOAPString", XSD::QName.new(nil, "element")]], - ["eletype", ["SOAP::SOAPString", XSD::QName.new(nil, "eletype")]] - ], - ["var", ["SOAP::SOAPString", XSD::QName.new(nil, "var")]] - ], - :schema_attribute => { - XSD::QName.new(nil, "attr_min") => "SOAP::SOAPDecimal", - XSD::QName.new(nil, "attr_max") => "SOAP::SOAPDecimal" - } - ) -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/group/group.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/group/group.wsdl deleted file mode 100644 index 4012ea6f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/group/group.wsdl +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/group/test_rpc.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/group/test_rpc.rb deleted file mode 100644 index 4e6c8255..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/group/test_rpc.rb +++ /dev/null @@ -1,145 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Group - - -class TestGroup < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:group' - TypeNamespace = 'urn:grouptype' - - def on_init - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(TypeNamespace, 'groupele'), - XSD::QName.new(TypeNamespace, 'groupele') - ) - self.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - end - - def echo(arg) - # arg - # need to convert for 'any' - ret = Groupele_type.new(arg.comment, arg.element, arg.eletype, arg.var) - ret.xmlattr_attr_max = arg.xmlattr_attr_max - ret.xmlattr_attr_min = arg.xmlattr_attr_min - ret.set_any([::SOAP::SOAPElement.new("foo", arg.foo)]) - ret - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - File.unlink(pathname('echo.rb')) unless $DEBUG - File.unlink(pathname('echoMappingRegistry.rb')) unless $DEBUG - File.unlink(pathname('echoDriver.rb')) unless $DEBUG - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:group", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("group.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'echoDriver.rb', 'echoMappingRegistry.rb', 'echo.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def test_generate - compare("expectedClassdef.rb", "echo.rb") - compare("expectedMappingRegistry.rb", "echoMappingRegistry.rb") - compare("expectedDriver.rb", "echoDriver.rb") - end - - def test_wsdl - wsdl = File.join(DIR, 'group.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - # - do_test_arg - end - - def test_naive - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - @client.add_document_method('echo', 'urn:group:echo', - XSD::QName.new('urn:grouptype', 'groupele'), - XSD::QName.new('urn:grouptype', 'groupele')) - @client.literal_mapping_registry = EchoMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - # - do_test_arg - end - - def test_stub - @client = Group_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - # - do_test_arg - end - - def do_test_arg - arg = Groupele_type.new - arg.comment = "comment" - arg.set_any( - [::SOAP::SOAPElement.new("foo", "bar")] - ) - arg.eletype = "eletype" - arg.var = "var" - arg.xmlattr_attr_min = -3 - arg.xmlattr_attr_max = 3 - ret = @client.echo(arg) - assert_equal(arg.comment, ret.comment) - assert_equal(arg.eletype, ret.eletype) - assert_nil(ret.element) - assert_equal(arg.var, ret.var) - assert_equal("bar", ret.foo) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/list/list.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/list/list.wsdl deleted file mode 100644 index e54dcef2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/list/list.wsdl +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/list/test_list.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/list/test_list.rb deleted file mode 100644 index 02867c77..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/list/test_list.rb +++ /dev/null @@ -1,124 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module List - - -class TestList < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:list' - - def on_init - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(Namespace, 'echoele'), - XSD::QName.new(Namespace, 'echo_response') - ) - end - - def echo(arg) - arg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - File.unlink(pathname('list.rb')) unless $DEBUG - File.unlink(pathname('listMappingRegistry.rb')) unless $DEBUG - File.unlink(pathname('listDriver.rb')) unless $DEBUG - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("list.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'listDriver.rb', 'listMappingRegistry.rb', 'list.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'list.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - e1 = Langlistinline.new([Langlistinline::Inlineruby, - Langlistinline::Inlineperl]) - e2 = Langlist.new([Language::Python, Language::Smalltalk]) - ret = @client.echo(Echoele.new(e1, e2)) - # in the future... - # assert_equal(e1, ret.e1) - # assert_equal(e2, ret.e2) - assert_equal(e1.join(" "), ret.e1) - assert_equal(e2.join(" "), ret.e2) - end - - def test_naive - @client = List_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - e1 = Langlistinline.new([Langlistinline::Inlineruby, - Langlistinline::Inlineperl]) - e2 = Langlist.new([Language::Python, Language::Smalltalk]) - ret = @client.echo(Echoele.new(e1, e2)) - # in the future... - # assert_equal(e1, ret.e1) - # assert_equal(e2, ret.e2) - assert_equal(e1.join(" "), ret.e1) - assert_equal(e2.join(" "), ret.e2) - end - - def test_string_as_a_value - @client = List_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - e1 = ['inlineruby', 'inlineperl'] - e2 = 'python smalltalk' - ret = @client.echo(Echoele.new(e1, e2)) - # in the future... - # assert_equal(e1, ret.e1) - # assert_equal(e2, ret.e2) - assert_equal(e1.join(" "), ret.e1) - assert_equal(e2, ret.e2) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.wsdl deleted file mode 100644 index e418a4cb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.wsdl +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.xml b/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.xml deleted file mode 100644 index 7106735f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/map/map.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - a - - - a1 - - a1 - - - - a2 - - a2 - - - - - - b - - - b1 - - b1 - - - - b2 - - b2 - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/map/test_map.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/map/test_map.rb deleted file mode 100644 index bf38387e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/map/test_map.rb +++ /dev/null @@ -1,99 +0,0 @@ -require 'test/unit' -require 'soap/rpc/httpserver' -require 'soap/wsdlDriver' - - -module WSDL - - -class TestMap < Test::Unit::TestCase - Port = 17171 - DIR = File.dirname(File.expand_path(__FILE__)) - - class Server < ::SOAP::RPC::HTTPServer - def on_init - add_method(self, 'map') - add_method(self, 'map2', 'arg') - end - - def map - {1 => "a", 2 => "b"} - end - - def map2(arg) - arg - end - end - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new( - :BindAddress => "0.0.0.0", - :Port => Port, - :AccessLog => [], - :SOAPDefaultNamespace => "urn:map" - ) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - end - - def setup_client - wsdl = File.join(DIR, 'map.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = true - @client.wiredump_dev = STDOUT if $DEBUG - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - def test_by_wsdl - dir = File.dirname(File.expand_path(__FILE__)) - wsdlfile = File.join(dir, 'map.wsdl') - xml = File.open(File.join(dir, 'map.xml')) { |f| f.read } - wsdl = WSDL::Importer.import(wsdlfile) - service = wsdl.services[0] - port = service.ports[0] - wsdl_types = wsdl.collect_complextypes - rpc_decode_typemap = wsdl_types + wsdl.soap_rpc_complextypes(port.find_binding) - opt = {} - opt[:default_encodingstyle] = ::SOAP::EncodingNamespace - opt[:decode_typemap] = rpc_decode_typemap - header, body = ::SOAP::Processor.unmarshal(xml, opt) - map = ::SOAP::Mapping.soap2obj(body.response) - assert_equal(["a1"], map["a"]["a1"]) - assert_equal(["a2"], map["a"]["a2"]) - assert_equal(["b1"], map["b"]["b1"]) - assert_equal(["b2"], map["b"]["b2"]) - end - - def test_wsdldriver - assert_equal({1 => "a", 2 => "b"}, @client.map) - assert_equal({1 => 2}, @client.map2({1 => 2})) - assert_equal({1 => {2 => 3}}, @client.map2({1 => {2 => 3}})) - assert_equal({["a", 2] => {2 => 3}}, @client.map2({["a", 2] => {2 => 3}})) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person.wsdl deleted file mode 100644 index a43c0545..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person.wsdl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person_org.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person_org.rb deleted file mode 100644 index 0c80ebe5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/person_org.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'xsd/qname' - -# {http://www.jin.gr.jp/~nahi/xmlns/sample/Person}Person -# familyname - SOAP::SOAPString -# givenname - SOAP::SOAPString -# var1 - SOAP::SOAPInt -# var2 - SOAP::SOAPDouble -# var3 - SOAP::SOAPString -class Person - attr_accessor :familyname - attr_accessor :givenname - attr_accessor :var1 - attr_accessor :var2 - attr_accessor :var3 - - def initialize(familyname = nil, givenname = nil, var1 = nil, var2 = nil, var3 = nil) - @familyname = familyname - @givenname = givenname - @var1 = var1 - @var2 = var2 - @var3 = var3 - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/test_wsdlmarshal.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/test_wsdlmarshal.rb deleted file mode 100644 index e9d20ec8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/marshal/test_wsdlmarshal.rb +++ /dev/null @@ -1,76 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'soap/mapping/wsdlencodedregistry' -require 'soap/marshal' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -class WSDLMarshaller - def initialize(wsdlfile) - wsdl = WSDL::Parser.new.parse(File.open(wsdlfile) { |f| f.read }) - types = wsdl.collect_complextypes - @opt = { - :decode_typemap => types, - :generate_explicit_type => false, - :pretty => true - } - @mapping_registry = ::SOAP::Mapping::WSDLEncodedRegistry.new(types) - end - - def dump(obj, io = nil) - ele = ::SOAP::Mapping.obj2soap(obj, @mapping_registry) - ele.elename = XSD::QName.new(nil, ele.type.name.to_s) - ::SOAP::Processor.marshal(::SOAP::SOAPEnvelope.new(nil, ::SOAP::SOAPBody.new(ele)), @opt, io) - end - - def load(io) - header, body = ::SOAP::Processor.unmarshal(io, @opt) - ::SOAP::Mapping.soap2obj(body.root_node, @mapping_registry) - end -end - - -require File.join(File.dirname(__FILE__), 'person_org') - -class Person - def ==(rhs) - @familyname == rhs.familyname and @givenname == rhs.givenname and - @var1 == rhs.var1 and @var2 == rhs.var2 and @var3 == rhs.var3 - end -end - - -class TestWSDLMarshal < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def test_marshal - marshaller = WSDLMarshaller.new(pathname('person.wsdl')) - obj = Person.new("NAKAMURA", "Hiroshi", 1, 1.0, "1") - str = marshaller.dump(obj) - puts str if $DEBUG - obj2 = marshaller.load(str) - assert_equal(obj, obj2) - assert_equal(str, marshaller.dump(obj2)) - end - - def test_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("person.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['force'] = true - gen.run - compare("person_org.rb", "Person.rb") - File.unlink(pathname('Person.rb')) unless $DEBUG - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def pathname(filename) - File.join(DIR, filename) - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/multiplefault.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/multiplefault.wsdl deleted file mode 100644 index a3ac139e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/multiplefault.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/oneway.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/oneway.wsdl deleted file mode 100644 index da7004d8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/oneway.wsdl +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/test_oneway.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/test_oneway.rb deleted file mode 100644 index 9b9abe47..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/oneway/test_oneway.rb +++ /dev/null @@ -1,108 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'wsdl/soap/wsdl2ruby' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL -module Oneway - - -class TestOneway < Test::Unit::TestCase - NS = 'http://www.example.com/oneway' - class Server < ::SOAP::RPC::StandaloneServer - Methods = [ - [ "initiate", - "initiate", - [ ["in", "payload", ["::SOAP::SOAPElement", "http://www.example.com/oneway", "onewayProcessRequest"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => nil, - :faults => {} } - ] - ] - - def on_init - Methods.each do |definition| - add_document_operation(self, *definition) - end - self.mapping_registry = OnewayMappingRegistry::EncodedRegistry - self.literal_mapping_registry = OnewayMappingRegistry::LiteralRegistry - end - - def initiate(payload) - raise unless payload.msg - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('oneway.rb')) - File.unlink(pathname('onewayMappingRegistry.rb')) - File.unlink(pathname('onewayDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "http://www.example.com/oneway", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("oneway.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.opt['module_path'] = 'WSDL::Oneway' - gen.run - TestUtil.require(DIR, 'oneway.rb', 'onewayDriver.rb', 'onewayMappingRegistry.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_stub - @client = OnewayPort.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - # not raised - @client.initiate(OnewayProcessRequest.new("msg")) - @client.initiate(OnewayProcessRequest.new(nil)) - end - - def test_wsdl - @client = ::SOAP::WSDLDriverFactory.new(pathname('oneway.wsdl')).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDERR if $DEBUG - # not raised - @client.initiate(OnewayProcessRequest.new("msg")) - @client.initiate(OnewayProcessRequest.new(nil)) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/overload/overload.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/overload/overload.wsdl deleted file mode 100644 index bc7f056e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/overload/overload.wsdl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/overload/test_overload.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/overload/test_overload.rb deleted file mode 100644 index ded462cb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/overload/test_overload.rb +++ /dev/null @@ -1,111 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module Overload - - -class TestOverload < Test::Unit::TestCase - TNS = "http://confluence.atlassian.com/rpc/soap-axis/confluenceservice-v1" - - Methods = [ - [ - XSD::QName.new(TNS, 'methodAlpha'), "methodAlpha1", "method_alpha_1", - [ ["in", "in0", ["::SOAP::SOAPString"]], - ["in", "in1", ["::SOAP::SOAPString"]], - ["in", "in2", ["::SOAP::SOAPString"]], - ["retval", "methodAlphaReturn", ["::SOAP::SOAPLong"]] ] - ], - [ - XSD::QName.new(TNS, 'methodAlpha'), "methodAlpha2", "method_alpha_2", - [ ["in", "in0", ["::SOAP::SOAPString"]], - ["in", "in1", ["::SOAP::SOAPString"]], - ["retval", "methodAlphaReturn", ["::SOAP::SOAPLong"]] ] - ] - ] - - class Server < ::SOAP::RPC::StandaloneServer - def on_init - TestOverload::Methods.each do |definition| - add_rpc_operation(self, *definition) - end - end - - def method_alpha_1(in0, in1, in2) - 3 - end - - def method_alpha_2(in0, in1) - 2 - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - File.unlink(pathname('default.rb')) unless $DEBUG - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:rpc", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("overload.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'default.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'overload.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - assert_equal(3, @client.call("methodAlpha1", "1", "2", "3")) - assert_equal(2, @client.call("methodAlpha2", "1", "2")) - end - - def test_native - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/") - Methods.each do |definition| - @client.add_rpc_operation(*definition) - end - @client.wiredump_dev = STDOUT if $DEBUG - assert_equal(3, @client.call("methodAlpha1", "1", "2", "3")) - assert_equal(2, @client.call("methodAlpha2", "1", "2")) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.wsdl deleted file mode 100644 index b107b7b3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.wsdl +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.xsd b/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.xsd deleted file mode 100644 index 12bcbd8c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/lp.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/np.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/np.wsdl deleted file mode 100644 index b5a10d0c..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/np.wsdl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_qualified.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_qualified.rb deleted file mode 100644 index a2595397..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_qualified.rb +++ /dev/null @@ -1,137 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -if defined?(HTTPClient) - -module WSDL - - -class TestQualified < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'http://www50.brinkster.com/vbfacileinpt/np' - - def on_init - add_document_method( - self, - Namespace + '/GetPrimeNumbers', - 'GetPrimeNumbers', - XSD::QName.new(Namespace, 'GetPrimeNumbers'), - XSD::QName.new(Namespace, 'GetPrimeNumbersResponse') - ) - end - - def GetPrimeNumbers(arg) - nil - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_server - setup_clientdef - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('default.rb')) - File.unlink(pathname('defaultMappingRegistry.rb')) - File.unlink(pathname('defaultDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:lp", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_clientdef - backupdir = Dir.pwd - begin - Dir.chdir(DIR) - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("np.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - require 'default.rb' - ensure - $".delete('default.rb') - Dir.chdir(backupdir) - end - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - LOGIN_REQUEST_QUALIFIED = -%q[ - - - - 2 - 10 - - -] - - def test_wsdl - wsdl = File.join(DIR, 'np.wsdl') - @client = nil - backupdir = Dir.pwd - begin - Dir.chdir(DIR) - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - ensure - Dir.chdir(backupdir) - end - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - @client.GetPrimeNumbers(:Min => 2, :Max => 10) - assert_equal(LOGIN_REQUEST_QUALIFIED, parse_requestxml(str), - [LOGIN_REQUEST_QUALIFIED, parse_requestxml(str)].join("\n\n")) - end - - include ::SOAP - def test_naive - TestUtil.require(DIR, 'defaultDriver.rb', 'defaultMappingRegistry.rb', 'default.rb') - @client = PnumSoap.new("http://localhost:#{Port}/") - - @client.wiredump_dev = str = '' - @client.getPrimeNumbers(GetPrimeNumbers.new(2, 10)) - assert_equal(LOGIN_REQUEST_QUALIFIED, parse_requestxml(str), - [LOGIN_REQUEST_QUALIFIED, parse_requestxml(str)].join("\n\n")) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end -end - - -end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_unqualified.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_unqualified.rb deleted file mode 100644 index 62c2e267..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/qualified/test_unqualified.rb +++ /dev/null @@ -1,138 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -if defined?(HTTPClient) - -module WSDL - - -class TestUnqualified < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = 'urn:lp' - - def on_init - add_document_method( - self, - Namespace + ':login', - 'login', - XSD::QName.new(Namespace, 'login'), - XSD::QName.new(Namespace, 'loginResponse') - ) - end - - def login(arg) - nil - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - Port = 17171 - - def setup - setup_server - setup_clientdef - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('lp.rb')) - File.unlink(pathname('lpMappingRegistry.rb')) - File.unlink(pathname('lpDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:lp", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_clientdef - backupdir = Dir.pwd - begin - Dir.chdir(DIR) - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("lp.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - require 'lp.rb' - ensure - $".delete('lp.rb') - Dir.chdir(backupdir) - end - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - LOGIN_REQUEST_QUALIFIED_UNTYPED = -%q[ - - - - NaHi - passwd - JST - - -] - - def test_wsdl - wsdl = File.join(DIR, 'lp.wsdl') - @client = nil - backupdir = Dir.pwd - begin - Dir.chdir(DIR) - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - ensure - Dir.chdir(backupdir) - end - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - @client.login(:timezone => 'JST', :password => 'passwd', - :username => 'NaHi') - # untyped because of passing a Hash - assert_equal(LOGIN_REQUEST_QUALIFIED_UNTYPED, parse_requestxml(str)) - end - - include ::SOAP - def test_naive - TestUtil.require(DIR, 'lpDriver.rb', 'lpMappingRegistry.rb', 'lp.rb') - @client = Lp_porttype.new("http://localhost:#{Port}/") - - @client.wiredump_dev = str = '' - @client.login(Login.new('NaHi', 'passwd', 'JST')) - assert_equal(LOGIN_REQUEST_QUALIFIED_UNTYPED, parse_requestxml(str)) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end -end - - -end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/RAAService.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/RAAService.rb deleted file mode 100644 index dcd53dd5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/RAAService.rb +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/env ruby -require 'soap/rpc/standaloneServer' - -module WSDL; module RAA - -class RAABaseServicePortTypeServer - def getAllListings - ["ruby", "soap4r"] - end - - def getProductTree - raise NotImplementedError.new - end - - def getInfoFromCategory(category) - raise NotImplementedError.new - end - - def getModifiedInfoSince(timeInstant) - raise NotImplementedError.new - end - - def getInfoFromName(productName) - Info.new( - Category.new("major", "minor"), - Product.new(123, productName, "short description", "version", "status", - URI.parse("http://example.com/homepage"), - URI.parse("http://example.com/download"), - "license", "description"), - Owner.new(456, URI.parse("mailto:email@example.com"), "name"), - Time.now, - Time.now) - end - - def getInfoFromOwnerId(ownerId) - raise NotImplementedError.new - end - - Methods = [ - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getAllListings"), - "", - "getAllListings", - [ ["retval", "return", ["WSDL::RAA::C_String[]", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "StringArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getProductTree"), - "", - "getProductTree", - [ ["retval", "return", ["Hash", "http://xml.apache.org/xml-soap", "Map"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getInfoFromCategory"), - "", - "getInfoFromCategory", - [ ["in", "category", ["WSDL::RAA::Category", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Category"]], - ["retval", "return", ["WSDL::RAA::Info[]", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getModifiedInfoSince"), - "", - "getModifiedInfoSince", - [ ["in", "timeInstant", ["::SOAP::SOAPDateTime"]], - ["retval", "return", ["WSDL::RAA::Info[]", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getInfoFromName"), - "", - "getInfoFromName", - [ ["in", "productName", ["::SOAP::SOAPString"]], - ["retval", "return", ["WSDL::RAA::Info", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "getInfoFromOwnerId"), - "", - "getInfoFromOwnerId", - [ ["in", "ownerId", ["::SOAP::SOAPInt"]], - ["retval", "return", ["WSDL::RAA::Info[]", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ] - ] -end - -end; end - -module WSDL; module RAA - -class RAABaseServicePortTypeApp < ::SOAP::RPC::StandaloneServer - def initialize(*arg) - super(*arg) - servant = WSDL::RAA::RAABaseServicePortTypeServer.new - WSDL::RAA::RAABaseServicePortType::Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - @router.add_document_operation(servant, *definitions) - else - @router.add_rpc_operation(servant, *definitions) - end - end - self.mapping_registry = RAAMappingRegistry::EncodedRegistry - self.literal_mapping_registry = RAAMappingRegistry::LiteralRegistry - end -end - -end; end - -if $0 == __FILE__ - # Change listen port. - server = WSDL::RAA::RAABaseServicePortTypeApp.new('app', nil, '0.0.0.0', 10080) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/README.txt b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/README.txt deleted file mode 100644 index efbaf9d8..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/README.txt +++ /dev/null @@ -1,8 +0,0 @@ -RAAServant.rb: based on the file which is generated with the following command; - bin/wsdl2ruby.rb --wsdl raa.wsdl --servant_skelton --force - -RAAService.rb: generated with the following command; - bin/wsdl2ruby.rb --wsdl raa.wsdl --standalone_server_stub --force - -RAA.rb: generated with the following command; - bin/wsdl2ruby.rb --wsdl raa.wsdl --classdef --force diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedClassDef.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedClassDef.rb deleted file mode 100644 index cefcd3f5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedClassDef.rb +++ /dev/null @@ -1,100 +0,0 @@ -require 'xsd/qname' - -module WSDL; module RAA - - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}Category -# major - SOAP::SOAPString -# minor - SOAP::SOAPString -class Category - attr_accessor :major - attr_accessor :minor - - def initialize(major = nil, minor = nil) - @major = major - @minor = minor - end -end - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}Product -# id - SOAP::SOAPInt -# name - SOAP::SOAPString -# short_description - SOAP::SOAPString -# version - SOAP::SOAPString -# status - SOAP::SOAPString -# homepage - SOAP::SOAPAnyURI -# download - SOAP::SOAPAnyURI -# license - SOAP::SOAPString -# description - SOAP::SOAPString -class Product - attr_accessor :id - attr_accessor :name - attr_accessor :short_description - attr_accessor :version - attr_accessor :status - attr_accessor :homepage - attr_accessor :download - attr_accessor :license - attr_accessor :description - - def initialize(id = nil, name = nil, short_description = nil, version = nil, status = nil, homepage = nil, download = nil, license = nil, description = nil) - @id = id - @name = name - @short_description = short_description - @version = version - @status = status - @homepage = homepage - @download = download - @license = license - @description = description - end -end - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}Owner -# id - SOAP::SOAPInt -# email - SOAP::SOAPAnyURI -# name - SOAP::SOAPString -class Owner - attr_accessor :id - attr_accessor :email - attr_accessor :name - - def initialize(id = nil, email = nil, name = nil) - @id = id - @email = email - @name = name - end -end - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}Info -# category - WSDL::RAA::Category -# product - WSDL::RAA::Product -# owner - WSDL::RAA::Owner -# created - SOAP::SOAPDateTime -# updated - SOAP::SOAPDateTime -class Info - attr_accessor :category - attr_accessor :product - attr_accessor :owner - attr_accessor :created - attr_accessor :updated - - def initialize(category = nil, product = nil, owner = nil, created = nil, updated = nil) - @category = category - @product = product - @owner = owner - @created = created - @updated = updated - end -end - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}InfoArray -class InfoArray < ::Array -end - -# {http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/}StringArray -class StringArray < ::Array -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedDriver.rb deleted file mode 100644 index b7e1e66a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedDriver.rb +++ /dev/null @@ -1,96 +0,0 @@ -require 'RAA.rb' -require 'RAAMappingRegistry.rb' -require 'soap/rpc/driver' - -module WSDL::RAA - -class RAABaseServicePortType < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://raa.ruby-lang.org/soap/1.0.2/" - NsC_002 = "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/" - - Methods = [ - [ XSD::QName.new(NsC_002, "getAllListings"), - "", - "getAllListings", - [ ["retval", "return", ["WSDL::RAA::StringArray", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "StringArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new(NsC_002, "getProductTree"), - "", - "getProductTree", - [ ["retval", "return", ["Hash", "http://xml.apache.org/xml-soap", "Map"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new(NsC_002, "getInfoFromCategory"), - "", - "getInfoFromCategory", - [ ["in", "category", ["WSDL::RAA::Category", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Category"]], - ["retval", "return", ["WSDL::RAA::InfoArray", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new(NsC_002, "getModifiedInfoSince"), - "", - "getModifiedInfoSince", - [ ["in", "timeInstant", ["::SOAP::SOAPDateTime"]], - ["retval", "return", ["WSDL::RAA::InfoArray", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new(NsC_002, "getInfoFromName"), - "", - "getInfoFromName", - [ ["in", "productName", ["::SOAP::SOAPString"]], - ["retval", "return", ["WSDL::RAA::Info", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "Info"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ], - [ XSD::QName.new(NsC_002, "getInfoFromOwnerId"), - "", - "getInfoFromOwnerId", - [ ["in", "ownerId", ["::SOAP::SOAPInt"]], - ["retval", "return", ["WSDL::RAA::InfoArray", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/", "InfoArray"]] ], - { :request_style => :rpc, :request_use => :encoded, - :response_style => :rpc, :response_use => :encoded, - :faults => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = RAAMappingRegistry::EncodedRegistry - self.literal_mapping_registry = RAAMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedMappingRegistry.rb deleted file mode 100644 index a48a51dc..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/expectedMappingRegistry.rb +++ /dev/null @@ -1,121 +0,0 @@ -require 'RAA.rb' -require 'soap/mapping' - -module WSDL; module RAA - -module RAAMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsC_002 = "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.2/" - - EncodedRegistry.register( - :class => WSDL::RAA::Category, - :schema_type => XSD::QName.new(NsC_002, "Category"), - :schema_element => [ - ["major", ["SOAP::SOAPString", XSD::QName.new(nil, "major")]], - ["minor", ["SOAP::SOAPString", XSD::QName.new(nil, "minor")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::RAA::Product, - :schema_type => XSD::QName.new(NsC_002, "Product"), - :schema_element => [ - ["id", ["SOAP::SOAPInt", XSD::QName.new(nil, "id")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]], - ["short_description", ["SOAP::SOAPString", XSD::QName.new(nil, "short_description")]], - ["version", ["SOAP::SOAPString", XSD::QName.new(nil, "version")]], - ["status", ["SOAP::SOAPString", XSD::QName.new(nil, "status")]], - ["homepage", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "homepage")]], - ["download", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "download")]], - ["license", ["SOAP::SOAPString", XSD::QName.new(nil, "license")]], - ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::RAA::Owner, - :schema_type => XSD::QName.new(NsC_002, "Owner"), - :schema_element => [ - ["id", ["SOAP::SOAPInt", XSD::QName.new(nil, "id")]], - ["email", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "email")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]] - ] - ) - - EncodedRegistry.register( - :class => WSDL::RAA::Info, - :schema_type => XSD::QName.new(NsC_002, "Info"), - :schema_element => [ - ["category", ["WSDL::RAA::Category", XSD::QName.new(nil, "category")]], - ["product", ["WSDL::RAA::Product", XSD::QName.new(nil, "product")]], - ["owner", ["WSDL::RAA::Owner", XSD::QName.new(nil, "owner")]], - ["created", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "created")]], - ["updated", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "updated")]] - ] - ) - - EncodedRegistry.set( - WSDL::RAA::InfoArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::EncodedRegistry::TypedArrayFactory, - { :type => XSD::QName.new(NsC_002, "Info") } - ) - - EncodedRegistry.set( - WSDL::RAA::StringArray, - ::SOAP::SOAPArray, - ::SOAP::Mapping::EncodedRegistry::TypedArrayFactory, - { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") } - ) - - LiteralRegistry.register( - :class => WSDL::RAA::Category, - :schema_type => XSD::QName.new(NsC_002, "Category"), - :schema_element => [ - ["major", ["SOAP::SOAPString", XSD::QName.new(nil, "major")]], - ["minor", ["SOAP::SOAPString", XSD::QName.new(nil, "minor")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::RAA::Product, - :schema_type => XSD::QName.new(NsC_002, "Product"), - :schema_element => [ - ["id", ["SOAP::SOAPInt", XSD::QName.new(nil, "id")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]], - ["short_description", ["SOAP::SOAPString", XSD::QName.new(nil, "short_description")]], - ["version", ["SOAP::SOAPString", XSD::QName.new(nil, "version")]], - ["status", ["SOAP::SOAPString", XSD::QName.new(nil, "status")]], - ["homepage", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "homepage")]], - ["download", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "download")]], - ["license", ["SOAP::SOAPString", XSD::QName.new(nil, "license")]], - ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::RAA::Owner, - :schema_type => XSD::QName.new(NsC_002, "Owner"), - :schema_element => [ - ["id", ["SOAP::SOAPInt", XSD::QName.new(nil, "id")]], - ["email", ["SOAP::SOAPAnyURI", XSD::QName.new(nil, "email")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]] - ] - ) - - LiteralRegistry.register( - :class => WSDL::RAA::Info, - :schema_type => XSD::QName.new(NsC_002, "Info"), - :schema_element => [ - ["category", ["WSDL::RAA::Category", XSD::QName.new(nil, "category")]], - ["product", ["WSDL::RAA::Product", XSD::QName.new(nil, "product")]], - ["owner", ["WSDL::RAA::Owner", XSD::QName.new(nil, "owner")]], - ["created", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "created")]], - ["updated", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "updated")]] - ] - ) - -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/raa.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/raa.wsdl deleted file mode 100644 index b478d31a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/raa.wsdl +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/test_raa.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/raa/test_raa.rb deleted file mode 100644 index dd809f0b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/raa/test_raa.rb +++ /dev/null @@ -1,126 +0,0 @@ -require 'test/unit' -require 'soap/wsdlDriver' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL -module RAA - - -class TestRAA < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_stub - setup_server - setup_client - end - - def setup_stub - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("raa.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'RAADriver.rb', 'RAAMappingRegistry.rb', 'RAA.rb') - end - - def setup_server - require pathname('RAAService.rb') - @server = RAABaseServicePortTypeApp.new('RAA server', nil, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - end - - def setup_client - wsdl = File.join(DIR, 'raa.wsdl') - @raa = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @raa.endpoint_url = "http://localhost:#{Port}/" - @raa.wiredump_dev = STDOUT if $DEBUG - @raa.mapping_registry = RAAMappingRegistry::EncodedRegistry - @raa.literal_mapping_registry = RAAMappingRegistry::LiteralRegistry - end - - def teardown - teardown_server if @server - teardown_client if @client - unless $DEBUG - File.unlink(pathname('RAA.rb')) - File.unlink(pathname('RAAMappingRegistry.rb')) - File.unlink(pathname('RAADriver.rb')) - end - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @raa.reset_stream - end - - def test_stubgeneration - compare("expectedClassDef.rb", "RAA.rb") - compare("expectedMappingRegistry.rb", "RAAMappingRegistry.rb") - compare("expectedDriver.rb", "RAADriver.rb") - end - - def test_raa - do_test_raa(@raa) - end - - def test_stub - client = RAABaseServicePortType.new("http://localhost:#{Port}/") - do_test_raa(client) - end - - def do_test_raa(client) - assert_equal(["ruby", "soap4r"], client.getAllListings) - info = client.getInfoFromName("SOAP4R") - assert_equal(Info, info.class) - assert_equal(Category, info.category.class) - assert_equal(Product, info.product.class) - assert_equal(Owner, info.owner.class) - assert_equal("major", info.category.major) - assert_equal("minor", info.category.minor) - assert_equal(123, info.product.id) - assert_equal("SOAP4R", info.product.name) - assert_equal("short description", info.product.short_description) - assert_equal("version", info.product.version) - assert_equal("status", info.product.status) - assert_equal("http://example.com/homepage", info.product.homepage.to_s) - assert_equal("http://example.com/download", info.product.download.to_s) - assert_equal("license", info.product.license) - assert_equal("description", info.product.description) - assert_equal(456, info.owner.id) - assert_equal("mailto:email@example.com", info.owner.email.to_s) - assert_equal("name", info.owner.name) - assert(!info.created.nil?) - assert(!info.updated.nil?) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def pathname(filename) - File.join(DIR, filename) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedDriver.rb deleted file mode 100644 index b9a559a6..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedDriver.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'product.rb' -require 'productMappingRegistry.rb' -require 'soap/rpc/driver' - -module WSDL::Ref - -class Ref_porttype < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:17171/" - - Methods = [ - [ "urn:ref:echo", - "echo", - [ ["in", "parameters", ["::SOAP::SOAPElement", "urn:ref", "Product-Bag"]], - ["out", "parameters", ["::SOAP::SOAPElement", "urn:ref", "Creator"]] ], - { :request_style => :document, :request_use => :literal, - :response_style => :document, :response_use => :literal, - :faults => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = ProductMappingRegistry::EncodedRegistry - self.literal_mapping_registry = ProductMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedProduct.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedProduct.rb deleted file mode 100644 index 54d16e29..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/expectedProduct.rb +++ /dev/null @@ -1,243 +0,0 @@ -require 'xsd/qname' - -module WSDL; module Ref - - -# {urn:ref}Product -# name - SOAP::SOAPString -# rating - SOAP::SOAPString -class Product - attr_accessor :name - attr_accessor :rating - - def initialize(name = nil, rating = nil) - @name = name - @rating = rating - end -end - -# {urn:ref}Comment -# xmlattr_msgid - SOAP::SOAPString -class Comment < ::String - AttrMsgid = XSD::QName.new(nil, "msgid") - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_msgid - __xmlattr[AttrMsgid] - end - - def xmlattr_msgid=(value) - __xmlattr[AttrMsgid] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {urn:ref}_point -# xmlattr_unit - SOAP::SOAPString -class C__point < ::String - AttrUnit = XSD::QName.new(nil, "unit") - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_unit - __xmlattr[AttrUnit] - end - - def xmlattr_unit=(value) - __xmlattr[AttrUnit] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {urn:ref}Document -# xmlattr_ID - SOAP::SOAPString -class Document < ::String - AttrID = XSD::QName.new(nil, "ID") - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_ID - __xmlattr[AttrID] - end - - def xmlattr_ID=(value) - __xmlattr[AttrID] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {urn:ref}DerivedChoice_BaseSimpleContent -# varStringExt - SOAP::SOAPString -# varFloatExt - SOAP::SOAPFloat -# xmlattr_ID - SOAP::SOAPString -# xmlattr_attrStringExt - SOAP::SOAPString -class DerivedChoice_BaseSimpleContent < Document - AttrAttrStringExt = XSD::QName.new(nil, "attrStringExt") - AttrID = XSD::QName.new(nil, "ID") - - attr_accessor :varStringExt - attr_accessor :varFloatExt - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_ID - __xmlattr[AttrID] - end - - def xmlattr_ID=(value) - __xmlattr[AttrID] = value - end - - def xmlattr_attrStringExt - __xmlattr[AttrAttrStringExt] - end - - def xmlattr_attrStringExt=(value) - __xmlattr[AttrAttrStringExt] = value - end - - def initialize(varStringExt = nil, varFloatExt = nil) - @varStringExt = varStringExt - @varFloatExt = varFloatExt - @__xmlattr = {} - end -end - -# {urn:ref}Rating -class Rating < ::String - C_0 = Rating.new("0") - C_1 = Rating.new("+1") - C_1_2 = Rating.new("-1") -end - -# {urn:ref}Product-Bag -# bag - WSDL::Ref::Product -# rating - SOAP::SOAPString -# comment_1 - WSDL::Ref::ProductBag::Comment_1 -# comment_2 - WSDL::Ref::Comment -# m___point - WSDL::Ref::C__point -# xmlattr_version - SOAP::SOAPString -# xmlattr_yesno - SOAP::SOAPString -class ProductBag - AttrVersion = XSD::QName.new("urn:ref", "version") - AttrYesno = XSD::QName.new("urn:ref", "yesno") - - # inner class for member: Comment_1 - # {}Comment_1 - # xmlattr_msgid - SOAP::SOAPString - class Comment_1 < ::String - AttrMsgid = XSD::QName.new(nil, "msgid") - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_msgid - __xmlattr[AttrMsgid] - end - - def xmlattr_msgid=(value) - __xmlattr[AttrMsgid] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end - end - - attr_accessor :bag - attr_accessor :rating - attr_accessor :comment_1 - attr_accessor :comment_2 - - def m___point - @v___point - end - - def m___point=(value) - @v___point = value - end - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_version - __xmlattr[AttrVersion] - end - - def xmlattr_version=(value) - __xmlattr[AttrVersion] = value - end - - def xmlattr_yesno - __xmlattr[AttrYesno] - end - - def xmlattr_yesno=(value) - __xmlattr[AttrYesno] = value - end - - def initialize(bag = [], rating = [], comment_1 = [], comment_2 = [], v___point = nil) - @bag = bag - @rating = rating - @comment_1 = comment_1 - @comment_2 = comment_2 - @v___point = v___point - @__xmlattr = {} - end -end - -# {urn:ref}Creator -# xmlattr_Role - SOAP::SOAPString -class Creator < ::String - AttrRole = XSD::QName.new(nil, "Role") - - def __xmlattr - @__xmlattr ||= {} - end - - def xmlattr_Role - __xmlattr[AttrRole] - end - - def xmlattr_Role=(value) - __xmlattr[AttrRole] = value - end - - def initialize(*arg) - super - @__xmlattr = {} - end -end - -# {urn:ref}yesno -class Yesno < ::String - N = Yesno.new("N") - Y = Yesno.new("Y") -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/product.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/ref/product.wsdl deleted file mode 100644 index b5518495..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/product.wsdl +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/test_ref.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/ref/test_ref.rb deleted file mode 100644 index 60c307de..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/ref/test_ref.rb +++ /dev/null @@ -1,268 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL -module Ref - - -class TestRef < Test::Unit::TestCase - Namespace = 'urn:ref' - - class Server < ::SOAP::RPC::StandaloneServer - Namespace = TestRef::Namespace - - def on_init - add_document_method( - self, - Namespace + ':echo', - 'echo', - XSD::QName.new(Namespace, 'Product-Bag'), - XSD::QName.new(Namespace, 'Creator') - ) - self.literal_mapping_registry = ProductMappingRegistry::LiteralRegistry - end - - def echo(arg) - content = [ - arg.bag[0].name, - arg.bag[0].rating, - arg.bag[1].name, - arg.bag[1].rating, - arg.xmlattr_version, - arg.xmlattr_yesno, - arg.rating[0], - arg.rating[1], - arg.rating[2], - arg.comment_1[0], - arg.comment_1[0].xmlattr_msgid, - arg.comment_1[1], - arg.comment_1[1].xmlattr_msgid, - arg.comment_2[0], - arg.comment_2[0].xmlattr_msgid, - arg.comment_2[1], - arg.comment_2[1].xmlattr_msgid - ] - rv = Creator.new(content.join(" ")) - rv.xmlattr_Role = "role" - rv - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('product.rb')) - File.unlink(pathname('productMappingRegistry.rb')) - File.unlink(pathname('productDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("product.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'product.rb', 'productMappingRegistry.rb', 'productDriver.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def test_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("product.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - compare("expectedProduct.rb", "product.rb") - compare("expectedDriver.rb", "productDriver.rb") - end - - def test_wsdl - wsdl = File.join(DIR, 'product.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - p1 = e("bag") - p1.add(e("name", "foo")) - p1.add(e(q(Namespace, "Rating"), "0")) - p2 = e("bag") - p2.add(e("name", "bar")) - p2.add(e(q(Namespace, "Rating"), "+1")) - version = "version" - yesno = "N" - r1 = e(q(Namespace, "Rating"), "0") - r2 = e(q(Namespace, "Rating"), "+1") - r3 = e(q(Namespace, "Rating"), "-1") - c11 = e("Comment_1", "comment11") - c11.extraattr["msgid"] = "msgid11" - c12 = e("Comment_1", "comment12") - c12.extraattr["msgid"] = "msgid12" - c21 = e("comment-2", "comment21") - c21.extraattr["msgid"] = "msgid21" - c22 = e("comment-2", "comment22") - c22.extraattr["msgid"] = "msgid22" - bag = e(q(Namespace, "Product-Bag")) - bag.add(p1) - bag.add(p2) - bag.add(r1) - bag.add(r2) - bag.add(r3) - bag.add(c11) - bag.add(c12) - bag.add(c21) - bag.add(c22) - bag.extraattr[q(Namespace, "version")] = version - bag.extraattr[q(Namespace, "yesno")] = yesno - ret = @client.echo(bag) - assert_equal( - [ - p1["name"].text, p1["Rating"].text, - p2["name"].text, p2["Rating"].text, - version, yesno, - r1.text, r2.text, r3.text, - c11.text, c11.extraattr["msgid"], - c12.text, c12.extraattr["msgid"], - c21.text, c21.extraattr["msgid"], - c22.text, c22.extraattr["msgid"] - ].join(" "), - ret - ) - assert_equal("role", ret.xmlattr_Role) - end - - def test_wsdl_with_classdef - wsdl = File.join(DIR, 'product.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.literal_mapping_registry = ProductMappingRegistry::LiteralRegistry - @client.wiredump_dev = STDOUT if $DEBUG - p1 = Product.new("foo", Rating::C_0) - p2 = Product.new("bar", Rating::C_1) - version = "version" - yesno = Yesno::Y - r1 = Rating::C_0 - r2 = Rating::C_1 - r3 = Rating::C_1_2 - c11 = ::SOAP::SOAPElement.new("Comment_1", "comment11") - c11.extraattr["msgid"] = "msgid11" - c12 = ::SOAP::SOAPElement.new("Comment_1", "comment12") - c12.extraattr["msgid"] = "msgid12" - c21 = Comment.new("comment21") - c21.xmlattr_msgid = "msgid21" - c22 = Comment.new("comment22") - c22.xmlattr_msgid = "msgid22" - bag = ProductBag.new([p1, p2], [r1, r2, r3], [c11, c12], [c21, c22]) - bag.xmlattr_version = version - bag.xmlattr_yesno = yesno - ret = @client.echo(bag) - assert_equal( - [ - p1.name, p1.rating, - p2.name, p2.rating, - version, yesno, - r1, r2, r3, - c11.text, c11.extraattr["msgid"], - c12.text, c12.extraattr["msgid"], - c21, c21.xmlattr_msgid, - c22, c22.xmlattr_msgid - ].join(" "), - ret - ) - assert_equal("role", ret.xmlattr_Role) - end - - def test_naive - @client = Ref_porttype.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - p1 = Product.new("foo", Rating::C_0) - p2 = Product.new("bar", Rating::C_1) - version = "version" - yesno = Yesno::Y - r1 = Rating::C_0 - r2 = Rating::C_1 - r3 = Rating::C_1_2 - c11 = ::SOAP::SOAPElement.new("Comment_1", "comment11") - c11.extraattr["msgid"] = "msgid11" - c12 = ::SOAP::SOAPElement.new("Comment_1", "comment12") - c12.extraattr["msgid"] = "msgid12" - c21 = Comment.new("comment21") - c21.xmlattr_msgid = "msgid21" - c22 = Comment.new("comment22") - c22.xmlattr_msgid = "msgid22" - pts = C__point.new("123") - bag = ProductBag.new([p1, p2], [r1, r2, r3], [c11, c12], [c21, c22], pts) - bag.xmlattr_version = version - bag.xmlattr_yesno = yesno - ret = @client.echo(bag) - assert_equal( - [ - p1.name, p1.rating, - p2.name, p2.rating, - version, yesno, - r1, r2, r3, - c11.text, c11.extraattr["msgid"], - c12.text, c12.extraattr["msgid"], - c21, c21.xmlattr_msgid, - c22, c22.xmlattr_msgid - ].join(" "), - ret - ) - assert_equal("role", ret.xmlattr_Role) - end - - def e(name, text = nil) - ::SOAP::SOAPElement.new(name, text) - end - - def q(ns, name) - XSD::QName.new(ns, name) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/rpc.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/rpc.wsdl deleted file mode 100644 index 3e0c6ef4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/rpc.wsdl +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test-rpc-lit.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test-rpc-lit.wsdl deleted file mode 100644 index cda94e52..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test-rpc-lit.wsdl +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc.rb deleted file mode 100644 index 8b54a060..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc.rb +++ /dev/null @@ -1,176 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module RPC - - -class TestRPC < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_rpc_method(self, 'echo', 'arg1', 'arg2') - add_rpc_method(self, 'echo_basetype', 'arg1', 'arg2') - add_rpc_method(self, 'echo_err', 'arg1', 'arg2') - self.mapping_registry = Prefix::EchoMappingRegistry::EncodedRegistry - end - - DummyPerson = Struct.new("family-name".intern, :Given_name) - def echo(arg1, arg2) - if arg1.given_name == 'typed' - self.generate_explicit_type = true - else - self.generate_explicit_type = false - end - ret = nil - case arg1.family_name - when 'normal' - arg1.family_name = arg2.family_name - arg1.given_name = arg2.given_name - arg1.age = arg2.age - ret = arg1 - when 'dummy' - ret = DummyPerson.new("family-name", "given_name") - when 'nil' - ret = Prefix::Person.new(nil, nil) - else - raise - end - ret - end - - def echo_basetype(arg1, arg2) - return nil if arg1.nil? and arg2.nil? - raise unless arg1.is_a?(Date) - arg1 - end - - ErrPerson = Struct.new(:Given_name, :no_such_element) - def echo_err(arg1, arg2) - self.generate_explicit_type = false - ErrPerson.new(58, Time.now) - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('echo.rb')) - File.unlink(pathname('echoMappingRegistry.rb')) - File.unlink(pathname('echoDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:rpc", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - if ::Object.constants.include?("Echo") - ::Object.instance_eval { remove_const("Echo") } - end - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("rpc.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.opt['module_path'] = 'Prefix' - gen.run - TestUtil.require(DIR, 'echo.rb', 'echoMappingRegistry.rb', 'echoDriver.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'rpc.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDERR if $DEBUG - - ret = @client.echo(Prefix::Person.new("normal", "typed", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_equal("Hi", ret.family_name) - assert_equal("Na", ret.given_name) - assert_equal(21, ret.age) - - ret = @client.echo(Prefix::Person.new("normal", "untyped", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_equal("Hi", ret.family_name) - assert_equal("Na", ret.given_name) - # XXX WSDLEncodedRegistry should decode untyped element using Schema - assert_equal("21", ret.age) - - ret = @client.echo(Prefix::Person.new("dummy", "typed", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_equal("family-name", ret.family_name) - assert_equal("given_name", ret.given_name) - - ret = @client.echo_err(Prefix::Person.new("Na", "Hi", nil, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", nil, Prefix::Gender::M)) - assert_equal("58", ret.given_name) - end - - def test_stub - @client = Prefix::Echo_port_type.new("http://localhost:#{Port}/") - @client.mapping_registry = Prefix::EchoMappingRegistry::EncodedRegistry - @client.wiredump_dev = STDERR if $DEBUG - - ret = @client.echo(Prefix::Person.new("normal", "typed", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_equal(Prefix::Person, ret.class) - assert_equal("Hi", ret.family_name) - assert_equal("Na", ret.given_name) - assert_equal(21, ret.age) - - ret = @client.echo(Prefix::Person.new("normal", "untyped", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_equal(Prefix::Person, ret.class) - assert_equal("Hi", ret.family_name) - assert_equal("Na", ret.given_name) - assert_equal(21, ret.age) - end - - def test_stub_nil - @client = Prefix::Echo_port_type.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDOUT if $DEBUG - - ret = @client.echo(Prefix::Person.new("nil", "", 12, Prefix::Gender::F), Prefix::Person.new("Hi", "Na", 21, Prefix::Gender::M)) - assert_nil(ret.family_name) - assert_nil(ret.given_name) - assert_nil(ret.age) - # - assert_nil(@client.echo_basetype(nil, nil)) - end - - def test_basetype_stub - @client = Prefix::Echo_port_type.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - - ret = @client.echo_basetype(Time.now, 12345) - assert_equal(Date, ret.class) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc_lit.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc_lit.rb deleted file mode 100644 index fe6cadd1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/rpc/test_rpc_lit.rb +++ /dev/null @@ -1,460 +0,0 @@ -require 'test/unit' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -if defined?(HTTPClient) and defined?(OpenSSL) - -module WSDL; module RPC - - -class TestRPCLIT < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - Namespace = "http://soapbuilders.org/rpc-lit-test" - - def on_init - self.generate_explicit_type = false - self.literal_mapping_registry = RPCLiteralTestDefinitionsMappingRegistry::LiteralRegistry - add_rpc_operation(self, - XSD::QName.new(Namespace, 'echoStringArray'), - nil, - 'echoStringArray', [ - ['in', 'inputStringArray', nil], - ['retval', 'return', nil] - ], - { - :request_style => :rpc, - :request_use => :literal, - :response_style => :rpc, - :response_use => :literal - } - ) - add_rpc_operation(self, - XSD::QName.new(Namespace, 'echoStringArrayInline'), - nil, - 'echoStringArrayInline', [ - ['in', 'inputStringArray', nil], - ['retval', 'return', nil] - ], - { - :request_style => :rpc, - :request_use => :literal, - :response_style => :rpc, - :response_use => :literal - } - ) - add_rpc_operation(self, - XSD::QName.new(Namespace, 'echoNestedStruct'), - nil, - 'echoNestedStruct', [ - ['in', 'inputNestedStruct', nil], - ['retval', 'return', nil] - ], - { - :request_style => :rpc, - :request_use => :literal, - :response_style => :rpc, - :response_use => :literal - } - ) - add_rpc_operation(self, - XSD::QName.new(Namespace, 'echoStructArray'), - nil, - 'echoStructArray', [ - ['in', 'inputStructArray', nil], - ['retval', 'return', nil] - ], - { - :request_style => :rpc, - :request_use => :literal, - :response_style => :rpc, - :response_use => :literal - } - ) - end - - def echoStringArray(strings) - # strings.stringItem => Array - ArrayOfstring[*strings.stringItem] - end - - def echoStringArrayInline(strings) - ArrayOfstringInline[*strings.stringItem] - end - - def echoNestedStruct(struct) - struct - end - - def echoStructArray(ary) - ary - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('RPC-Literal-TestDefinitions.rb')) - File.unlink(pathname('RPC-Literal-TestDefinitionsMappingRegistry.rb')) - File.unlink(pathname('RPC-Literal-TestDefinitionsDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', Server::Namespace, '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("test-rpc-lit.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'RPC-Literal-TestDefinitions.rb', 'RPC-Literal-TestDefinitionsMappingRegistry.rb', 'RPC-Literal-TestDefinitionsDriver.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl_echoStringArray - wsdl = pathname('test-rpc-lit.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - # response contains only 1 part. - result = @client.echoStringArray(ArrayOfstring["a", "b", "c"])[0] - assert_equal(["a", "b", "c"], result.stringItem) - end - - ECHO_STRING_ARRAY_REQUEST = -%q[ - - - - - a - b - c - - - -] - - ECHO_STRING_ARRAY_RESPONSE = -%q[ - - - - - a - b - c - - - -] - - def test_stub_echoStringArray - drv = SoapTestPortTypeRpcLit.new("http://localhost:#{Port}/") - drv.wiredump_dev = str = '' - drv.generate_explicit_type = false - # response contains only 1 part. - result = drv.echoStringArray(ArrayOfstring["a", "b", "c"])[0] - assert_equal(ECHO_STRING_ARRAY_REQUEST, parse_requestxml(str), - [ECHO_STRING_ARRAY_REQUEST, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_STRING_ARRAY_RESPONSE, parse_responsexml(str), - [ECHO_STRING_ARRAY_RESPONSE, parse_responsexml(str)].join("\n\n")) - assert_equal(ArrayOfstring["a", "b", "c"], result) - end - - ECHO_STRING_ARRAY_INLINE_REQUEST = -%q[ - - - - - a - b - c - - - -] - - ECHO_STRING_ARRAY_INLINE_RESPONSE = -%q[ - - - - - a - b - c - - - -] - - def test_stub_echoStringArrayInline - drv = SoapTestPortTypeRpcLit.new("http://localhost:#{Port}/") - drv.wiredump_dev = str = '' - drv.generate_explicit_type = false - # response contains only 1 part. - result = drv.echoStringArrayInline(ArrayOfstringInline["a", "b", "c"])[0] - assert_equal(ArrayOfstring["a", "b", "c"], result) - assert_equal(ECHO_STRING_ARRAY_INLINE_REQUEST, parse_requestxml(str), - [ECHO_STRING_ARRAY_INLINE_REQUEST, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_STRING_ARRAY_INLINE_RESPONSE, parse_responsexml(str)) - end - - ECHO_NESTED_STRUCT_REQUEST = -%q[ - - - - - str - 1 - +1 - - str - 1 - +1 - - - - -] - - ECHO_NESTED_STRUCT_RESPONSE = -%q[ - - - - - str - 1 - +1 - - str - 1 - +1 - - - - -] - - def test_wsdl_echoNestedStruct - wsdl = pathname('test-rpc-lit.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - @client.generate_explicit_type = false - # response contains only 1 part. - result = @client.echoNestedStruct(SOAPStructStruct.new("str", 1, 1.0, SOAPStruct.new("str", 1, 1.0)))[0] - assert_equal('str', result.varString) - assert_equal('1', result.varInt) - assert_equal('+1', result.varFloat) - assert_equal('str', result.structItem.varString) - assert_equal('1', result.structItem.varInt) - assert_equal('+1', result.structItem.varFloat) - assert_equal(ECHO_NESTED_STRUCT_REQUEST, parse_requestxml(str), - [ECHO_NESTED_STRUCT_REQUEST, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_NESTED_STRUCT_RESPONSE, parse_responsexml(str)) - end - - ECHO_NESTED_STRUCT_REQUEST_NIL = -%q[ - - - - - str - +1 - - str - - +1 - - - - -] - - ECHO_NESTED_STRUCT_RESPONSE_NIL = -%q[ - - - - - str - +1 - - str - +1 - - - - -] - def test_wsdl_echoNestedStruct_nil - wsdl = pathname('test-rpc-lit.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - @client.generate_explicit_type = false - result = @client.echoNestedStruct(SOAPStructStruct.new("str", nil, 1.0, SOAPStruct.new("str", ::SOAP::SOAPNil.new, 1.0)))[0] - assert(!result.respond_to?(:varInt)) - assert(result.respond_to?(:varString)) - assert_equal(ECHO_NESTED_STRUCT_REQUEST_NIL, parse_requestxml(str), - [ECHO_NESTED_STRUCT_REQUEST_NIL, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_NESTED_STRUCT_RESPONSE_NIL, parse_responsexml(str)) - end - - def test_stub_echoNestedStruct - drv = SoapTestPortTypeRpcLit.new("http://localhost:#{Port}/") - drv.wiredump_dev = str = '' - drv.generate_explicit_type = false - # response contains only 1 part. - result = drv.echoNestedStruct(SOAPStructStruct.new("str", 1, 1.0, SOAPStruct.new("str", 1, 1.0)))[0] - assert_equal('str', result.varString) - assert_equal(1, result.varInt) - assert_equal(1.0, result.varFloat) - assert_equal('str', result.structItem.varString) - assert_equal(1, result.structItem.varInt) - assert_equal(1.0, result.structItem.varFloat) - assert_equal(ECHO_NESTED_STRUCT_REQUEST, parse_requestxml(str)) - assert_equal(ECHO_NESTED_STRUCT_RESPONSE, parse_responsexml(str)) - end - - def test_stub_echoNestedStruct_nil - drv = SoapTestPortTypeRpcLit.new("http://localhost:#{Port}/") - drv.wiredump_dev = str = '' - drv.generate_explicit_type = false - # response contains only 1 part. - result = drv.echoNestedStruct(SOAPStructStruct.new("str", nil, 1.0, SOAPStruct.new("str", ::SOAP::SOAPNil.new, 1.0)))[0] - assert(result.respond_to?(:varInt)) - assert(result.respond_to?(:varString)) - assert_equal(ECHO_NESTED_STRUCT_REQUEST_NIL, parse_requestxml(str), - [ECHO_NESTED_STRUCT_REQUEST_NIL, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_NESTED_STRUCT_RESPONSE_NIL, parse_responsexml(str)) - end - - ECHO_STRUCT_ARRAY_REQUEST = -%q[ - - - - - - str - 2 - +2.1 - - - str - 2 - +2.1 - - - - -] - - ECHO_STRUCT_ARRAY_RESPONSE = -%q[ - - - - - - str - 2 - +2.1 - - - str - 2 - +2.1 - - - - -] - - def test_wsdl_echoStructArray - wsdl = pathname('test-rpc-lit.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - @client.generate_explicit_type = false - # response contains only 1 part. - e = SOAPStruct.new("str", 2, 2.1) - result = @client.echoStructArray(ArrayOfSOAPStruct[e, e]) - assert_equal(ECHO_STRUCT_ARRAY_REQUEST, parse_requestxml(str), - [ECHO_STRUCT_ARRAY_REQUEST, parse_requestxml(str)].join("\n\n")) - assert_equal(ECHO_STRUCT_ARRAY_RESPONSE, parse_responsexml(str)) - end - - def test_stub_echoStructArray - drv = SoapTestPortTypeRpcLit.new("http://localhost:#{Port}/") - drv.wiredump_dev = str = '' - drv.generate_explicit_type = false - # response contains only 1 part. - e = SOAPStruct.new("str", 2, 2.1) - result = drv.echoStructArray(ArrayOfSOAPStruct[e, e]) - assert_equal(ECHO_STRUCT_ARRAY_REQUEST, parse_requestxml(str)) - assert_equal(ECHO_STRUCT_ARRAY_RESPONSE, parse_responsexml(str)) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end - - def parse_responsexml(str) - str.split(/\r?\n\r?\n/)[6] - end -end - - -end; end - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/simplecontent.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/simplecontent.wsdl deleted file mode 100644 index 79e1f4de..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/simplecontent.wsdl +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/test_simplecontent.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/test_simplecontent.rb deleted file mode 100644 index d587286f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simplecontent/test_simplecontent.rb +++ /dev/null @@ -1,102 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module SimpleContent - - -class TestSimpleContent < Test::Unit::TestCase - NS = 'urn:www.example.org:simpleContent' - class Server < ::SOAP::RPC::StandaloneServer - def on_init - SimpleContentService::Methods.each do |definition| - add_document_operation(self, *definition) - end - self.literal_mapping_registry = - SimpleContentMappingRegistry::LiteralRegistry - end - - def echo(address) - address - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('simpleContent.rb')) - File.unlink(pathname('simpleContentMappingRegistry.rb')) - File.unlink(pathname('simpleContentDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:www.example.org:simpleContent", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("simplecontent.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.opt['module_path'] = 'WSDL::SimpleContent' - gen.run - TestUtil.require(DIR, 'simpleContent.rb', 'simpleContentMappingRegistry.rb', 'simpleContentDriver.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_stub - @client = SimpleContentService.new("http://localhost:#{Port}/") - @client.wiredump_dev = STDERR if $DEBUG - - list = PhoneList.new - list.xmlattr_default = "default" - phone1 = PhoneNumber.new("12<>345") - phone1.xmlattr_type = PhoneNumberType::Fax - phone2 = PhoneNumber.new("234<>56") - phone2.xmlattr_type = PhoneNumberType::Home - list.phone << phone1 << phone2 - address = Address.new(list, "addr") - ret = @client.echo(address) - - assert_equal(address.blah, ret.blah) - assert_equal(2, ret.list.phone.size) - assert_equal("12<>345", ret.list.phone[0]) - assert_equal(PhoneNumberType::Fax, ret.list.phone[0].xmlattr_type) - assert_equal("234<>56", ret.list.phone[1]) - assert_equal(PhoneNumberType::Home, ret.list.phone[1].xmlattr_type) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedClient.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedClient.rb deleted file mode 100644 index 94a77396..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedClient.rb +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env ruby -require 'echo_versionDriver.rb' - -endpoint_url = ARGV.shift -obj = Echo_version_port_type.new(endpoint_url) - -# run ruby with -d to see SOAP wiredumps. -obj.wiredump_dev = STDERR if $DEBUG - -# SYNOPSIS -# echo_version(version) -# -# ARGS -# version Version - {urn:example.com:simpletype-rpc-type}version -# -# RETURNS -# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct -# -version = nil -puts obj.echo_version(version) - -# SYNOPSIS -# echo_version_r(version_struct) -# -# ARGS -# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct -# -# RETURNS -# version Version - {urn:example.com:simpletype-rpc-type}version -# -version_struct = nil -puts obj.echo_version_r(version_struct) diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedDriver.rb deleted file mode 100644 index 6491ba83..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedDriver.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'echo_version.rb' -require 'echo_versionMappingRegistry.rb' -require 'soap/rpc/driver' - -class Echo_version_port_type < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:10080" - NsSimpletypeRpc = "urn:example.com:simpletype-rpc" - - 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 => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry - self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedEchoVersion.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedEchoVersion.rb deleted file mode 100644 index 8e606d3a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedEchoVersion.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'xsd/qname' - -# {urn:example.com:simpletype-rpc-type}version_struct -# version - Version -# msg - SOAP::SOAPString -class Version_struct - attr_accessor :version - attr_accessor :msg - - def initialize(version = nil, msg = nil) - @version = version - @msg = msg - end -end - -# {urn:example.com:simpletype-rpc-type}version -class Version < ::String - C_16 = Version.new("1.6") - C_18 = Version.new("1.8") - C_19 = Version.new("1.9") -end - -# {urn:example.com:simpletype-rpc-type}stateType -class StateType < ::String - StateType = StateType.new("stateType") -end - -# {urn:example.com:simpletype-rpc-type}zipIntType -class ZipIntType < ::String - C_123 = ZipIntType.new("123") -end - -# {urn:example.com:simpletype-rpc-type}zipUnion -# any of tns:stateType tns:zipIntType -class ZipUnion < ::String -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb deleted file mode 100644 index 8e4abb67..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'echo_version.rb' -require 'soap/mapping' - -module Echo_versionMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsSimpletypeRpcType = "urn:example.com:simpletype-rpc-type" - - EncodedRegistry.register( - :class => Version_struct, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version_struct"), - :schema_element => [ - ["version", ["Version", XSD::QName.new(nil, "version")]], - ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]] - ] - ) - - EncodedRegistry.register( - :class => Version, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version") - ) - - EncodedRegistry.register( - :class => StateType, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "stateType") - ) - - EncodedRegistry.register( - :class => ZipIntType, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "zipIntType") - ) - - LiteralRegistry.register( - :class => Version_struct, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version_struct"), - :schema_element => [ - ["version", ["Version", XSD::QName.new(nil, "version")]], - ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]] - ] - ) - - LiteralRegistry.register( - :class => Version, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version") - ) - - LiteralRegistry.register( - :class => StateType, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "stateType") - ) - - LiteralRegistry.register( - :class => ZipIntType, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "zipIntType") - ) - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedServant.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedServant.rb deleted file mode 100644 index 0ad4892a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedServant.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'echo_version.rb' - -class Echo_version_port_type - # SYNOPSIS - # echo_version(version) - # - # ARGS - # version Version - {urn:example.com:simpletype-rpc-type}version - # - # RETURNS - # version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct - # - def echo_version(version) - p [version] - raise NotImplementedError.new - end - - # SYNOPSIS - # echo_version_r(version_struct) - # - # ARGS - # version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct - # - # RETURNS - # version Version - {urn:example.com:simpletype-rpc-type}version - # - def echo_version_r(version_struct) - p [version_struct] - raise NotImplementedError.new - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedService.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedService.rb deleted file mode 100644 index ba3add58..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/expectedService.rb +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env ruby -require 'echo_versionServant.rb' -require 'echo_versionMappingRegistry.rb' -require 'soap/rpc/standaloneServer' - -class Echo_version_port_type - NsSimpletypeRpc = "urn:example.com:simpletype-rpc" - - 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 - -class Echo_version_port_typeApp < ::SOAP::RPC::StandaloneServer - def initialize(*arg) - super(*arg) - servant = Echo_version_port_type.new - Echo_version_port_type::Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - @router.add_document_operation(servant, *definitions) - else - @router.add_rpc_operation(servant, *definitions) - end - end - self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry - self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry - end -end - -if $0 == __FILE__ - # Change listen port. - server = Echo_version_port_typeApp.new('app', nil, '0.0.0.0', 10080) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/rpc.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/rpc.wsdl deleted file mode 100644 index 59523419..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/rpc.wsdl +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/test_rpc.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/test_rpc.rb deleted file mode 100644 index d913642a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/rpc/test_rpc.rb +++ /dev/null @@ -1,52 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'testutil.rb') - - -module WSDL; module SimpleType - - -class TestRPC < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - def pathname(filename) - File.join(DIR, filename) - end - - def test_rpc - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("rpc.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['client_skelton'] = nil - gen.opt['servant_skelton'] = nil - gen.opt['standalone_server_stub'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - compare("expectedEchoVersion.rb", "echo_version.rb") - compare("expectedMappingRegistry.rb", "echo_versionMappingRegistry.rb") - compare("expectedDriver.rb", "echo_versionDriver.rb") - compare("expectedService.rb", "echo_version_service.rb") - compare("expectedClient.rb", "echo_version_serviceClient.rb") - compare("expectedServant.rb", "echo_versionServant.rb") - - File.unlink(pathname("echo_version.rb")) - File.unlink(pathname("echo_versionMappingRegistry.rb")) - File.unlink(pathname("echo_versionDriver.rb")) - File.unlink(pathname("echo_version_service.rb")) - File.unlink(pathname("echo_version_serviceClient.rb")) - File.unlink(pathname("echo_versionServant.rb")) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/simpletype.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/simpletype.wsdl deleted file mode 100644 index c497ca17..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/simpletype.wsdl +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/test_simpletype.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/test_simpletype.rb deleted file mode 100644 index 578f4cbf..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/simpletype/test_simpletype.rb +++ /dev/null @@ -1,92 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL -module SimpleType - - -class TestSimpleType < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_document_method(self, 'urn:example.com:simpletype:ping', 'ping', - XSD::QName.new('urn:example.com:simpletype', 'ruby'), - XSD::QName.new('http://www.w3.org/2001/XMLSchema', 'string')) - add_document_method(self, 'urn:example.com:simpletype:ping_id', 'ping_id', - XSD::QName.new('urn:example.com:simpletype', 'myid'), - XSD::QName.new('urn:example.com:simpletype', 'myid')) - end - - def ping(ruby) - version = ruby["myversion"] - date = ruby["date"] - "#{version} (#{date})" - end - - def ping_id(id) - id - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new('Test', "urn:example.com:simpletype", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_client - wsdl = File.join(DIR, 'simpletype.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.generate_explicit_type = false - @client.wiredump_dev = STDOUT if $DEBUG - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def teardown_client - @client.reset_stream - end - - def test_ping - ret = @client.ping({:myversion => "1.9", :date => "2004-01-01T00:00:00Z"}) - assert_equal("1.9 (2004-01-01T00:00:00Z)", ret) - end - - def test_ping_id - ret = @client.ping_id("012345678901234567") - assert_equal("012345678901234567", ret) - # length - assert_raise(XSD::ValueSpaceError) do - @client.ping_id("0123456789012345678") - end - # pattern - assert_raise(XSD::ValueSpaceError) do - @client.ping_id("01234567890123456;") - end - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/soapbodyparts.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/soapbodyparts.wsdl deleted file mode 100644 index 63e950ab..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/soapbodyparts.wsdl +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/test_soapbodyparts.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/test_soapbodyparts.rb deleted file mode 100644 index 9152ced4..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/test_soapbodyparts.rb +++ /dev/null @@ -1,79 +0,0 @@ -require 'test/unit' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' - - -module WSDL -module SOAP - - -class TestSOAPBodyParts < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_method(self, 'foo', 'p1', 'p2', 'p3') - add_method(self, 'bar', 'p1', 'p2', 'p3') - add_method(self, 'baz', 'p1', 'p2', 'p3') - end - - def foo(p1, p2, p3) - [p1, p2, p3] - end - - alias bar foo - - def baz(p1, p2, p3) - [p3, p2, p1] - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_client - end - - def setup_server - @server = Server.new('Test', "urn:www.example.com:soapbodyparts:v1", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @t = Thread.new { - Thread.current.abort_on_exception = true - @server.start - } - end - - def setup_client - wsdl = File.join(DIR, 'soapbodyparts.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDERR if $DEBUG - end - - def teardown - teardown_server if @server - teardown_client if @client - end - - def teardown_server - @server.shutdown - @t.kill - @t.join - end - - def teardown_client - @client.reset_stream - end - - def test_soapbodyparts - assert_equal(["1", "2", "3"], @client.foo("1", "2", "3")) - assert_equal(["3", "2", "1"], @client.foo("3", "2", "1")) - assert_equal(["1", "2", "3"], @client.bar("1", "2", "3")) - assert_equal(["3", "2", "1"], @client.baz("1", "2", "3")) - end -end - - -end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb deleted file mode 100644 index 1407c71f..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'xsd/qname' - -# {urn:example.com:simpletype-rpc-type}version_struct -# version - Version -# msg - SOAP::SOAPString -class Version_struct - attr_accessor :version - attr_accessor :msg - - def initialize(version = nil, msg = nil) - @version = version - @msg = msg - end -end - -# {urn:example.com:simpletype-rpc-type}version -class Version < ::String - C_16 = Version.new("1.6") - C_18 = Version.new("1.8") - C_19 = Version.new("1.9") -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClient.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClient.rb deleted file mode 100644 index 94a77396..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedClient.rb +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env ruby -require 'echo_versionDriver.rb' - -endpoint_url = ARGV.shift -obj = Echo_version_port_type.new(endpoint_url) - -# run ruby with -d to see SOAP wiredumps. -obj.wiredump_dev = STDERR if $DEBUG - -# SYNOPSIS -# echo_version(version) -# -# ARGS -# version Version - {urn:example.com:simpletype-rpc-type}version -# -# RETURNS -# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct -# -version = nil -puts obj.echo_version(version) - -# SYNOPSIS -# echo_version_r(version_struct) -# -# ARGS -# version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct -# -# RETURNS -# version Version - {urn:example.com:simpletype-rpc-type}version -# -version_struct = nil -puts obj.echo_version_r(version_struct) diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedDriver.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedDriver.rb deleted file mode 100644 index 6491ba83..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedDriver.rb +++ /dev/null @@ -1,57 +0,0 @@ -require 'echo_version.rb' -require 'echo_versionMappingRegistry.rb' -require 'soap/rpc/driver' - -class Echo_version_port_type < ::SOAP::RPC::Driver - DefaultEndpointUrl = "http://localhost:10080" - NsSimpletypeRpc = "urn:example.com:simpletype-rpc" - - 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 => {} } - ] - ] - - def initialize(endpoint_url = nil) - endpoint_url ||= DefaultEndpointUrl - super(endpoint_url, nil) - self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry - self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry - init_methods - end - -private - - def init_methods - Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - add_document_operation(*definitions) - else - add_rpc_operation(*definitions) - qname = definitions[0] - name = definitions[2] - if qname.name != name and qname.name.capitalize == name.capitalize - ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| - __send__(name, *arg) - end - end - end - end - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb deleted file mode 100644 index 530800cf..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'echo_version.rb' -require 'soap/mapping' - -module Echo_versionMappingRegistry - EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new - LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new - NsSimpletypeRpcType = "urn:example.com:simpletype-rpc-type" - - EncodedRegistry.register( - :class => Version_struct, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version_struct"), - :schema_element => [ - ["version", ["Version", XSD::QName.new(nil, "version")]], - ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]] - ] - ) - - EncodedRegistry.register( - :class => Version, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version") - ) - - LiteralRegistry.register( - :class => Version_struct, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version_struct"), - :schema_element => [ - ["version", ["Version", XSD::QName.new(nil, "version")]], - ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]] - ] - ) - - LiteralRegistry.register( - :class => Version, - :schema_type => XSD::QName.new(NsSimpletypeRpcType, "version") - ) -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedServant.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedServant.rb deleted file mode 100644 index 0ad4892a..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedServant.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'echo_version.rb' - -class Echo_version_port_type - # SYNOPSIS - # echo_version(version) - # - # ARGS - # version Version - {urn:example.com:simpletype-rpc-type}version - # - # RETURNS - # version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct - # - def echo_version(version) - p [version] - raise NotImplementedError.new - end - - # SYNOPSIS - # echo_version_r(version_struct) - # - # ARGS - # version_struct Version_struct - {urn:example.com:simpletype-rpc-type}version_struct - # - # RETURNS - # version Version - {urn:example.com:simpletype-rpc-type}version - # - def echo_version_r(version_struct) - p [version_struct] - raise NotImplementedError.new - end -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.cgi b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.cgi deleted file mode 100644 index e8d761e2..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.cgi +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env ruby -require 'echo_versionServant.rb' -require 'echo_versionMappingRegistry.rb' -require 'soap/rpc/cgistub' - -class Echo_version_port_type - NsSimpletypeRpc = "urn:example.com:simpletype-rpc" - - 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 - -class Echo_version_port_typeApp < ::SOAP::RPC::CGIStub - def initialize(*arg) - super(*arg) - servant = Echo_version_port_type.new - Echo_version_port_type::Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - @router.add_document_operation(servant, *definitions) - else - @router.add_rpc_operation(servant, *definitions) - end - end - self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry - self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry - self.level = Logger::Severity::ERROR - end -end -Echo_version_port_typeApp.new('app', nil).start diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.rb deleted file mode 100644 index ba3add58..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/expectedService.rb +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env ruby -require 'echo_versionServant.rb' -require 'echo_versionMappingRegistry.rb' -require 'soap/rpc/standaloneServer' - -class Echo_version_port_type - NsSimpletypeRpc = "urn:example.com:simpletype-rpc" - - 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 - -class Echo_version_port_typeApp < ::SOAP::RPC::StandaloneServer - def initialize(*arg) - super(*arg) - servant = Echo_version_port_type.new - Echo_version_port_type::Methods.each do |definitions| - opt = definitions.last - if opt[:request_style] == :document - @router.add_document_operation(servant, *definitions) - else - @router.add_rpc_operation(servant, *definitions) - end - end - self.mapping_registry = Echo_versionMappingRegistry::EncodedRegistry - self.literal_mapping_registry = Echo_versionMappingRegistry::LiteralRegistry - end -end - -if $0 == __FILE__ - # Change listen port. - server = Echo_version_port_typeApp.new('app', nil, '0.0.0.0', 10080) - trap(:INT) do - server.shutdown - end - server.start -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/rpc.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/rpc.wsdl deleted file mode 100644 index 91f71a88..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/rpc.wsdl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb deleted file mode 100644 index 4fb193d3..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb +++ /dev/null @@ -1,37 +0,0 @@ -require 'xsd/qname' - -# {urn:mysample}question -# something - SOAP::SOAPString -class Question - attr_accessor :something - - def initialize(something = nil) - @something = something - end -end - -# {urn:mysample}section -# sectionID - SOAP::SOAPInt -# name - SOAP::SOAPString -# description - SOAP::SOAPString -# index - SOAP::SOAPInt -# firstQuestion - Question -class Section - attr_accessor :sectionID - attr_accessor :name - attr_accessor :description - attr_accessor :index - attr_accessor :firstQuestion - - def initialize(sectionID = nil, name = nil, description = nil, index = nil, firstQuestion = nil) - @sectionID = sectionID - @name = name - @description = description - @index = index - @firstQuestion = firstQuestion - end -end - -# {urn:mysample}sectionArray -class SectionArray < ::Array -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/section.xsd b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/section.xsd deleted file mode 100644 index aee6557b..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/section.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/test_section.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/test_section.rb deleted file mode 100644 index 2c04c858..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/section/test_section.rb +++ /dev/null @@ -1,53 +0,0 @@ -require 'test/unit' -require 'soap/marshal' -require 'rbconfig' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', '..', 'testutil.rb') - - -module WSDL; module SOAP - - -class TestSection < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - RUBY = Config::CONFIG['RUBY_INSTALL_NAME'] - - def setup - system("cd #{DIR} && #{RUBY} #{pathname("../../../../../bin/xsd2ruby.rb")} --xsd #{pathname("section.xsd")} --classdef --force --quiet") - end - - def teardown - File.unlink(pathname("mysample.rb")) unless $DEBUG - end - - def test_classdef - compare("expectedClassdef.rb", "mysample.rb") - end - - def test_marshal - # avoid name crash ( => an Item when a class Item is defined) - if ::Object.constants.include?("Item") - ::Object.instance_eval { remove_const("Item") } - end - TestUtil.require(DIR, 'mysample.rb') - s1 = Section.new(1, "section1", "section 1", 1001, Question.new("q1")) - s2 = Section.new(2, "section2", "section 2", 1002, Question.new("q2")) - org = SectionArray[s1, s2] - obj = ::SOAP::Marshal.unmarshal(::SOAP::Marshal.marshal(org)) - assert_equal(SectionArray, obj.class) - assert_equal(Section, obj[0].class) - assert_equal(Question, obj[0].firstQuestion.class) - end - -private - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl deleted file mode 100644 index 63ffb766..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb deleted file mode 100644 index 597f7aed..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb +++ /dev/null @@ -1,83 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', '..', 'testutil.rb') - - -module WSDL; module SOAP; module T_WSDL2Ruby - - -class TestSOAPENC < Test::Unit::TestCase - class Server < ::SOAP::RPC::StandaloneServer - def on_init - add_rpc_method(self, 'echo_version', 'version') - end - - def echo_version(version) - Version_struct.new(version, "hello") - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_classdef - setup_server - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('echo.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:example.com:soapenc", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - if ::Object.constants.include?("Version_struct") - ::Object.instance_eval { remove_const("Version_struct") } - end - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("soapenc.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'echo.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - - def test_wsdl - wsdl = File.join(DIR, 'soapenc.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = STDOUT if $DEBUG - ret = @client.echo_version(T_version::C_19) - assert_equal(T_version::C_19, ret.version) - assert_equal("hello", ret.msg) - end -end - - -end; end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb deleted file mode 100644 index ed7239bb..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'testutil.rb') - - -module WSDL; module SOAP - - -class TestWSDL2Ruby < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def setup - Dir.chdir(DIR) do - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("rpc.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['client_skelton'] = nil - gen.opt['servant_skelton'] = nil - gen.opt['cgi_stub'] = nil - gen.opt['standalone_server_stub'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - TestUtil.silent do - gen.run - end - end - end - - def teardown - # leave generated file for debug. - end - - def test_rpc - compare("expectedServant.rb", "echo_versionServant.rb") - compare("expectedClassdef.rb", "echo_version.rb") - compare("expectedService.rb", "echo_version_service.rb") - compare("expectedService.cgi", "echo_version_service.cgi") - compare("expectedMappingRegistry.rb", "echo_versionMappingRegistry.rb") - compare("expectedDriver.rb", "echo_versionDriver.rb") - compare("expectedClient.rb", "echo_version_serviceClient.rb") - - File.unlink(pathname("echo_versionServant.rb")) - File.unlink(pathname("echo_version.rb")) - File.unlink(pathname("echo_version_service.rb")) - File.unlink(pathname("echo_version_service.cgi")) - File.unlink(pathname("echo_versionMappingRegistry.rb")) - File.unlink(pathname("echo_versionDriver.rb")) - File.unlink(pathname("echo_version_serviceClient.rb")) - end - -private - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def loadfile(file) - File.open(pathname(file)) { |f| f.read } - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/soaptype.wsdl b/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/soaptype.wsdl deleted file mode 100644 index f07ae118..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/soaptype.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/test_soaptype.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/test_soaptype.rb deleted file mode 100644 index 87ec093d..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/soaptype/test_soaptype.rb +++ /dev/null @@ -1,178 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/wsdl2ruby' -require 'soap/rpc/standaloneServer' -require 'soap/wsdlDriver' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module WSDL; module RPC - - -class TestSOAPTYPE < Test::Unit::TestCase - include ::SOAP - - class Server < ::SOAP::RPC::StandaloneServer - include ::SOAP - - def on_init - #self.generate_explicit_type = false - add_rpc_method(self, 'echo_soaptype', 'arg') - end - - def echo_soaptype(arg) - res = Wrapper.new - res.short = SOAPShort.new(arg.short) - res.long = SOAPLong.new(arg.long) - res.double = SOAPFloat.new(arg.double) - res - end - end - - DIR = File.dirname(File.expand_path(__FILE__)) - - Port = 17171 - - def setup - setup_server - setup_classdef - @client = nil - end - - def teardown - teardown_server if @server - unless $DEBUG - File.unlink(pathname('echo.rb')) - File.unlink(pathname('echoMappingRegistry.rb')) - File.unlink(pathname('echoDriver.rb')) - end - @client.reset_stream if @client - end - - def setup_server - @server = Server.new('Test', "urn:soaptype", '0.0.0.0', Port) - @server.level = Logger::Severity::ERROR - @server_thread = TestUtil.start_server_thread(@server) - end - - def setup_classdef - gen = WSDL::SOAP::WSDL2Ruby.new - gen.location = pathname("soaptype.wsdl") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['driver'] = nil - gen.opt['force'] = true - gen.opt['module_path'] = self.class.to_s.sub(/::[^:]+$/, '') - gen.run - TestUtil.require(DIR, 'echo.rb', 'echoMappingRegistry.rb', 'echoDriver.rb') - end - - def teardown_server - @server.shutdown - @server_thread.kill - @server_thread.join - end - - def pathname(filename) - File.join(DIR, filename) - end - -SOAPTYPE_WSDL_XML = %q[ - - - - - 123 - 456 - +789 - - - -] - -SOAPTYPE_NATIVE_XML = %q[ - - - - - 123 - 456 - +789 - - - -] - - def test_wsdl - wsdl = File.join(DIR, 'soaptype.wsdl') - @client = ::SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver - @client.endpoint_url = "http://localhost:#{Port}/" - @client.wiredump_dev = str = '' - - arg = Wrapper.new - arg.short = 123 - arg.long = 456 - arg.double = 789 - res = @client.echo_soaptype(arg) - - assert_equal(123, res.short) - assert_equal(456, res.long) - assert_equal(789.0, res.double) - - assert_equal(SOAPTYPE_WSDL_XML, parse_requestxml(str)) - end - - def test_stub - @client = WSDL::RPC::Echo_port_type.new("http://localhost:#{Port}/") - @client.wiredump_dev = str = '' - - arg = WSDL::RPC::Wrapper.new - arg.short = 123 - arg.long = 456 - arg.double = 789 - res = @client.echo_soaptype(arg) - - assert_equal(123, res.short) - assert_equal(456, res.long) - assert_equal(789.0, res.double) - - assert_equal(SOAPTYPE_WSDL_XML, parse_requestxml(str)) - end - - def test_native - @client = ::SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'urn:soaptype') - @client.endpoint_url = "http://localhost:#{Port}/" - @client.add_method('echo_soaptype', 'arg') - @client.wiredump_dev = str = '' - @client.mapping_registry = WSDL::RPC::EchoMappingRegistry::EncodedRegistry - @client.literal_mapping_registry = WSDL::RPC::EchoMappingRegistry::LiteralRegistry - - arg = ::Struct.new(:short, :long, :double).new - arg.short = SOAPShort.new(123) - arg.long = SOAPLong.new(456) - arg.double = SOAPDouble.new(789) - res = @client.echo_soaptype(arg) - - assert_equal(123, res.short) - assert_equal(456, res.long) - assert_equal(789.0, res.double) - - assert_equal(SOAPTYPE_NATIVE_XML, parse_requestxml(str)) - end - - def parse_requestxml(str) - str.split(/\r?\n\r?\n/)[3] - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/test_emptycomplextype.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/test_emptycomplextype.rb deleted file mode 100644 index 71d1b864..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/test_emptycomplextype.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' - - -module WSDL - - -class TestWSDL < Test::Unit::TestCase - def setup - @file = File.join(File.dirname(File.expand_path(__FILE__)), 'emptycomplextype.wsdl') - end - - def test_wsdl - @wsdl = WSDL::Parser.new.parse(File.open(@file) { |f| f.read }) - assert(/\{urn:jp.gr.jin.rrr.example.emptycomplextype\}emptycomplextype/ =~ @wsdl.inspect) - end -end - - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/test_fault.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/test_fault.rb deleted file mode 100644 index ba584300..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/test_fault.rb +++ /dev/null @@ -1,50 +0,0 @@ -require 'test/unit' -require 'soap/processor' -require 'soap/mapping' -require 'soap/rpc/element' -require 'wsdl/parser' - - -module WSDL - - -class TestFault < Test::Unit::TestCase - def setup - @xml =<<__EOX__ - - - - - Server - faultstring - faultactor - - type - - - - 5 - - -__EOX__ - end - - def test_by_wsdl - rpc_decode_typemap = WSDL::Definitions.soap_rpc_complextypes - opt = {} - opt[:default_encodingstyle] = ::SOAP::EncodingNamespace - header, body = ::SOAP::Processor.unmarshal(@xml, opt) - fault = ::SOAP::Mapping.soap2obj(body.response) - assert_equal("Server", fault.faultcode) - assert_equal("faultstring", fault.faultstring) - assert_equal("faultactor", fault.faultactor) - assert_equal(5, fault.detail.cause) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/wsdl/test_multiplefault.rb b/vendor/gems/soap4r-1.5.8/test/wsdl/test_multiplefault.rb deleted file mode 100644 index 94381974..00000000 --- a/vendor/gems/soap4r-1.5.8/test/wsdl/test_multiplefault.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'test/unit' -require 'wsdl/parser' -require 'wsdl/soap/classDefCreator' -require 'wsdl/soap/classNameCreator' - - -module WSDL - - -class TestMultipleFault < Test::Unit::TestCase - def self.setup(filename) - @@filename = filename - end - - def test_multiplefault - @wsdl = WSDL::Parser.new.parse(File.open(@@filename) { |f| f.read }) - name_creator = WSDL::SOAP::ClassNameCreator.new - classdefstr = WSDL::SOAP::ClassDefCreator.new(@wsdl, name_creator).dump - yield_eval_binding(classdefstr) do |b| - assert_equal( - WSDL::TestMultipleFault::AuthenticationError, - eval("AuthenticationError", b) - ) - assert_equal( - WSDL::TestMultipleFault::AuthorizationError, - eval("AuthorizationError", b) - ) - end - end - - def yield_eval_binding(evaled) - b = binding - eval(evaled, b) - yield(b) - end -end - -TestMultipleFault.setup(File.join(File.dirname(__FILE__), 'multiplefault.wsdl')) - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/codegen/test_classdef.rb b/vendor/gems/soap4r-1.5.8/test/xsd/codegen/test_classdef.rb deleted file mode 100644 index f9ad5821..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/codegen/test_classdef.rb +++ /dev/null @@ -1,244 +0,0 @@ -require 'test/unit' -require 'xsd/codegen/classdef' - - -module XSD; module CodeGen - - -class TestClassDefCreator < Test::Unit::TestCase - include XSD::CodeGen - include GenSupport - - def test_classdef_simple - c = ClassDef.new("Foo") - assert_equal(format(<<-EOD), c.dump) - class Foo - end - EOD - end - - def test_classdef_complex - c = ClassDef.new("Foo::Bar::Baz", String) - assert_equal(format(<<-EOD), c.dump) - module Foo; module Bar - - class Baz < String - end - - end; end - EOD - end - - def test_require - c = ClassDef.new("Foo") - c.def_require("foo/bar") - assert_equal(format(<<-EOD), c.dump) - require 'foo/bar' - - class Foo - end - EOD - end - - def test_comment - c = ClassDef.new("Foo") - c.def_require("foo/bar") - c.comment = <<-EOD - foo - EOD - assert_equal(format(<<-EOD), c.dump) - require 'foo/bar' - - # foo - class Foo - end - EOD - c.comment = <<-EOD - foo - - bar - baz - - EOD - assert_equal(format(<<-EOD), c.dump) - require 'foo/bar' - - # foo - # - # bar - # baz - # - class Foo - end - EOD - end - - def test_emptymethod - c = ClassDef.new("Foo") - c.def_method('foo') do - end - c.def_method('bar') do - '' - end - assert_equal(format(<<-EOD), c.dump) - class Foo - def foo - end - - def bar - end - end - EOD - end - - def test_innermodule - c = ClassDef.new("Foo") - c.def_const("BAR", 1) - c.def_method('baz') { "Qux.new.quxx" } - c2 = ClassDef.new("Qux") - c2.def_method('quxx') { "Quxx::QUXXX" } - m3 = ModuleDef.new("Quxx") - m3.def_const("QUXXX", 2) - c.innermodule << c2 << m3 - assert_equal(format(<<-EOD), c.dump) - class Foo - BAR = 1 - - class Qux - def quxx - Quxx::QUXXX - end - end - - module Quxx - QUXXX = 2 - end - - def baz - Qux.new.quxx - end - end - EOD - end - - def test_full - c = ClassDef.new("Foo::Bar::HobbitName", String) - c.def_require("foo/bar") - c.comment = <<-EOD - foo - bar - baz - EOD - c.def_const("FOO", 1) - c.def_classvar("@@foo", "var".dump) - c.def_classvar("baz", "1".dump) - c.def_attr("Foo", true, "foo") - c.def_attr("bar") - c.def_attr("baz", true) - c.def_attr("Foo2", true, "foo2") - c.def_attr("foo3", false, "foo3") - c.def_method("foo") do - <<-EOD - foo.bar = 1 -\tbaz.each do |ele| -\t ele - end - EOD - end - c.def_method("baz", "qux") do - <<-EOD - [1, 2, 3].each do |i| - p i - end - EOD - end - - m = MethodDef.new("qux", "quxx", "quxxx") do - <<-EOD - p quxx + quxxx - EOD - end - m.comment = "hello world\n123" - c.add_method(m) - c.def_code <<-EOD - Foo.new - Bar.z - EOD - c.def_code <<-EOD - Foo.new - Bar.z - EOD - c.def_privatemethod("foo", "baz", "*arg", "&block") - - assert_equal(format(<<-EOD), c.dump) - require 'foo/bar' - - module Foo; module Bar - - # foo - # bar - # baz - class HobbitName < String - @@foo = "var" - @@baz = "1" - - FOO = 1 - - Foo.new - Bar.z - - Foo.new - Bar.z - - attr_accessor :bar - attr_accessor :baz - attr_reader :foo3 - - def Foo - @foo - end - - def Foo=(value) - @foo = value - end - - def Foo2 - @foo2 - end - - def Foo2=(value) - @foo2 = value - end - - def foo - foo.bar = 1 - baz.each do |ele| - ele - end - end - - def baz(qux) - [1, 2, 3].each do |i| - p i - end - end - - # hello world - # 123 - def qux(quxx, quxxx) - p quxx + quxxx - end - - private - - def foo(baz, *arg, &block) - end - end - - end; end - EOD - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/noencoding.xml b/vendor/gems/soap4r-1.5.8/test/xsd/noencoding.xml deleted file mode 100644 index 614ffa34..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/noencoding.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/test_noencoding.rb b/vendor/gems/soap4r-1.5.8/test/xsd/test_noencoding.rb deleted file mode 100644 index 48119ec1..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/test_noencoding.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'test/unit' -require 'wsdl/xmlSchema/parser' - - -module XSD - - -class TestEmptyCharset < Test::Unit::TestCase - def setup - @file = File.join(File.dirname(File.expand_path(__FILE__)), 'noencoding.xml') - end - - def test_wsdl - begin - xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) - rescue RuntimeError - if XSD::XMLParser.const_defined?("REXMLParser") - STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.") - return - end - raise - rescue Errno::EINVAL - # unsupported encoding - return - end - assert_equal(WSDL::XMLSchema::Schema, xml.class) - assert_equal(0, xml.collect_elements.size) - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/test_ns.rb b/vendor/gems/soap4r-1.5.8/test/xsd/test_ns.rb deleted file mode 100644 index 37d43002..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/test_ns.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'test/unit' -require 'soap/marshal' - - -module XSD - - -class TestNS < Test::Unit::TestCase - def test_xmllang - @file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmllang.xml') - obj = SOAP::Marshal.load(File.open(@file) { |f| f.read }) - assert_equal("12345", obj.partyDataLine.gln) - lang = obj.partyDataLine.__xmlattr[ - XSD::QName.new(XSD::NS::Namespace, "lang")] - assert_equal("EN", lang) - end - - def test_no_default_namespace - env = SOAP::Processor.unmarshal(NO_DEFAULT_NAMESPACE) - array = env.body.root_node["array"] - item = array["item"] - assert_equal("urn:ns", array.elename.namespace) - assert_equal(nil, item.elename.namespace) - end - -NO_DEFAULT_NAMESPACE = <<__XML__ - - - - - - - - - - -__XML__ -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/test_xmlschemaparser.rb b/vendor/gems/soap4r-1.5.8/test/xsd/test_xmlschemaparser.rb deleted file mode 100644 index 10dff43e..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/test_xmlschemaparser.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'test/unit' -require 'wsdl/xmlSchema/parser' - - -module XSD - - -class TestXMLSchemaParser < Test::Unit::TestCase - def setup - @file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmlschema.xml') - end - - def test_wsdl - @wsdl = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) - assert_equal(WSDL::XMLSchema::Schema, @wsdl.class) - assert_equal(1, @wsdl.collect_elements.size) - end -end - - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/test_xsd.rb b/vendor/gems/soap4r-1.5.8/test/xsd/test_xsd.rb deleted file mode 100644 index d4624262..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/test_xsd.rb +++ /dev/null @@ -1,1638 +0,0 @@ -require 'test/unit' -require 'xsd/datatypes' - - -module XSD - - -class TestXSD < Test::Unit::TestCase - NegativeZero = (-1.0 / (1.0 / 0.0)) - - def setup - end - - def teardown - end - - def assert_parsed_result(klass, str) - o = klass.new(str) - assert_equal(str, o.to_s) - end - - def test_NSDBase - o = XSD::NSDBase.new - assert_equal(nil, o.type) - end - - def test_XSDBase - o = XSD::XSDAnySimpleType.new - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - assert_equal('', o.to_s) - end - - def test_XSDNil - o = XSD::XSDNil.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NilLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - o = XSD::XSDNil.new(nil) - assert_equal(true, o.is_nil) - assert_equal(nil, o.data) - assert_equal("", o.to_s) - o = XSD::XSDNil.new('var') - assert_equal(false, o.is_nil) - assert_equal('var', o.data) - assert_equal('var', o.to_s) - end - - def test_XSDString_UTF8 - o = XSD::XSDString.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::StringLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, XSD::XSDString.new(str).data) - assert_equal(str, XSD::XSDString.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - XSD::XSDString.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - p XSD::XSDString.new("\xC0\xC0").to_s - end - ensure - XSD::XSDString.strict_ces_validation = back - end - end - - def test_XSDString_NONE - XSD::Charset.module_eval { @encoding_backup = @internal_encoding; @internal_encoding = "NONE" } - begin - o = XSD::XSDString.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::StringLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, XSD::XSDString.new(str).data) - assert_equal(str, XSD::XSDString.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - XSD::XSDString.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDString.new("\xC0\xC0").to_s - end - ensure - XSD::XSDString.strict_ces_validation = back - end - ensure - XSD::Charset.module_eval { @internal_encoding = @encoding_backup } - end - end - - def test_XSDNormalizedString - XSD::Charset.module_eval { @encoding_backup = @internal_encoding; @internal_encoding = "NONE" } - begin - o = XSD::XSDNormalizedString.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NormalizedStringLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, XSD::XSDNormalizedString.new(str).data) - assert_equal(str, XSD::XSDNormalizedString.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNormalizedString.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNormalizedString.new("\xC0\xC0").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNormalizedString.new("a\tb").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNormalizedString.new("a\r").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNormalizedString.new("\nb").to_s - end - ensure - XSD::XSDString.strict_ces_validation = back - end - ensure - XSD::Charset.module_eval { @internal_encoding = @encoding_backup } - end - end - - def test_XSDToken - XSD::Charset.module_eval { @encoding_backup = @internal_encoding; @internal_encoding = "NONE" } - begin - o = XSD::XSDToken.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::TokenLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "abc" - assert_equal(str, XSD::XSDToken.new(str).data) - assert_equal(str, XSD::XSDToken.new(str).to_s) - back = XSD::XSDString.strict_ces_validation - XSD::XSDString.strict_ces_validation = true - begin - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("\0") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("\xC0\xC0").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("a\tb").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("a\r").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("\nb").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new(" a").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("b ").to_s - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDToken.new("a b").to_s - end - assert_equal("a b", XSD::XSDToken.new("a b").data) - ensure - XSD::XSDString.strict_ces_validation = back - end - ensure - XSD::Charset.module_eval { @internal_encoding = @encoding_backup } - end - end - - def test_XSDLanguage - o = XSD::XSDLanguage.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::LanguageLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - str = "ja" - assert_equal(str, XSD::XSDLanguage.new(str).data) - assert_equal(str, XSD::XSDLanguage.new(str).to_s) - str = "ja-jp" - assert_equal(str, XSD::XSDLanguage.new(str).data) - assert_equal(str, XSD::XSDLanguage.new(str).to_s) - assert_raises(XSD::ValueSpaceError) do - XSD::XSDLanguage.new("ja-jp-") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDLanguage.new("-ja-") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDLanguage.new("ja-") - end - assert_raises(XSD::ValueSpaceError) do - XSD::XSDLanguage.new("a1-01") - end - assert_equal("aA-01", XSD::XSDLanguage.new("aA-01").to_s) - end - - def test_XSDBoolean - o = XSD::XSDBoolean.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::BooleanLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - ["true", true], - ["1", true], - ["false", false], - ["0", false], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDBoolean.new(data).data) - assert_equal(expected.to_s, XSD::XSDBoolean.new(data).to_s) - end - - assert_raises(XSD::ValueSpaceError) do - XSD::XSDBoolean.new("nil").to_s - end - end - - def test_XSDDecimal - o = XSD::XSDDecimal.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DecimalLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - -9999999999, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |dec| - assert_equal(dec.to_s, XSD::XSDDecimal.new(dec).data) - end - - targets = [ - "0", - "0.00000001", - "1000000000", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123.45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, XSD::XSDDecimal.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["0.0", "0"], - ["-0.0", "0"], - ["+0.0", "0"], - ["0.", "0"], - [".0", "0"], - [ - "+0.12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "0.1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" - ], - [ - ".0000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "0.000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" - ], - [ - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDDecimal.new(data).to_s) - end - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDDecimal.new(d) - end - end - end - - def test_XSDFloat - o = XSD::XSDFloat.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::FloatLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 3.14159265358979, - 12.34e36, - 1.402e-45, - -1.402e-45, - ] - targets.each do |f| - assert_equal(f, XSD::XSDFloat.new(f).data) - end - - targets = [ - "+3.141592654", - "+1.234e+37", - "+1.402e-45", - "-1.402e-45", - ] - targets.each do |f| - assert_equal(f, XSD::XSDFloat.new(f).to_s) - end - - targets = [ - [3, "+3"], # should be 3.0? - [-2, "-2"], # ditto - [3.14159265358979, "+3.141592654"], - [12.34e36, "+1.234e+37"], - [1.402e-45, "+1.402e-45"], - [-1.402e-45, "-1.402e-45"], - ["1.402e", "+1.402"], - ["12.34E36", "+1.234e+37"], - ["1.402E-45", "+1.402e-45"], - ["-1.402E-45", "-1.402e-45"], - ["1.402E", "+1.402"], - ] - targets.each do |f, str| - assert_equal(str, XSD::XSDFloat.new(f).to_s) - end - - assert_equal("+0", XSD::XSDFloat.new(+0.0).to_s) - assert_equal("-0", XSD::XSDFloat.new(NegativeZero).to_s) - assert(XSD::XSDFloat.new(0.0/0.0).data.nan?) - assert_equal("INF", XSD::XSDFloat.new(1.0/0.0).to_s) - assert_equal(1, XSD::XSDFloat.new(1.0/0.0).data.infinite?) - assert_equal("-INF", XSD::XSDFloat.new(-1.0/0.0).to_s) - assert_equal(-1, XSD::XSDFloat.new(-1.0/0.0).data.infinite?) - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - "5_0", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDFloat.new(d) - end - end - end - - def test_XSDDouble - o = XSD::XSDDouble.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DoubleLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 3.14159265358979, - 12.34e36, - 1.402e-45, - -1.402e-45, - ] - targets.each do |f| - assert_equal(f, XSD::XSDDouble.new(f).data) - end - - targets = [ - "+3.14159265358979", - "+1.234e+37", - "+1.402e-45", - "-1.402e-45", - ] - targets.each do |f| - assert_equal(f, XSD::XSDDouble.new(f).to_s) - end - - targets = [ - [3, "+3"], # should be 3.0? - [-2, "-2"], # ditto. - [3.14159265358979, "+3.14159265358979"], - [12.34e36, "+1.234e+37"], - [1.402e-45, "+1.402e-45"], - [-1.402e-45, "-1.402e-45"], - ["1.402e", "+1.402"], - ["12.34E36", "+1.234e+37"], - ["1.402E-45", "+1.402e-45"], - ["-1.402E-45", "-1.402e-45"], - ["1.402E", "+1.402"], - ] - targets.each do |f, str| - assert_equal(str, XSD::XSDDouble.new(f).to_s) - end - - assert_equal("+0", XSD::XSDFloat.new(+0.0).to_s) - assert_equal("-0", XSD::XSDFloat.new(NegativeZero).to_s) - assert_equal("NaN", XSD::XSDDouble.new(0.0/0.0).to_s) - assert(XSD::XSDDouble.new(0.0/0.0).data.nan?) - assert_equal("INF", XSD::XSDDouble.new(1.0/0.0).to_s) - assert_equal(1, XSD::XSDDouble.new(1.0/0.0).data.infinite?) - assert_equal("-INF", XSD::XSDDouble.new(-1.0/0.0).to_s) - assert_equal(-1, XSD::XSDDouble.new(-1.0/0.0).data.infinite?) - - targets = [ - "0.000000000000a", - "00a.0000000000001", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDDouble.new(d) - end - end - end - - def test_XSDDuration - o = XSD::XSDDuration.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DurationLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "P1Y2M3DT4H5M6S", - "P1234Y5678M9012DT3456H7890M1234.5678S", - "PT3456H7890M1234.5678S", - "P1234Y5678M9012D", - "-P1234Y5678M9012DT3456H7890M1234.5678S", - "P5678M9012DT3456H7890M1234.5678S", - "-P1234Y9012DT3456H7890M1234.5678S", - "+P1234Y5678MT3456H7890M1234.5678S", - "P1234Y5678M9012DT7890M1234.5678S", - "-P1234Y5678M9012DT3456H1234.5678S", - "+P1234Y5678M9012DT3456H7890M", - "P123400000000000Y", - "-P567800000000000M", - "+P901200000000000D", - "PT345600000000000H", - "-PT789000000000000M", - "+PT123400000000000.000000000005678S", - "P1234YT1234.5678S", - "-P5678MT7890M", - "+P9012DT3456H", - "PT5S", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDDuration, str) - end - - targets = [ - ["P0Y0M0DT0H0M0S", - "P0D"], - ["-P0DT0S", - "-P0D"], - ["P01234Y5678M9012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y005678M9012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M0009012DT3456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT00003456H7890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT3456H000007890M1234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ["P1234Y5678M9012DT3456H7890M0000001234.5678S", - "P1234Y5678M9012DT3456H7890M1234.5678S"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDDuration.new(data).to_s) - end - end - - def test_XSDDateTime - o = XSD::XSDDateTime.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DateTimeLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05-18T16:52:20Z", - "0001-01-01T00:00:00Z", - "9999-12-31T23:59:59Z", - "19999-12-31T23:59:59Z", - "2002-12-31T23:59:59.999Z", - "2002-12-31T23:59:59.001Z", - "2002-12-31T23:59:59.99999999999999999999Z", - "2002-12-31T23:59:59.00000000000000000001Z", - "2002-12-31T23:59:59+09:00", - "2002-12-31T23:59:59+00:01", - "2002-12-31T23:59:59-00:01", - "2002-12-31T23:59:59-23:59", - "2002-12-31T23:59:59.00000000000000000001+13:30", - "2002-12-31T23:59:59.5137Z", - "2002-12-31T23:59:59.51375Z", # 411/800 - "2002-12-31T23:59:59.51375+12:34", - "-2002-05-18T16:52:20Z", - "-4713-01-01T12:00:00Z", - "-2002-12-31T23:59:59+00:01", - "-0001-12-31T23:59:59.00000000000000000001+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDDateTime, str) - end - - targets = [ - ["2002-12-31T23:59:59.00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59+00:00", - "2002-12-31T23:59:59Z"], - ["2002-12-31T23:59:59-00:00", - "2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59.00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59+00:00", - "-2002-12-31T23:59:59Z"], - ["-2002-12-31T23:59:59-00:00", - "-2002-12-31T23:59:59Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDDateTime.new(data).to_s) - d = DateTime.parse(data) - d >>= 12 if d.year < 0 # XSDDateTime.year(-1) == DateTime.year(0) - assert_equal(expected, XSD::XSDDateTime.new(d).to_s) - end - - targets = [ - "0000-05-18T16:52:20Z", - "05-18T16:52:20Z", - "2002-05T16:52:20Z", - "2002-05-18T16:52Z", - "", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - XSD::XSDDateTime.new(d) - end - end - end - - def test_XSDTime - o = XSD::XSDTime.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::TimeLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "16:52:20Z", - "00:00:00Z", - "23:59:59Z", - "23:59:59.999Z", - "23:59:59.001Z", - "23:59:59.99999999999999999999Z", - "23:59:59.00000000000000000001Z", - "23:59:59+09:00", - "23:59:59+00:01", - "23:59:59-00:01", - "23:59:59-23:59", - "23:59:59.00000000000000000001+13:30", - "23:59:59.51345Z", - "23:59:59.51345+12:34", - "23:59:59+00:01", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDTime, str) - end - - targets = [ - ["23:59:59.00", - "23:59:59Z"], - ["23:59:59+00:00", - "23:59:59Z"], - ["23:59:59-00:00", - "23:59:59Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDTime.new(data).to_s) - end - end - - def test_XSDDate - o = XSD::XSDDate.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::DateLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05-18Z", - "0001-01-01Z", - "9999-12-31Z", - "19999-12-31Z", - "2002-12-31+09:00", - "2002-12-31+00:01", - "2002-12-31-00:01", - "2002-12-31-23:59", - "2002-12-31+13:30", - "-2002-05-18Z", - "-19999-12-31Z", - "-2002-12-31+00:01", - "-0001-12-31+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDDate, str) - end - - targets = [ - ["2002-12-31", - "2002-12-31Z"], - ["2002-12-31+00:00", - "2002-12-31Z"], - ["2002-12-31-00:00", - "2002-12-31Z"], - ["-2002-12-31", - "-2002-12-31Z"], - ["-2002-12-31+00:00", - "-2002-12-31Z"], - ["-2002-12-31-00:00", - "-2002-12-31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDDate.new(data).to_s) - d = Date.parse(data) - d >>= 12 if d.year < 0 # XSDDate.year(-1) == Date.year(0) - assert_equal(expected, XSD::XSDDate.new(d).to_s) - end - end -end - -class TestXSD2 < Test::Unit::TestCase - def setup - # Nothing to do. - end - - def teardown - # Nothing to do. - end - - def assert_parsed_result(klass, str) - o = klass.new(str) - assert_equal(str, o.to_s) - end - - def test_XSDGYearMonth - o = XSD::XSDGYearMonth.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GYearMonthLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002-05Z", - "0001-01Z", - "9999-12Z", - "19999-12Z", - "2002-12+09:00", - "2002-12+00:01", - "2002-12-00:01", - "2002-12-23:59", - "2002-12+13:30", - "-2002-05Z", - "-19999-12Z", - "-2002-12+00:01", - "-0001-12+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDGYearMonth, str) - end - - targets = [ - ["2002-12", - "2002-12Z"], - ["2002-12+00:00", - "2002-12Z"], - ["2002-12-00:00", - "2002-12Z"], - ["-2002-12", - "-2002-12Z"], - ["-2002-12+00:00", - "-2002-12Z"], - ["-2002-12-00:00", - "-2002-12Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDGYearMonth.new(data).to_s) - end - end - - def test_XSDGYear - o = XSD::XSDGYear.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GYearLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "2002Z", - "0001Z", - "9999Z", - "19999Z", - "2002+09:00", - "2002+00:01", - "2002-00:01", - "2002-23:59", - "2002+13:30", - "-2002Z", - "-19999Z", - "-2002+00:01", - "-0001+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDGYear, str) - end - - targets = [ - ["2002", - "2002Z"], - ["2002+00:00", - "2002Z"], - ["2002-00:00", - "2002Z"], - ["-2002", - "-2002Z"], - ["-2002+00:00", - "-2002Z"], - ["-2002-00:00", - "-2002Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDGYear.new(data).to_s) - end - end - - def test_XSDGMonthDay - o = XSD::XSDGMonthDay.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GMonthDayLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "05-18Z", - "01-01Z", - "12-31Z", - "12-31+09:00", - "12-31+00:01", - "12-31-00:01", - "12-31-23:59", - "12-31+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDGMonthDay, str) - end - - targets = [ - ["12-31", - "12-31Z"], - ["12-31+00:00", - "12-31Z"], - ["12-31-00:00", - "12-31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDGMonthDay.new(data).to_s) - end - end - - def test_XSDGDay - o = XSD::XSDGDay.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GDayLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "18Z", - "01Z", - "31Z", - "31+09:00", - "31+00:01", - "31-00:01", - "31-23:59", - "31+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDGDay, str) - end - - targets = [ - ["31", - "31Z"], - ["31+00:00", - "31Z"], - ["31-00:00", - "31Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDGDay.new(data).to_s) - end - end - - def test_XSDGMonth - o = XSD::XSDGMonth.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::GMonthLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "05Z", - "01Z", - "12Z", - "12+09:00", - "12+00:01", - "12-00:01", - "12-23:59", - "12+13:30", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDGMonth, str) - end - - targets = [ - ["12", - "12Z"], - ["12+00:00", - "12Z"], - ["12-00:00", - "12Z"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDGMonth.new(data).to_s) - end - end - - def test_XSDHexBinary - o = XSD::XSDHexBinary.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::HexBinaryLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "abcdef", - "\xe3\x81\xaa\xe3\x81\xb2", - %Q(\0), - "", - ] - targets.each do |str| - assert_equal(str, XSD::XSDHexBinary.new(str).string) - assert_equal(str.unpack("H*")[0 ].tr('a-f', 'A-F'), - XSD::XSDHexBinary.new(str).data) - o = XSD::XSDHexBinary.new - o.set_encoded(str.unpack("H*")[0 ].tr('a-f', 'A-F')) - assert_equal(str, o.string) - o.set_encoded(str.unpack("H*")[0 ].tr('A-F', 'a-f')) - assert_equal(str, o.string) - end - - targets = [ - "0FG7", - "0fg7", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - o = XSD::XSDHexBinary.new - o.set_encoded(d) - p o.string - end - end - end - - def test_XSDBase64Binary - o = XSD::XSDBase64Binary.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::Base64BinaryLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - "abcdef", - "\xe3\x81\xaa\xe3\x81\xb2", - %Q(\0), - "", - ] - targets.each do |str| - assert_equal(str, XSD::XSDBase64Binary.new(str).string) - assert_equal([str ].pack("m").chomp, XSD::XSDBase64Binary.new(str).data) - o = XSD::XSDBase64Binary.new - o.set_encoded([str ].pack("m").chomp) - assert_equal(str, o.string) - end - - targets = [ - "-", - "*", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError, d.to_s) do - o = XSD::XSDBase64Binary.new - o.set_encoded(d) - p o.string - end - end - end - - def test_XSDAnyURI - o = XSD::XSDAnyURI.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::AnyURILiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - # Too few tests here I know. Believe uri module. :) - targets = [ - "foo", - "http://foo", - "http://foo/bar/baz", - "http://foo/bar#baz", - "http://foo/bar%20%20?a+b", - "HTTP://FOO/BAR%20%20?A+B", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDAnyURI, str) - end - end - - def test_XSDQName - o = XSD::XSDQName.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::QNameLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - # More strict test is needed but current implementation allows all non-':' - # chars like ' ', C0 or C1... - targets = [ - "foo", - "foo:bar", - "a:b", - ] - targets.each do |str| - assert_parsed_result(XSD::XSDQName, str) - end - end - - - ### - ## Derived types - # - - def test_XSDInteger - o = XSD::XSDInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::IntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - -9999999999, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |int| - assert_equal(int, XSD::XSDInteger.new(int).data) - end - - targets = [ - "0", - "1000000000", - "-9999999999", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, XSD::XSDInteger.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - [ - "+12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDInteger.new(data).to_s) - end - - targets = [ - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDInteger.new(d) - end - end - end - - def test_XSDNonPositiveInteger - o = XSD::XSDNonPositiveInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NonPositiveIntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - -9999999999, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |int| - assert_equal(int, XSD::XSDNonPositiveInteger.new(int).data) - end - - targets = [ - "0", - "-9999999999", - "-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, XSD::XSDNonPositiveInteger.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDNonPositiveInteger.new(data).to_s) - end - - targets = [ - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNonPositiveInteger.new(d) - end - end - end - - def test_XSDNegativeInteger - o = XSD::XSDNegativeInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NegativeIntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - -1, - -9999999999, - -1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, - ] - targets.each do |int| - assert_equal(int, XSD::XSDNegativeInteger.new(int).data) - end - - targets = [ - "-1", - "-9999999999", - "-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", - ] - targets.each do |str| - assert_equal(str, XSD::XSDNegativeInteger.new(str).to_s) - end - - targets = [ - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDNegativeInteger.new(data).to_s) - end - - targets = [ - "-0.0", - "-5.2", - "-0.000000000000a", - "+-5", - "-12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNegativeInteger.new(d) - end - end - end - - def test_XSDLong - o = XSD::XSDLong.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::LongLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 9223372036854775807, - -9223372036854775808, - ] - targets.each do |lng| - assert_equal(lng, XSD::XSDLong.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "9223372036854775807", - "-9223372036854775808", - ] - targets.each do |str| - assert_equal(str, XSD::XSDLong.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDLong.new(data).to_s) - end - - targets = [ - 9223372036854775808, - -9223372036854775809, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDLong.new(d) - end - end - end - - def test_XSDInt - o = XSD::XSDInt.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::IntLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 2147483647, - -2147483648, - ] - targets.each do |lng| - assert_equal(lng, XSD::XSDInt.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "2147483647", - "-2147483648", - ] - targets.each do |str| - assert_equal(str, XSD::XSDInt.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDInt.new(data).to_s) - end - - targets = [ - 2147483648, - -2147483649, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDInt.new(d) - end - end - end - - def test_XSDShort - o = XSD::XSDShort.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::ShortLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 32767, - -32768, - ] - targets.each do |lng| - assert_equal(lng, XSD::XSDShort.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "32767", - "-32768", - ] - targets.each do |str| - assert_equal(str, XSD::XSDShort.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDShort.new(data).to_s) - end - - targets = [ - 32768, - -32769, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDShort.new(d) - end - end - end - - def test_XSDByte - o = XSD::XSDByte.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::ByteLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 123, - -123, - 127, - -128, - ] - targets.each do |lng| - assert_equal(lng, XSD::XSDByte.new(lng).data) - end - - targets = [ - "0", - "123", - "-123", - "127", - "-128", - ] - targets.each do |str| - assert_equal(str, XSD::XSDByte.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["-000123", "-123"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDByte.new(data).to_s) - end - - targets = [ - 128, - -129, - "0.0", - "-5.2", - "0.000000000000a", - "+-5", - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDByte.new(d) - end - end - end - - def test_XSDNonNegativeInteger - o = XSD::XSDNonNegativeInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::NonNegativeIntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - ] - targets.each do |int| - assert_equal(int, XSD::XSDNonNegativeInteger.new(int).data) - end - - targets = [ - "0", - "1000000000", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - ] - targets.each do |str| - assert_equal(str, XSD::XSDNonNegativeInteger.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - [ - "+12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDNonNegativeInteger.new(data).to_s) - end - - targets = [ - "0.0", - "0.000000000000a", - "+-5", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDNonNegativeInteger.new(d) - end - end - end - - def test_XSDUnsignedLong - o = XSD::XSDUnsignedLong.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::UnsignedLongLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - 18446744073709551615, - ] - targets.each do |int| - assert_equal(int, XSD::XSDUnsignedLong.new(int).data) - end - - targets = [ - "0", - "1000000000", - "18446744073709551615", - ] - targets.each do |str| - assert_equal(str, XSD::XSDUnsignedLong.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["+18446744073709551615", "18446744073709551615"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDUnsignedLong.new(data).to_s) - end - - targets = [ - "0.0", - "0.000000000000a", - "+-5", - "18446744073709551615." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDUnsignedLong.new(d) - end - end - end - - def test_XSDUnsignedInt - o = XSD::XSDUnsignedInt.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::UnsignedIntLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 1000000000, - 4294967295, - ] - targets.each do |int| - assert_equal(int, XSD::XSDUnsignedInt.new(int).data) - end - - targets = [ - "0", - "1000000000", - "4294967295", - ] - targets.each do |str| - assert_equal(str, XSD::XSDUnsignedInt.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["+4294967295", "4294967295"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDUnsignedInt.new(data).to_s) - end - - targets = [ - "0.0", - "0.000000000000a", - "+-5", - "4294967295." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDUnsignedInt.new(d) - end - end - end - - def test_XSDUnsignedShort - o = XSD::XSDUnsignedShort.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::UnsignedShortLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 10000, - 65535, - ] - targets.each do |int| - assert_equal(int, XSD::XSDUnsignedShort.new(int).data) - end - - targets = [ - "0", - "1000", - "65535", - ] - targets.each do |str| - assert_equal(str, XSD::XSDUnsignedShort.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["+65535", "65535"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDUnsignedShort.new(data).to_s) - end - - targets = [ - "0.0", - "0.000000000000a", - "+-5", - "65535." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDUnsignedShort.new(d) - end - end - end - - def test_XSDUnsignedByte - o = XSD::XSDUnsignedByte.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::UnsignedByteLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 0, - 10, - 255, - ] - targets.each do |int| - assert_equal(int, XSD::XSDUnsignedByte.new(int).data) - end - - targets = [ - "0", - "10", - "255", - ] - targets.each do |str| - assert_equal(str, XSD::XSDUnsignedByte.new(str).to_s) - end - - targets = [ - ["-0", "0"], - ["+0", "0"], - ["000123", "123"], - ["+255", "255"], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDUnsignedByte.new(data).to_s) - end - - targets = [ - "0.0", - "0.000000000000a", - "+-5", - "255." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDUnsignedByte.new(d) - end - end - end - - def test_XSDPositiveInteger - o = XSD::XSDPositiveInteger.new - assert_equal(XSD::Namespace, o.type.namespace) - assert_equal(XSD::PositiveIntegerLiteral, o.type.name) - assert_equal(nil, o.data) - assert_equal(true, o.is_nil) - - targets = [ - 1, - 1000000000, - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, - ] - targets.each do |int| - assert_equal(int, XSD::XSDPositiveInteger.new(int).data) - end - - targets = [ - "1", - "1000000000", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - ] - targets.each do |str| - assert_equal(str, XSD::XSDPositiveInteger.new(str).to_s) - end - - targets = [ - ["+1", "1"], - ["000123", "123"], - [ - "+12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" - ], - ] - targets.each do |data, expected| - assert_equal(expected, XSD::XSDPositiveInteger.new(data).to_s) - end - - targets = [ - "1.0", - "1.000000000000a", - "+-5", - "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890." - ] - targets.each do |d| - assert_raises(XSD::ValueSpaceError) do - XSD::XSDPositiveInteger.new(d) - end - end - end -end - - -end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xmllang.xml b/vendor/gems/soap4r-1.5.8/test/xsd/xmllang.xml deleted file mode 100644 index 5daa2b93..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xmllang.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 12345 - 1 - 0 - - - - - - 12345 - 234 - foobar LLC - baz - 9876 - Moscow - RU - - - 12; 34 56 78 - foo@example.com - 123 456 - - - bar@example.com - - - www.example.com - - - 12 34; 56 78 - - - 789 012 - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xmlschema.xml b/vendor/gems/soap4r-1.5.8/test/xsd/xmlschema.xml deleted file mode 100644 index 018bd0cc..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xmlschema.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample.rb b/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample.rb deleted file mode 100644 index 70452ac5..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample.rb +++ /dev/null @@ -1,65 +0,0 @@ -require 'xsd/qname' - -module XSD; module XSD2Ruby - - -# {urn:mysample}question -# something - SOAP::SOAPString -class Question - attr_accessor :something - - def initialize(something = nil) - @something = something - end -end - -# {urn:mysample}section -# sectionID - SOAP::SOAPInt -# name - SOAP::SOAPString -# description - SOAP::SOAPString -# index - SOAP::SOAPInt -# firstQuestion - XSD::XSD2Ruby::Question -class Section - attr_accessor :sectionID - attr_accessor :name - attr_accessor :description - attr_accessor :index - attr_accessor :firstQuestion - - def initialize(sectionID = nil, name = nil, description = nil, index = nil, firstQuestion = nil) - @sectionID = sectionID - @name = name - @description = description - @index = index - @firstQuestion = firstQuestion - end -end - -# {urn:mysample}sectionArray -class SectionArray < ::Array -end - -# {urn:mysample}sectionElement -# sectionID - SOAP::SOAPInt -# name - SOAP::SOAPString -# description - SOAP::SOAPString -# index - SOAP::SOAPInt -# firstQuestion - XSD::XSD2Ruby::Question -class SectionElement - attr_accessor :sectionID - attr_accessor :name - attr_accessor :description - attr_accessor :index - attr_accessor :firstQuestion - - def initialize(sectionID = nil, name = nil, description = nil, index = nil, firstQuestion = nil) - @sectionID = sectionID - @name = name - @description = description - @index = index - @firstQuestion = firstQuestion - end -end - - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapper.rb b/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapper.rb deleted file mode 100644 index 2b640c51..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapper.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'mysample_mapping_registry.rb' - -module XSD; module XSD2Ruby - -class MysampleMapper < XSD::Mapping::Mapper - def initialize - super(MysampleMappingRegistry::Registry) - end -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb b/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb deleted file mode 100644 index 1c7a4ed9..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb +++ /dev/null @@ -1,51 +0,0 @@ -require 'xsd/mapping' -require 'mysample.rb' - -module XSD; module XSD2Ruby - -module MysampleMappingRegistry - NsMysample = "urn:mysample" - Registry = ::SOAP::Mapping::LiteralRegistry.new - - Registry.register( - :class => XSD::XSD2Ruby::Question, - :schema_type => XSD::QName.new(NsMysample, "question"), - :schema_element => [ - ["something", ["SOAP::SOAPString", XSD::QName.new(nil, "something")]] - ] - ) - - Registry.register( - :class => XSD::XSD2Ruby::Section, - :schema_type => XSD::QName.new(NsMysample, "section"), - :schema_element => [ - ["sectionID", ["SOAP::SOAPInt", XSD::QName.new(nil, "sectionID")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]], - ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]], - ["index", ["SOAP::SOAPInt", XSD::QName.new(nil, "index")]], - ["firstQuestion", ["XSD::XSD2Ruby::Question", XSD::QName.new(nil, "firstQuestion")]] - ] - ) - - Registry.register( - :class => XSD::XSD2Ruby::SectionArray, - :schema_type => XSD::QName.new(NsMysample, "sectionArray"), - :schema_element => [ - ["element", ["XSD::XSD2Ruby::Section[]", XSD::QName.new(nil, "element")], [1, nil]] - ] - ) - - Registry.register( - :class => XSD::XSD2Ruby::SectionElement, - :schema_name => XSD::QName.new(NsMysample, "sectionElement"), - :schema_element => [ - ["sectionID", ["SOAP::SOAPInt", XSD::QName.new(nil, "sectionID")]], - ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]], - ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]], - ["index", ["SOAP::SOAPInt", XSD::QName.new(nil, "index")]], - ["firstQuestion", ["XSD::XSD2Ruby::Question", XSD::QName.new(nil, "firstQuestion")]] - ] - ) -end - -end; end diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/section.xsd b/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/section.xsd deleted file mode 100644 index 161f2d20..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/section.xsd +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/test_xsd2ruby.rb b/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/test_xsd2ruby.rb deleted file mode 100644 index d1d10361..00000000 --- a/vendor/gems/soap4r-1.5.8/test/xsd/xsd2ruby/test_xsd2ruby.rb +++ /dev/null @@ -1,90 +0,0 @@ -require 'test/unit' -require 'wsdl/xmlSchema/xsd2ruby' -require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') - - -module XSD; module XSD2Ruby - - -class TestXSD2Ruby < Test::Unit::TestCase - DIR = File.dirname(File.expand_path(__FILE__)) - - def setup - Dir.chdir(DIR) do - gen = WSDL::XMLSchema::XSD2Ruby.new - gen.location = pathname("section.xsd") - gen.basedir = DIR - gen.logger.level = Logger::FATAL - gen.opt['module_path'] = "XSD::XSD2Ruby" - gen.opt['classdef'] = nil - gen.opt['mapping_registry'] = nil - gen.opt['mapper'] = nil - gen.opt['force'] = true - gen.run - TestUtil.require(DIR, 'mysample.rb', 'mysample_mapping_registry.rb', 'mysample_mapper.rb') - end - end - - def teardown - unless $DEBUG - File.unlink(pathname("mysample.rb")) - File.unlink(pathname("mysample_mapping_registry.rb")) - File.unlink(pathname("mysample_mapper.rb")) - end - # leave generated file for debug. - end - - def test_generate - compare("expected_mysample.rb", "mysample.rb") - compare("expected_mysample_mapping_registry.rb", "mysample_mapping_registry.rb") - compare("expected_mysample_mapper.rb", "mysample_mapper.rb") - end - - def test_mapper - mapper = XSD::XSD2Ruby::MysampleMapper.new - # complexType - arg = XSD::XSD2Ruby::Section.new(10001, 'name', 'description', 1, Question.new("hello world")) - obj = mapper.xml2obj(mapper.obj2xml(arg)) - assert_section_equal(arg, obj) - # element - arg = XSD::XSD2Ruby::SectionElement.new(10001, 'name', 'description', 1, Question.new("hello world")) - obj = mapper.xml2obj(mapper.obj2xml(arg)) - assert_section_equal(arg, obj) - # array - ele = XSD::XSD2Ruby::Section.new(10001, 'name', 'description', 1, Question.new("hello world")) - arg = XSD::XSD2Ruby::SectionArray[ele, ele, ele] - obj = mapper.xml2obj(mapper.obj2xml(arg)) - assert_equal(arg.class, obj.class) - assert_equal(arg.size, obj.size) - 0.upto(arg.size - 1) do |idx| - assert_section_equal(arg[idx], obj[idx]) - end - end - -private - - def assert_section_equal(arg, obj) - assert_equal(arg.class, obj.class) - assert_equal(arg.sectionID, obj.sectionID) - assert_equal(arg.name, obj.name) - assert_equal(arg.description, obj.description) - assert_equal(arg.index, obj.index) - assert_equal(arg.firstQuestion.class, obj.firstQuestion.class) - assert_equal(arg.firstQuestion.something, obj.firstQuestion.something) - end - - def pathname(filename) - File.join(DIR, filename) - end - - def compare(expected, actual) - TestUtil.filecompare(pathname(expected), pathname(actual)) - end - - def loadfile(file) - File.open(pathname(file)) { |f| f.read } - end -end - - -end; end