diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-03 13:33:20 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-03 13:33:20 +0000 |
commit | df731e37a1953755edfedd1462995fa824ca22bf (patch) | |
tree | 38a98e1b29b3784843ad079fa003790c8f352f58 /sample | |
parent | 0d6fa996d9e842fe435308cef68df06bc3596a76 (diff) |
* added files:
* lib/soap/header/*
* lib/soap/rpc/httpserver.rb
* lib/wsdl/soap/cgiStubCreator.rb
* lib/wsdl/soap/classDefCreator.rb
* lib/wsdl/soap/classDefCreatorSupport.rb
* lib/wsdl/soap/clientSkeltonCreator.rb
* lib/wsdl/soap/driverCreator.rb
* lib/wsdl/soap/mappingRegistryCreator.rb
* lib/wsdl/soap/methodDefCreator.rb
* lib/wsdl/soap/servantSkeltonCreator.rb
* lib/wsdl/soap/standaloneServerStubCreator.rb
* lib/wsdl/xmlSchema/enumeration.rb
* lib/wsdl/xmlSchema/simpleRestriction.rb
* lib/wsdl/xmlSchema/simpleType.rb
* lib/xsd/codegen/*
* lib/xsd/codegen.rb
* sample/soap/authheader/*
* sample/soap/raa2.4/*
* sample/soap/ssl/*
* sample/soap/swa/*
* sample/soap/whois.rb
* sample/wsdl/raa2.4/*
* test/soap/header/*
* test/soap/ssl/*
* test/soap/struct/*
* test/soap/swa/*
* test/soap/wsdlDriver/*
* test/wsdl/multiplefault.wsdl
* test/wsdl/simpletype/*
* test/wsdl/test_multiplefault.rb
* modified files:
* lib/soap/baseData.rb
* lib/soap/element.rb
* lib/soap/generator.rb
* lib/soap/netHttpClient.rb
* lib/soap/parser.rb
* lib/soap/property.rb
* lib/soap/soap.rb
* lib/soap/streamHandler.rb
* lib/soap/wsdlDriver.rb
* lib/soap/wsdlDriver.rb
* lib/soap/encodingstyle/handler.rb
* lib/soap/encodingstyle/literalHandler.rb
* lib/soap/encodingstyle/soapHandler.rb
* lib/soap/mapping/factory.rb
* lib/soap/mapping/mapping.rb
* lib/soap/mapping/registry.rb
* lib/soap/mapping/rubytypeFactory.rb
* lib/soap/mapping/wsdlRegistry.rb
* lib/soap/rpc/cgistub.rb
* lib/soap/rpc/driver.rb
* lib/soap/rpc/proxy.rb
* lib/soap/rpc/router.rb
* lib/soap/rpc/soaplet.rb
* lib/soap/rpc/standaloneServer.rb
* lib/wsdl/data.rb
* lib/wsdl/definitions.rb
* lib/wsdl/operation.rb
* lib/wsdl/parser.rb
* lib/wsdl/soap/definitions.rb
* lib/wsdl/xmlSchema/complexContent.rb
* lib/wsdl/xmlSchema/complexType.rb
* lib/wsdl/xmlSchema/data.rb
* lib/wsdl/xmlSchema/parser.rb
* lib/wsdl/xmlSchema/schema.rb
* lib/xsd/datatypes.rb
* lib/xsd/qname.rb
* sample/soap/sampleStruct/server.rb
* sample/wsdl/amazon/AmazonSearch.rb
* sample/wsdl/amazon/AmazonSearchDriver.rb
* test/soap/test_property.rb
* test/soap/calc/test_calc_cgi.rb
* test/wsdl/test_emptycomplextype.rb
* summary
* add SOAP Header mustUnderstand support.
* add HTTP client SSL configuration and Cookies support (works
completely with http-access2).
* add header handler for handling sending/receiving SOAP Header.
* map Ruby's anonymous Struct to common SOAP Struct in SOAP Object
Model. it caused error.
* add WSDL simpleType support to restrict lexical value space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
33 files changed, 2848 insertions, 2322 deletions
diff --git a/sample/soap/authheader/authmgr.rb b/sample/soap/authheader/authmgr.rb new file mode 100644 index 0000000000..a4d3b66c0d --- /dev/null +++ b/sample/soap/authheader/authmgr.rb @@ -0,0 +1,41 @@ +class Authmgr + def initialize + @users = { + 'NaHi' => 'passwd', + 'HiNa' => 'wspass' + } + @sessions = {} + end + + def login(userid, passwd) + userid and passwd and @users[userid] == passwd + end + + # returns userid + def auth(sessionid) + @sessions[sessionid] + end + + def create_session(userid) + while true + key = create_sessionkey + break unless @sessions[key] + end + @sessions[key] = userid + key + end + + def get_session(userid) + @sessions.index(userid) + end + + def destroy_session(sessionkey) + @sessions.delete(sessionkey) + end + +private + + def create_sessionkey + Time.now.usec.to_s + end +end diff --git a/sample/soap/authheader/client.rb b/sample/soap/authheader/client.rb new file mode 100644 index 0000000000..4055fe63fe --- /dev/null +++ b/sample/soap/authheader/client.rb @@ -0,0 +1,40 @@ +require 'soap/rpc/driver' +require 'soap/header/simplehandler' + +server = ARGV.shift || 'http://localhost:7000/' + +class ClientAuthHeaderHandler < SOAP::Header::SimpleHandler + MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") + + def initialize(userid, passwd) + super(MyHeaderName) + @sessionid = nil + @userid = userid + @passwd = passwd + @mustunderstand = true + 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 +end + +ns = 'http://tempuri.org/authHeaderPort' +serv = SOAP::RPC::Driver.new(server, ns) +serv.add_method('deposit', 'amt') +serv.add_method('withdrawal', 'amt') + +serv.headerhandler << ClientAuthHeaderHandler.new('NaHi', 'passwd') + +serv.wiredump_dev = STDOUT + +p serv.deposit(150) +p serv.withdrawal(120) diff --git a/sample/soap/authheader/client2.rb b/sample/soap/authheader/client2.rb new file mode 100644 index 0000000000..58a7da45ae --- /dev/null +++ b/sample/soap/authheader/client2.rb @@ -0,0 +1,39 @@ +require 'soap/rpc/driver' +require 'soap/header/simplehandler' + +server = ARGV.shift || 'http://localhost:7000/' + +class ClientAuthHeaderHandler < SOAP::Header::SimpleHandler + MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") + + 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 +end + +ns = 'http://tempuri.org/authHeaderPort' +serv = SOAP::RPC::Driver.new(server, ns) +serv.add_method('deposit', 'amt') +serv.add_method('withdrawal', 'amt') + +serv.headerhandler << ClientAuthHeaderHandler.new('NaHi', 'passwd') + +serv.wiredump_dev = STDOUT + +p serv.deposit(150) +p serv.withdrawal(120) diff --git a/sample/soap/authheader/server.rb b/sample/soap/authheader/server.rb new file mode 100644 index 0000000000..6b562d02f3 --- /dev/null +++ b/sample/soap/authheader/server.rb @@ -0,0 +1,72 @@ +#!/usr/bin/env ruby + +require 'soap/rpc/standaloneServer' +require 'soap/header/simplehandler' +require 'authmgr' + +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 + + Name = 'http://tempuri.org/authHeaderPort' + def initialize(*arg) + super + add_rpc_servant(AuthHeaderService.new, Name) + add_rpc_request_headerhandler(ServerAuthHeaderHandler) + end + + class ServerAuthHeaderHandler < SOAP::Header::SimpleHandler + MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") + + @authmgr = Authmgr.new + def self.create + new(@authmgr) + end + + def initialize(authmgr) + super(MyHeaderName) + @authmgr = authmgr + @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 @authmgr.login(userid, passwd) + auth = true + elsif sessionid = my_header["sessionid"] + if userid = @authmgr.auth(sessionid) + @authmgr.destroy_session(sessionid) + auth = true + end + end + raise RuntimeError.new("authentication failed") unless auth + @userid = userid + @sessionid = @authmgr.create_session(userid) + end + end +end + +if $0 == __FILE__ + svr = AuthHeaderPortServer.new('AuthHeaderPortServer', nil, '0.0.0.0', 7000) + trap(:INT) do + svr.shutdown + end + status = svr.start +end diff --git a/sample/soap/authheader/server2.rb b/sample/soap/authheader/server2.rb new file mode 100644 index 0000000000..b0065e3140 --- /dev/null +++ b/sample/soap/authheader/server2.rb @@ -0,0 +1,77 @@ +#!/usr/bin/env ruby + +require 'soap/rpc/standaloneServer' +require 'soap/header/simplehandler' +require 'authmgr' + +class AuthHeaderPortServer < SOAP::RPC::StandaloneServer + class AuthHeaderService + def self.create + new + end + + def initialize(authmgr) + @authmgr = authmgr + end + + def login(userid, passwd) + if @authmgr.login(userid, passwd) + @authmgr.create_session(userid) + else + raise RuntimeError.new("authentication failed") + end + end + + def deposit(amt) + "deposit #{amt} OK" + end + + def withdrawal(amt) + "withdrawal #{amt} OK" + end + end + + Name = 'http://tempuri.org/authHeaderPort' + def initialize(*arg) + super + add_rpc_servant(AuthHeaderService.new, Name) + ServerAuthHeaderHandler.init + add_rpc_request_headerhandler(ServerAuthHeaderHandler) + end + + class ServerAuthHeaderHandler < SOAP::Header::SimpleHandler + MyHeaderName = XSD::QName.new("http://tempuri.org/authHeader", "auth") + + def self.create + new(@authmgr) + end + + def initialize(authmgr) + super(MyHeaderName) + @authmgr = authmgr + @sessionid = nil + end + + def on_simple_outbound + if @sessionid + { "sessionid" => @sessionid } + end + end + + def on_simple_inbound(my_header, mu) + auth = false + if sessionid = my_header["sessionid"] + if userid = @authmgr.auth(sessionid) + @authmgr.destroy_session(sessionid) + @session_id = @authmgr.create_session(userid) + auth = true + end + end + raise RuntimeError.new("authentication failed") unless auth + end + end +end + +if $0 == __FILE__ + status = AuthHeaderPortServer.new('AuthHeaderPortServer', nil, '0.0.0.0', 7000).start +end diff --git a/sample/soap/raa2.4/raa.rb b/sample/soap/raa2.4/raa.rb new file mode 100644 index 0000000000..9b4c4e41aa --- /dev/null +++ b/sample/soap/raa2.4/raa.rb @@ -0,0 +1,332 @@ +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Gem + @@schema_type = "Gem" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def id + @id + end + + def id=(value) + @id = value + end + + def category + @category + end + + def category=(value) + @category = value + end + + def owner + @owner + end + + def owner=(value) + @owner = value + end + + def project + @project + end + + def project=(value) + @project = value + end + + def updated + @updated + end + + def updated=(value) + @updated = value + end + + def created + @created + end + + def created=(value) + @created = value + end + + def initialize(id = nil, + category = nil, + owner = nil, + project = nil, + updated = nil, + created = nil) + @id = id + @category = category + @owner = owner + @project = project + @updated = updated + @created = created + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Category + @@schema_type = "Category" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def major + @major + end + + def major=(value) + @major = value + end + + def minor + @minor + end + + def minor=(value) + @minor = value + end + + def initialize(major = nil, + minor = nil) + @major = major + @minor = minor + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Owner + @@schema_type = "Owner" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def id + @id + end + + def id=(value) + @id = value + end + + def email + @email + end + + def email=(value) + @email = value + end + + def name + @name + end + + def name=(value) + @name = value + end + + def initialize(id = nil, + email = nil, + name = nil) + @id = id + @email = email + @name = name + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Project + @@schema_type = "Project" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def name + @name + end + + def name=(value) + @name = value + end + + def short_description + @short_description + end + + def short_description=(value) + @short_description = value + end + + def version + @version + end + + def version=(value) + @version = value + end + + def status + @status + end + + def status=(value) + @status = value + end + + def url + @url + end + + def url=(value) + @url = value + end + + def download + @download + end + + def download=(value) + @download = value + end + + def license + @license + end + + def license=(value) + @license = value + end + + def description + @description + end + + def description=(value) + @description = value + end + + def updated + @updated + end + + def updated=(value) + @updated = value + end + + def history + @history + end + + def history=(value) + @history = value + end + + def dependency + @dependency + end + + def dependency=(value) + @dependency = value + end + + def initialize(name = nil, + short_description = nil, + version = nil, + status = nil, + url = nil, + download = nil, + license = nil, + description = nil, + updated = nil, + history = nil, + dependency = nil) + @name = name + @short_description = short_description + @version = version + @status = status + @url = url + @download = download + @license = license + @description = description + @updated = updated + @history = history + @dependency = dependency + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectDependency + @@schema_type = "ProjectDependency" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def project + @project + end + + def project=(value) + @project = value + end + + def version + @version + end + + def version=(value) + @version = value + end + + def description + @description + end + + def description=(value) + @description = value + end + + def initialize(project = nil, + version = nil, + description = nil) + @project = project + @version = version + @description = description + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class GemArray < Array + # Contents type should be dumped here... + @@schema_type = "GemArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class OwnerArray < Array + # Contents type should be dumped here... + @@schema_type = "OwnerArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectArray < Array + # Contents type should be dumped here... + @@schema_type = "ProjectArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectDependencyArray < Array + # Contents type should be dumped here... + @@schema_type = "ProjectDependencyArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class StringArray < Array + # Contents type should be dumped here... + @@schema_type = "StringArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://xml.apache.org/xml-soap +class Map < Array + # Contents type should be dumped here... + @@schema_type = "Map" + @@schema_ns = "http://xml.apache.org/xml-soap" +end + diff --git a/sample/soap/raa2.4/raaDriver.rb b/sample/soap/raa2.4/raaDriver.rb new file mode 100644 index 0000000000..10d0ba257e --- /dev/null +++ b/sample/soap/raa2.4/raaDriver.rb @@ -0,0 +1,255 @@ +require 'raa.rb' + +require 'soap/rpc/driver' + +class RaaServicePortType < SOAP::RPC::Driver + TargetNamespace = "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + MappingRegistry = ::SOAP::Mapping::Registry.new + + MappingRegistry.set( + Gem, + ::SOAP::SOAPStruct, + ::SOAP::Mapping::Registry::TypedStructFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Gem") } + ) + MappingRegistry.set( + Category, + ::SOAP::SOAPStruct, + ::SOAP::Mapping::Registry::TypedStructFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Category") } + ) + MappingRegistry.set( + Owner, + ::SOAP::SOAPStruct, + ::SOAP::Mapping::Registry::TypedStructFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Owner") } + ) + MappingRegistry.set( + Project, + ::SOAP::SOAPStruct, + ::SOAP::Mapping::Registry::TypedStructFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Project") } + ) + MappingRegistry.set( + ProjectArray, + ::SOAP::SOAPArray, + ::SOAP::Mapping::Registry::TypedArrayFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Project") } + ) + MappingRegistry.set( + ProjectDependencyArray, + ::SOAP::SOAPArray, + ::SOAP::Mapping::Registry::TypedArrayFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "ProjectDependency") } + ) + MappingRegistry.set( + StringArray, + ::SOAP::SOAPArray, + ::SOAP::Mapping::Registry::TypedArrayFactory, + { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") } + ) + MappingRegistry.set( + Map, + ::SOAP::SOAPArray, + ::SOAP::Mapping::Registry::TypedArrayFactory, + { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "anyType") } + ) + MappingRegistry.set( + OwnerArray, + ::SOAP::SOAPArray, + ::SOAP::Mapping::Registry::TypedArrayFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Owner") } + ) + MappingRegistry.set( + ProjectDependency, + ::SOAP::SOAPStruct, + ::SOAP::Mapping::Registry::TypedStructFactory, + { :type => XSD::QName.new("http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "ProjectDependency") } + ) + Methods = [ + ["gem", "gem", + [ + ["in", "name", [SOAP::SOAPString]], + ["retval", "return", [::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Gem"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["dependents", "dependents", + [ + ["in", "name", [SOAP::SOAPString]], + ["in", "version", [SOAP::SOAPString]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "ProjectDependency"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["names", "names", + [ + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["size", "size", + [ + ["retval", "return", [SOAP::SOAPInt]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_by_category", "list_by_category", + [ + ["in", "major", [SOAP::SOAPString]], + ["in", "minor", [SOAP::SOAPString]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["tree_by_category", "tree_by_category", + [ + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "anyType"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_recent_updated", "list_recent_updated", + [ + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_recent_created", "list_recent_created", + [ + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_updated_since", "list_updated_since", + [ + ["in", "date", [SOAP::SOAPDateTime]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_created_since", "list_created_since", + [ + ["in", "date", [SOAP::SOAPDateTime]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_by_owner", "list_by_owner", + [ + ["in", "owner_id", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_name", "search_name", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_short_description", "search_short_description", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_owner", "search_owner", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_version", "search_version", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_status", "search_status", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search_description", "search_description", + [ + ["in", "substring", [SOAP::SOAPString]], + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "string"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["search", "search", + [ + ["in", "substring", [SOAP::SOAPString]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.w3.org/2001/XMLSchema", "anyType"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["owner", "owner", + [ + ["in", "owner_id", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Owner"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["list_owner", "list_owner", + [ + ["in", "idx", [SOAP::SOAPInt]], + ["retval", "return", [::SOAP::SOAPArray, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Owner"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["update", "update", + [ + ["in", "name", [SOAP::SOAPString]], + ["in", "pass", [SOAP::SOAPString]], + ["in", "gem", [::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Gem"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/", "Gem"]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ], + ["update_pass", "update_pass", + [ + ["in", "name", [SOAP::SOAPString]], + ["in", "oldpass", [SOAP::SOAPString]], + ["in", "newpass", [SOAP::SOAPString]] + ], + "", "http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/" + ] + ] + + DefaultEndpointUrl = "http://raa.ruby-lang.org/soapsrv" + + 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| + qname = XSD::QName.new(namespace, name_as) + @proxy.add_method(qname, soapaction, name, params) + add_rpc_method_interface(name, params) + end + end +end + diff --git a/sample/soap/raa2.4/raaServiceClient.rb b/sample/soap/raa2.4/raaServiceClient.rb new file mode 100644 index 0000000000..a59815ba72 --- /dev/null +++ b/sample/soap/raa2.4/raaServiceClient.rb @@ -0,0 +1,354 @@ +#!/usr/bin/env ruby +require 'raaDriver.rb' + +endpoint_url = ARGV.shift +obj = RaaServicePortType.new(endpoint_url) + +# Uncomment the below line to see SOAP wiredumps. +# obj.wiredump_dev = STDERR + +# SYNOPSIS +# gem(name) +# +# ARGS +# name - {http://www.w3.org/2001/XMLSchema}string +# +# RETURNS +# return Gem - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Gem +# +# RAISES +# (undefined) +# +name = nil +puts obj.gem(name) + +# SYNOPSIS +# dependents(name, version) +# +# ARGS +# name - {http://www.w3.org/2001/XMLSchema}string +# version - {http://www.w3.org/2001/XMLSchema}string +# +# RETURNS +# return ProjectDependencyArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}ProjectDependencyArray +# +# RAISES +# (undefined) +# +name = version = nil +puts obj.dependents(name, version) + +# SYNOPSIS +# names +# +# ARGS +# N/A +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# + +puts obj.names + +# SYNOPSIS +# size +# +# ARGS +# N/A +# +# RETURNS +# return - {http://www.w3.org/2001/XMLSchema}int +# +# RAISES +# (undefined) +# + +puts obj.size + +# SYNOPSIS +# list_by_category(major, minor) +# +# ARGS +# major - {http://www.w3.org/2001/XMLSchema}string +# minor - {http://www.w3.org/2001/XMLSchema}string +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +major = minor = nil +puts obj.list_by_category(major, minor) + +# SYNOPSIS +# tree_by_category +# +# ARGS +# N/A +# +# RETURNS +# return Map - {http://xml.apache.org/xml-soap}Map +# +# RAISES +# (undefined) +# + +puts obj.tree_by_category + +# SYNOPSIS +# list_recent_updated(idx) +# +# ARGS +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +idx = nil +puts obj.list_recent_updated(idx) + +# SYNOPSIS +# list_recent_created(idx) +# +# ARGS +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +idx = nil +puts obj.list_recent_created(idx) + +# SYNOPSIS +# list_updated_since(date, idx) +# +# ARGS +# date - {http://www.w3.org/2001/XMLSchema}dateTime +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +date = idx = nil +puts obj.list_updated_since(date, idx) + +# SYNOPSIS +# list_created_since(date, idx) +# +# ARGS +# date - {http://www.w3.org/2001/XMLSchema}dateTime +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +date = idx = nil +puts obj.list_created_since(date, idx) + +# SYNOPSIS +# list_by_owner(owner_id) +# +# ARGS +# owner_id - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +owner_id = nil +puts obj.list_by_owner(owner_id) + +# SYNOPSIS +# search_name(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_name(substring, idx) + +# SYNOPSIS +# search_short_description(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_short_description(substring, idx) + +# SYNOPSIS +# search_owner(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_owner(substring, idx) + +# SYNOPSIS +# search_version(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_version(substring, idx) + +# SYNOPSIS +# search_status(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_status(substring, idx) + +# SYNOPSIS +# search_description(substring, idx) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return StringArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray +# +# RAISES +# (undefined) +# +substring = idx = nil +puts obj.search_description(substring, idx) + +# SYNOPSIS +# search(substring) +# +# ARGS +# substring - {http://www.w3.org/2001/XMLSchema}string +# +# RETURNS +# return Map - {http://xml.apache.org/xml-soap}Map +# +# RAISES +# (undefined) +# +substring = nil +puts obj.search(substring) + +# SYNOPSIS +# owner(owner_id) +# +# ARGS +# owner_id - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return Owner - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Owner +# +# RAISES +# (undefined) +# +owner_id = nil +puts obj.owner(owner_id) + +# SYNOPSIS +# list_owner(idx) +# +# ARGS +# idx - {http://www.w3.org/2001/XMLSchema}int +# +# RETURNS +# return OwnerArray - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}OwnerArray +# +# RAISES +# (undefined) +# +idx = nil +puts obj.list_owner(idx) + +# SYNOPSIS +# update(name, pass, gem) +# +# ARGS +# name - {http://www.w3.org/2001/XMLSchema}string +# pass - {http://www.w3.org/2001/XMLSchema}string +# gem Gem - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Gem +# +# RETURNS +# return Gem - {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Gem +# +# RAISES +# (undefined) +# +name = pass = gem = nil +puts obj.update(name, pass, gem) + +# SYNOPSIS +# update_pass(name, oldpass, newpass) +# +# ARGS +# name - {http://www.w3.org/2001/XMLSchema}string +# oldpass - {http://www.w3.org/2001/XMLSchema}string +# newpass - {http://www.w3.org/2001/XMLSchema}string +# +# RETURNS +# N/A +# +# RAISES +# (undefined) +# +name = oldpass = newpass = nil +puts obj.update_pass(name, oldpass, newpass) + + diff --git a/sample/soap/raa2.4/sample.rb b/sample/soap/raa2.4/sample.rb new file mode 100644 index 0000000000..e157f8361f --- /dev/null +++ b/sample/soap/raa2.4/sample.rb @@ -0,0 +1,115 @@ +#!/usr/bin/env ruby + +# This is a sample client based on raaServiceClient.rb. +# You can generate raaServiceClient.rb and related files with +# wsdl2ruby.rb --wsdl http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/ --type client + +require 'pp' +require 'raaDriver.rb' + +raa = RaaServicePortType.new +# raa.wiredump_dev = STDERR + +def sec(msg) + puts + puts "--------" + puts "-- " + msg + puts +end + +def subsec(msg) + puts "-- " + msg +end + +sec("retrieve a gem (RAA Information) which has specified name") +name = 'soap4r' +pp raa.gem(name) + +sec("retrieve dependents of the project") +name = 'http-access2'; version = nil +pp raa.dependents(name, version) + +sec("number of registered gems") +puts raa.size + +sec("retrieve all registered gem names") +p raa.names + +sec("retrieve gems of specified category") +major = 'Library'; minor = 'XML' +p raa.list_by_category(major, minor) + +sec("retrieve category tree") +pp raa.tree_by_category + +sec("retrieve gems which is updated recently") +idx = 0 +p raa.list_recent_updated(idx) +subsec("next 10 gems") +idx += 1 +p raa.list_recent_updated(idx) +subsec("next 10 gems") +idx += 1 +p raa.list_recent_updated(idx) + +sec("retrieve gems which is created recently") +p raa.list_recent_created(idx) + +sec("retrieve gems which is updated in 7 days") +date = Time.now - 7 * 24 * 60 * 60; idx = 0 +p raa.list_updated_since(date, idx) + +sec("retrieve gems which is created in 7 days") +p raa.list_created_since(date, idx) + +sec("retrieve gems of specified owner") +owner_id = 8 # NaHi +p raa.list_by_owner(owner_id) + +sec("search gems with keyword") +substring = 'soap' +pp raa.search(substring) + +# There are several search interface to search a field explicitly. +# puts raa.search_name(substring, idx) +# puts raa.search_short_description(substring, idx) +# puts raa.search_owner(substring, idx) +# puts raa.search_version(substring, idx) +# puts raa.search_status(substring, idx) +# puts raa.search_description(substring, idx) + +sec("retrieve owner info") +owner_id = 8 +pp raa.owner(owner_id) + +sec("retrieve owners") +idx = 0 +p raa.list_owner(idx) + +sec("update 'sampleproject'") +name = 'sampleproject' +pass = 'sampleproject' +gem = raa.gem(name) +p gem.project.version +gem.project.version.succ! +gem.updated = Time.now +raa.update(name, pass, gem) +p raa.gem(name).project.version + +sec("update pass phrase") +raa.update_pass(name, 'sampleproject', 'foo') +subsec("update check") +gem = raa.gem(name) +gem.project.description = 'Current pass phrase is "foo"' +gem.updated = Time.now +raa.update(name, 'foo', gem) +# +subsec("recover pass phrase") +raa.update_pass(name, 'foo', 'sampleproject') +subsec("update check") +gem = raa.gem(name) +gem.project.description = 'Current pass phrase is "sampleproject"' +gem.updated = Time.now +raa.update(name, 'sampleproject', gem) + +sec("done") diff --git a/sample/soap/sampleStruct/server.rb b/sample/soap/sampleStruct/server.rb index 3caa31a052..ea1a2ef1d4 100644 --- a/sample/soap/sampleStruct/server.rb +++ b/sample/soap/sampleStruct/server.rb @@ -12,5 +12,9 @@ class SampleStructServer < SOAP::RPC::StandaloneServer end if $0 == __FILE__ - status = SampleStructServer.new('SampleStructServer', SampleStructServiceNamespace, '0.0.0.0', 7000).start + server = SampleStructServer.new('SampleStructServer', SampleStructServiceNamespace, '0.0.0.0', 7000) + trap(:INT) do + server.shutdown + end + server.start end diff --git a/sample/soap/ssl/files/README b/sample/soap/ssl/files/README new file mode 100644 index 0000000000..98ebcf7c23 --- /dev/null +++ b/sample/soap/ssl/files/README @@ -0,0 +1 @@ +* certificates and keys in this directory is copied from http-access2 test. diff --git a/sample/soap/ssl/files/ca.cert b/sample/soap/ssl/files/ca.cert new file mode 100644 index 0000000000..bcabbee4ad --- /dev/null +++ b/sample/soap/ssl/files/ca.cert @@ -0,0 +1,23 @@ +-----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/sample/soap/ssl/files/client.cert b/sample/soap/ssl/files/client.cert new file mode 100644 index 0000000000..ad13c4b735 --- /dev/null +++ b/sample/soap/ssl/files/client.cert @@ -0,0 +1,19 @@ +-----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/sample/soap/ssl/files/client.key b/sample/soap/ssl/files/client.key new file mode 100644 index 0000000000..37bc62f259 --- /dev/null +++ b/sample/soap/ssl/files/client.key @@ -0,0 +1,15 @@ +-----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/sample/soap/ssl/files/server.cert b/sample/soap/ssl/files/server.cert new file mode 100644 index 0000000000..998ccc5892 --- /dev/null +++ b/sample/soap/ssl/files/server.cert @@ -0,0 +1,19 @@ +-----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/sample/soap/ssl/files/server.key b/sample/soap/ssl/files/server.key new file mode 100644 index 0000000000..9ba2218a03 --- /dev/null +++ b/sample/soap/ssl/files/server.key @@ -0,0 +1,15 @@ +-----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/sample/soap/ssl/files/sslclient.properties b/sample/soap/ssl/files/sslclient.properties new file mode 100644 index 0000000000..547ac7b3fb --- /dev/null +++ b/sample/soap/ssl/files/sslclient.properties @@ -0,0 +1,5 @@ +# verify server's certificate +protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER +# certificates for verification +protocol.http.ssl_config.ca_file = files/ca.cert +protocol.http.ssl_config.ca_file = files/subca.cert diff --git a/sample/soap/ssl/files/sslclient_require_noserverauth.properties b/sample/soap/ssl/files/sslclient_require_noserverauth.properties new file mode 100644 index 0000000000..5ce5337fbf --- /dev/null +++ b/sample/soap/ssl/files/sslclient_require_noserverauth.properties @@ -0,0 +1,2 @@ +# no verify server's certificate +protocol.http.ssl_config.verify_mode = diff --git a/sample/soap/ssl/files/sslclient_with_clientauth.properties b/sample/soap/ssl/files/sslclient_with_clientauth.properties new file mode 100644 index 0000000000..f1c81ebf46 --- /dev/null +++ b/sample/soap/ssl/files/sslclient_with_clientauth.properties @@ -0,0 +1,9 @@ +# verify server's certificate +protocol.http.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_PEER +# certificates for verification +protocol.http.ssl_config.ca_file = files/ca.cert +protocol.http.ssl_config.ca_file = files/subca.cert + +# key and certificate for client identity +protocol.http.ssl_config.client_cert = files/client.cert +protocol.http.ssl_config.client_key = files/client.key diff --git a/sample/soap/ssl/files/subca.cert b/sample/soap/ssl/files/subca.cert new file mode 100644 index 0000000000..1e471851b8 --- /dev/null +++ b/sample/soap/ssl/files/subca.cert @@ -0,0 +1,21 @@ +-----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/sample/soap/ssl/sslclient.rb b/sample/soap/ssl/sslclient.rb new file mode 100644 index 0000000000..a055247a4c --- /dev/null +++ b/sample/soap/ssl/sslclient.rb @@ -0,0 +1,12 @@ +require 'http-access2' +require 'soap/rpc/driver' + +# setup driver +url = "https://localhost:17443/" +client = SOAP::RPC::Driver.new(url, 'urn:sslhelloworld') +client.add_method("hello_world", "from") +# load SSL properties +client.loadproperty('files/sslclient.properties') + +# SOAP over SSL +p client.hello_world(__FILE__) diff --git a/sample/soap/ssl/sslclient_require_noserverauth.rb b/sample/soap/ssl/sslclient_require_noserverauth.rb new file mode 100644 index 0000000000..af121e9a41 --- /dev/null +++ b/sample/soap/ssl/sslclient_require_noserverauth.rb @@ -0,0 +1,12 @@ +require 'http-access2' +require 'soap/rpc/driver' + +# setup driver +url = "https://localhost:17443/" +client = SOAP::RPC::Driver.new(url, 'urn:sslhelloworld') +client.add_method("hello_world", "from") +# load SSL properties +client.loadproperty('files/sslclient_require_noserverauth.properties') + +# SOAP over SSL +p client.hello_world(__FILE__) diff --git a/sample/soap/ssl/sslclient_with_clientauth.rb b/sample/soap/ssl/sslclient_with_clientauth.rb new file mode 100644 index 0000000000..7753d7b807 --- /dev/null +++ b/sample/soap/ssl/sslclient_with_clientauth.rb @@ -0,0 +1,12 @@ +require 'http-access2' +require 'soap/rpc/driver' + +# setup driver +url = "https://localhost:17443/" +client = SOAP::RPC::Driver.new(url, 'urn:sslhelloworld') +client.add_method("hello_world", "from") +# load SSL properties +client.loadproperty('files/sslclient_with_clientauth.properties') + +# SOAP over SSL +p client.hello_world(__FILE__) diff --git a/sample/soap/ssl/sslserver.rb b/sample/soap/ssl/sslserver.rb new file mode 100644 index 0000000000..e65cbacc7f --- /dev/null +++ b/sample/soap/ssl/sslserver.rb @@ -0,0 +1,49 @@ +require 'soap/rpc/httpserver' +require 'webrick/https' +require 'logger' + +class HelloWorldServer < SOAP::RPC::HTTPServer +private + + def on_init + @default_namespace = 'urn:sslhelloworld' + add_method(self, 'hello_world', 'from') + end + + def hello_world(from) + "Hello World, from #{ from }" + end +end + + +if $0 == __FILE__ + 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 => 17443, + :AccessLog => [], + :SSLEnable => true, + :SSLCACertificateFile => File.join(DIR, 'files/ca.cert'), + :SSLCertificate => cert('files/server.cert'), + :SSLPrivateKey => key('files/server.key'), + :SSLVerifyClient => nil, + :SSLCertName => nil + ) + trap(:INT) do + $server.shutdown + end + $server.start +end diff --git a/sample/soap/ssl/sslserver_noauth.rb b/sample/soap/ssl/sslserver_noauth.rb new file mode 100644 index 0000000000..48f5a68ad0 --- /dev/null +++ b/sample/soap/ssl/sslserver_noauth.rb @@ -0,0 +1,45 @@ +require 'soap/rpc/httpserver' +require 'webrick/https' +require 'logger' + +class HelloWorldServer < SOAP::RPC::HTTPServer +private + + def on_init + @default_namespace = 'urn:sslhelloworld' + add_method(self, 'hello_world', 'from') + end + + def hello_world(from) + "Hello World, from #{ from }" + end +end + + +if $0 == __FILE__ + 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 => 17443, + :AccessLog => [], + :SSLEnable => true, + :SSLCertName => [['OU', 'example'], ['CN', 'localhost']] # creates dummy certificate + ) + trap(:INT) do + $server.shutdown + end + $server.start +end diff --git a/sample/soap/ssl/sslserver_require_clientauth.rb b/sample/soap/ssl/sslserver_require_clientauth.rb new file mode 100644 index 0000000000..63caf69caf --- /dev/null +++ b/sample/soap/ssl/sslserver_require_clientauth.rb @@ -0,0 +1,50 @@ +require 'soap/rpc/httpserver' +require 'webrick/https' +require 'logger' + +class HelloWorldServer < SOAP::RPC::HTTPServer +private + + def on_init + @default_namespace = 'urn:sslhelloworld' + add_method(self, 'hello_world', 'from') + end + + def hello_world(from) + "Hello World, from #{ from }" + end +end + + +if $0 == __FILE__ + 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 => 17443, + :AccessLog => [], + :SSLEnable => true, + :SSLCACertificateFile => File.join(DIR, 'files/ca.cert'), + :SSLCertificate => cert('files/server.cert'), + :SSLPrivateKey => key('files/server.key'), + :SSLVerifyClient => + OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT|OpenSSL::SSL::VERIFY_PEER, + :SSLClientCA => cert('files/ca.cert') + ) + trap(:INT) do + $server.shutdown + end + $server.start +end diff --git a/sample/soap/swa/client.rb b/sample/soap/swa/client.rb new file mode 100644 index 0000000000..01c59a3845 --- /dev/null +++ b/sample/soap/swa/client.rb @@ -0,0 +1,13 @@ +require 'soap/rpc/driver' +require 'soap/attachment' + +server = 'http://localhost:7000/' +driver = SOAP::RPC::Driver.new(server, 'http://www.acmetron.com/soap') +driver.wiredump_dev = STDERR +driver.add_method('get_file') +driver.add_method('put_file', 'name', 'file') + +p driver.get_file +file = File.open($0) +attach = SOAP::Attachment.new(file) +p driver.put_file($0, attach) diff --git a/sample/soap/swa/server.rb b/sample/soap/swa/server.rb new file mode 100644 index 0000000000..0a82fe58bf --- /dev/null +++ b/sample/soap/swa/server.rb @@ -0,0 +1,23 @@ +require 'soap/rpc/standaloneServer' +require 'soap/attachment' + +class SwAService + def get_file + return { + 'name' => $0, + 'file' => SOAP::Attachment.new(File.open($0)) + } + end + + def put_file(name, file) + "File '#{name}' was received ok." + end +end + +server = SOAP::RPC::StandaloneServer.new('SwAServer', + 'http://www.acmetron.com/soap', '0.0.0.0', 7000) +server.add_servant(SwAService.new) +trap(:INT) do + server.shutdown +end +server.start diff --git a/sample/soap/whois.rb b/sample/soap/whois.rb new file mode 100644 index 0000000000..2737e8085e --- /dev/null +++ b/sample/soap/whois.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +key = ARGV.shift + +require 'soap/rpc/driver' + +server = 'http://www.SoapClient.com/xml/SQLDataSoap.WSDL' +interface = 'http://www.SoapClient.com/xml/SQLDataSoap.xsd' + +whois = SOAP::RPC::Driver.new(server, interface) +whois.wiredump_dev = STDERR +whois.add_method('ProcessSRL', 'SRLFile', 'RequestName', 'key') + +p whois.ProcessSRL('WHOIS.SRI', 'whois', key) diff --git a/sample/wsdl/amazon/AmazonSearch.rb b/sample/wsdl/amazon/AmazonSearch.rb index 1027592d85..373c7da29d 100644 --- a/sample/wsdl/amazon/AmazonSearch.rb +++ b/sample/wsdl/amazon/AmazonSearch.rb @@ -1,6 +1,5 @@ # http://soap.amazon.com class ProductLineArray < Array - # Contents type should be dumped here... @@schema_type = "ProductLineArray" @@schema_ns = "http://soap.amazon.com" end @@ -13,22 +12,30 @@ class ProductLine def Mode @mode end - + def Mode=(value) @mode = value end + def RelevanceRank + @relevanceRank + end + + def RelevanceRank=(value) + @relevanceRank = value + end + def ProductInfo @productInfo end - + def ProductInfo=(value) @productInfo = value end - def initialize(mode = nil, - productInfo = nil) + def initialize(mode = nil, relevanceRank = nil, productInfo = nil) @mode = mode + @relevanceRank = relevanceRank @productInfo = productInfo end end @@ -41,7 +48,7 @@ class ProductInfo def TotalResults @totalResults end - + def TotalResults=(value) @totalResults = value end @@ -49,7 +56,7 @@ class ProductInfo def TotalPages @totalPages end - + def TotalPages=(value) @totalPages = value end @@ -57,7 +64,7 @@ class ProductInfo def ListName @listName end - + def ListName=(value) @listName = value end @@ -65,15 +72,12 @@ class ProductInfo def Details @details end - + def Details=(value) @details = value end - def initialize(totalResults = nil, - totalPages = nil, - listName = nil, - details = nil) + def initialize(totalResults = nil, totalPages = nil, listName = nil, details = nil) @totalResults = totalResults @totalPages = totalPages @listName = listName @@ -83,7 +87,6 @@ end # http://soap.amazon.com class DetailsArray < Array - # Contents type should be dumped here... @@schema_type = "DetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -96,7 +99,7 @@ class Details def Url @url end - + def Url=(value) @url = value end @@ -104,7 +107,7 @@ class Details def Asin @asin end - + def Asin=(value) @asin = value end @@ -112,7 +115,7 @@ class Details def ProductName @productName end - + def ProductName=(value) @productName = value end @@ -120,7 +123,7 @@ class Details def Catalog @catalog end - + def Catalog=(value) @catalog = value end @@ -128,7 +131,7 @@ class Details def KeyPhrases @keyPhrases end - + def KeyPhrases=(value) @keyPhrases = value end @@ -136,7 +139,7 @@ class Details def Artists @artists end - + def Artists=(value) @artists = value end @@ -144,7 +147,7 @@ class Details def Authors @authors end - + def Authors=(value) @authors = value end @@ -152,7 +155,7 @@ class Details def Mpn @mpn end - + def Mpn=(value) @mpn = value end @@ -160,7 +163,7 @@ class Details def Starring @starring end - + def Starring=(value) @starring = value end @@ -168,7 +171,7 @@ class Details def Directors @directors end - + def Directors=(value) @directors = value end @@ -176,7 +179,7 @@ class Details def TheatricalReleaseDate @theatricalReleaseDate end - + def TheatricalReleaseDate=(value) @theatricalReleaseDate = value end @@ -184,7 +187,7 @@ class Details def ReleaseDate @releaseDate end - + def ReleaseDate=(value) @releaseDate = value end @@ -192,7 +195,7 @@ class Details def Manufacturer @manufacturer end - + def Manufacturer=(value) @manufacturer = value end @@ -200,7 +203,7 @@ class Details def Distributor @distributor end - + def Distributor=(value) @distributor = value end @@ -208,7 +211,7 @@ class Details def ImageUrlSmall @imageUrlSmall end - + def ImageUrlSmall=(value) @imageUrlSmall = value end @@ -216,7 +219,7 @@ class Details def ImageUrlMedium @imageUrlMedium end - + def ImageUrlMedium=(value) @imageUrlMedium = value end @@ -224,7 +227,7 @@ class Details def ImageUrlLarge @imageUrlLarge end - + def ImageUrlLarge=(value) @imageUrlLarge = value end @@ -232,7 +235,7 @@ class Details def MerchantId @merchantId end - + def MerchantId=(value) @merchantId = value end @@ -240,7 +243,7 @@ class Details def MinPrice @minPrice end - + def MinPrice=(value) @minPrice = value end @@ -248,7 +251,7 @@ class Details def MaxPrice @maxPrice end - + def MaxPrice=(value) @maxPrice = value end @@ -256,7 +259,7 @@ class Details def MinSalePrice @minSalePrice end - + def MinSalePrice=(value) @minSalePrice = value end @@ -264,7 +267,7 @@ class Details def MaxSalePrice @maxSalePrice end - + def MaxSalePrice=(value) @maxSalePrice = value end @@ -272,7 +275,7 @@ class Details def MultiMerchant @multiMerchant end - + def MultiMerchant=(value) @multiMerchant = value end @@ -280,7 +283,7 @@ class Details def MerchantSku @merchantSku end - + def MerchantSku=(value) @merchantSku = value end @@ -288,7 +291,7 @@ class Details def ListPrice @listPrice end - + def ListPrice=(value) @listPrice = value end @@ -296,7 +299,7 @@ class Details def OurPrice @ourPrice end - + def OurPrice=(value) @ourPrice = value end @@ -304,7 +307,7 @@ class Details def UsedPrice @usedPrice end - + def UsedPrice=(value) @usedPrice = value end @@ -312,7 +315,7 @@ class Details def RefurbishedPrice @refurbishedPrice end - + def RefurbishedPrice=(value) @refurbishedPrice = value end @@ -320,7 +323,7 @@ class Details def CollectiblePrice @collectiblePrice end - + def CollectiblePrice=(value) @collectiblePrice = value end @@ -328,7 +331,7 @@ class Details def ThirdPartyNewPrice @thirdPartyNewPrice end - + def ThirdPartyNewPrice=(value) @thirdPartyNewPrice = value end @@ -336,7 +339,7 @@ class Details def NumberOfOfferings @numberOfOfferings end - + def NumberOfOfferings=(value) @numberOfOfferings = value end @@ -344,7 +347,7 @@ class Details def ThirdPartyNewCount @thirdPartyNewCount end - + def ThirdPartyNewCount=(value) @thirdPartyNewCount = value end @@ -352,7 +355,7 @@ class Details def UsedCount @usedCount end - + def UsedCount=(value) @usedCount = value end @@ -360,7 +363,7 @@ class Details def CollectibleCount @collectibleCount end - + def CollectibleCount=(value) @collectibleCount = value end @@ -368,7 +371,7 @@ class Details def RefurbishedCount @refurbishedCount end - + def RefurbishedCount=(value) @refurbishedCount = value end @@ -376,7 +379,7 @@ class Details def ThirdPartyProductInfo @thirdPartyProductInfo end - + def ThirdPartyProductInfo=(value) @thirdPartyProductInfo = value end @@ -384,7 +387,7 @@ class Details def SalesRank @salesRank end - + def SalesRank=(value) @salesRank = value end @@ -392,7 +395,7 @@ class Details def BrowseList @browseList end - + def BrowseList=(value) @browseList = value end @@ -400,7 +403,7 @@ class Details def Media @media end - + def Media=(value) @media = value end @@ -408,15 +411,63 @@ class Details def ReadingLevel @readingLevel end - + def ReadingLevel=(value) @readingLevel = value end + def NumberOfPages + @numberOfPages + end + + def NumberOfPages=(value) + @numberOfPages = value + end + + def NumberOfIssues + @numberOfIssues + end + + def NumberOfIssues=(value) + @numberOfIssues = value + end + + def IssuesPerYear + @issuesPerYear + end + + def IssuesPerYear=(value) + @issuesPerYear = value + end + + def SubscriptionLength + @subscriptionLength + end + + def SubscriptionLength=(value) + @subscriptionLength = value + end + + def DeweyNumber + @deweyNumber + end + + def DeweyNumber=(value) + @deweyNumber = value + end + + def RunningTime + @runningTime + end + + def RunningTime=(value) + @runningTime = value + end + def Publisher @publisher end - + def Publisher=(value) @publisher = value end @@ -424,7 +475,7 @@ class Details def NumMedia @numMedia end - + def NumMedia=(value) @numMedia = value end @@ -432,7 +483,7 @@ class Details def Isbn @isbn end - + def Isbn=(value) @isbn = value end @@ -440,7 +491,7 @@ class Details def Features @features end - + def Features=(value) @features = value end @@ -448,7 +499,7 @@ class Details def MpaaRating @mpaaRating end - + def MpaaRating=(value) @mpaaRating = value end @@ -456,7 +507,7 @@ class Details def EsrbRating @esrbRating end - + def EsrbRating=(value) @esrbRating = value end @@ -464,7 +515,7 @@ class Details def AgeGroup @ageGroup end - + def AgeGroup=(value) @ageGroup = value end @@ -472,7 +523,7 @@ class Details def Availability @availability end - + def Availability=(value) @availability = value end @@ -480,7 +531,7 @@ class Details def Upc @upc end - + def Upc=(value) @upc = value end @@ -488,7 +539,7 @@ class Details def Tracks @tracks end - + def Tracks=(value) @tracks = value end @@ -496,7 +547,7 @@ class Details def Accessories @accessories end - + def Accessories=(value) @accessories = value end @@ -504,7 +555,7 @@ class Details def Platforms @platforms end - + def Platforms=(value) @platforms = value end @@ -512,7 +563,7 @@ class Details def Encoding @encoding end - + def Encoding=(value) @encoding = value end @@ -520,7 +571,7 @@ class Details def ProductDescription @productDescription end - + def ProductDescription=(value) @productDescription = value end @@ -528,7 +579,7 @@ class Details def Reviews @reviews end - + def Reviews=(value) @reviews = value end @@ -536,7 +587,7 @@ class Details def SimilarProducts @similarProducts end - + def SimilarProducts=(value) @similarProducts = value end @@ -544,7 +595,7 @@ class Details def FeaturedProducts @featuredProducts end - + def FeaturedProducts=(value) @featuredProducts = value end @@ -552,7 +603,7 @@ class Details def Lists @lists end - + def Lists=(value) @lists = value end @@ -560,7 +611,7 @@ class Details def Status @status end - + def Status=(value) @status = value end @@ -568,71 +619,12 @@ class Details def Variations @variations end - + def Variations=(value) @variations = value end - def initialize(url = nil, - asin = nil, - productName = nil, - catalog = nil, - keyPhrases = nil, - artists = nil, - authors = nil, - mpn = nil, - starring = nil, - directors = nil, - theatricalReleaseDate = nil, - releaseDate = nil, - manufacturer = nil, - distributor = nil, - imageUrlSmall = nil, - imageUrlMedium = nil, - imageUrlLarge = nil, - merchantId = nil, - minPrice = nil, - maxPrice = nil, - minSalePrice = nil, - maxSalePrice = nil, - multiMerchant = nil, - merchantSku = nil, - listPrice = nil, - ourPrice = nil, - usedPrice = nil, - refurbishedPrice = nil, - collectiblePrice = nil, - thirdPartyNewPrice = nil, - numberOfOfferings = nil, - thirdPartyNewCount = nil, - usedCount = nil, - collectibleCount = nil, - refurbishedCount = nil, - thirdPartyProductInfo = nil, - salesRank = nil, - browseList = nil, - media = nil, - readingLevel = nil, - publisher = nil, - numMedia = nil, - isbn = nil, - features = nil, - mpaaRating = nil, - esrbRating = nil, - ageGroup = nil, - availability = nil, - upc = nil, - tracks = nil, - accessories = nil, - platforms = nil, - encoding = nil, - productDescription = nil, - reviews = nil, - similarProducts = nil, - featuredProducts = nil, - lists = nil, - status = nil, - variations = nil) + def initialize(url = nil, asin = nil, productName = nil, catalog = nil, keyPhrases = nil, artists = nil, authors = nil, mpn = nil, starring = nil, directors = nil, theatricalReleaseDate = nil, releaseDate = nil, manufacturer = nil, distributor = nil, imageUrlSmall = nil, imageUrlMedium = nil, imageUrlLarge = nil, merchantId = nil, minPrice = nil, maxPrice = nil, minSalePrice = nil, maxSalePrice = nil, multiMerchant = nil, merchantSku = nil, listPrice = nil, ourPrice = nil, usedPrice = nil, refurbishedPrice = nil, collectiblePrice = nil, thirdPartyNewPrice = nil, numberOfOfferings = nil, thirdPartyNewCount = nil, usedCount = nil, collectibleCount = nil, refurbishedCount = nil, thirdPartyProductInfo = nil, salesRank = nil, browseList = nil, media = nil, readingLevel = nil, numberOfPages = nil, numberOfIssues = nil, issuesPerYear = nil, subscriptionLength = nil, deweyNumber = nil, runningTime = nil, publisher = nil, numMedia = nil, isbn = nil, features = nil, mpaaRating = nil, esrbRating = nil, ageGroup = nil, availability = nil, upc = nil, tracks = nil, accessories = nil, platforms = nil, encoding = nil, productDescription = nil, reviews = nil, similarProducts = nil, featuredProducts = nil, lists = nil, status = nil, variations = nil) @url = url @asin = asin @productName = productName @@ -673,6 +665,12 @@ class Details @browseList = browseList @media = media @readingLevel = readingLevel + @numberOfPages = numberOfPages + @numberOfIssues = numberOfIssues + @issuesPerYear = issuesPerYear + @subscriptionLength = subscriptionLength + @deweyNumber = deweyNumber + @runningTime = runningTime @publisher = publisher @numMedia = numMedia @isbn = isbn @@ -698,7 +696,6 @@ end # http://soap.amazon.com class KeyPhraseArray < Array - # Contents type should be dumped here... @@schema_type = "KeyPhraseArray" @@schema_ns = "http://soap.amazon.com" end @@ -711,7 +708,7 @@ class KeyPhrase def KeyPhrase @keyPhrase end - + def KeyPhrase=(value) @keyPhrase = value end @@ -719,13 +716,12 @@ class KeyPhrase def Type @type end - + def Type=(value) @type = value end - def initialize(keyPhrase = nil, - type = nil) + def initialize(keyPhrase = nil, type = nil) @keyPhrase = keyPhrase @type = type end @@ -733,35 +729,30 @@ end # http://soap.amazon.com class ArtistArray < Array - # Contents type should be dumped here... @@schema_type = "ArtistArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class AuthorArray < Array - # Contents type should be dumped here... @@schema_type = "AuthorArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class StarringArray < Array - # Contents type should be dumped here... @@schema_type = "StarringArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class DirectorArray < Array - # Contents type should be dumped here... @@schema_type = "DirectorArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class BrowseNodeArray < Array - # Contents type should be dumped here... @@schema_type = "BrowseNodeArray" @@schema_ns = "http://soap.amazon.com" end @@ -774,7 +765,7 @@ class BrowseNode def BrowseId @browseId end - + def BrowseId=(value) @browseId = value end @@ -782,13 +773,12 @@ class BrowseNode def BrowseName @browseName end - + def BrowseName=(value) @browseName = value end - def initialize(browseId = nil, - browseName = nil) + def initialize(browseId = nil, browseName = nil) @browseId = browseId @browseName = browseName end @@ -796,14 +786,12 @@ end # http://soap.amazon.com class FeaturesArray < Array - # Contents type should be dumped here... @@schema_type = "FeaturesArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class TrackArray < Array - # Contents type should be dumped here... @@schema_type = "TrackArray" @@schema_ns = "http://soap.amazon.com" end @@ -816,7 +804,7 @@ class Track def TrackName @trackName end - + def TrackName=(value) @trackName = value end @@ -824,13 +812,12 @@ class Track def ByArtist @byArtist end - + def ByArtist=(value) @byArtist = value end - def initialize(trackName = nil, - byArtist = nil) + def initialize(trackName = nil, byArtist = nil) @trackName = trackName @byArtist = byArtist end @@ -838,14 +825,12 @@ end # http://soap.amazon.com class AccessoryArray < Array - # Contents type should be dumped here... @@schema_type = "AccessoryArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class PlatformArray < Array - # Contents type should be dumped here... @@schema_type = "PlatformArray" @@schema_ns = "http://soap.amazon.com" end @@ -858,7 +843,7 @@ class Reviews def AvgCustomerRating @avgCustomerRating end - + def AvgCustomerRating=(value) @avgCustomerRating = value end @@ -866,7 +851,7 @@ class Reviews def TotalCustomerReviews @totalCustomerReviews end - + def TotalCustomerReviews=(value) @totalCustomerReviews = value end @@ -874,14 +859,12 @@ class Reviews def CustomerReviews @customerReviews end - + def CustomerReviews=(value) @customerReviews = value end - def initialize(avgCustomerRating = nil, - totalCustomerReviews = nil, - customerReviews = nil) + def initialize(avgCustomerRating = nil, totalCustomerReviews = nil, customerReviews = nil) @avgCustomerRating = avgCustomerRating @totalCustomerReviews = totalCustomerReviews @customerReviews = customerReviews @@ -890,7 +873,6 @@ end # http://soap.amazon.com class CustomerReviewArray < Array - # Contents type should be dumped here... @@schema_type = "CustomerReviewArray" @@schema_ns = "http://soap.amazon.com" end @@ -903,15 +885,23 @@ class CustomerReview def Rating @rating end - + def Rating=(value) @rating = value end + def Date + @date + end + + def Date=(value) + @date = value + end + def Summary @summary end - + def Summary=(value) @summary = value end @@ -919,15 +909,14 @@ class CustomerReview def Comment @comment end - + def Comment=(value) @comment = value end - def initialize(rating = nil, - summary = nil, - comment = nil) + def initialize(rating = nil, date = nil, summary = nil, comment = nil) @rating = rating + @date = date @summary = summary @comment = comment end @@ -935,14 +924,12 @@ end # http://soap.amazon.com class SimilarProductsArray < Array - # Contents type should be dumped here... @@schema_type = "SimilarProductsArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class FeaturedProductsArray < Array - # Contents type should be dumped here... @@schema_type = "FeaturedProductsArray" @@schema_ns = "http://soap.amazon.com" end @@ -955,7 +942,7 @@ class FeaturedProduct def Asin @asin end - + def Asin=(value) @asin = value end @@ -963,13 +950,12 @@ class FeaturedProduct def Comment @comment end - + def Comment=(value) @comment = value end - def initialize(asin = nil, - comment = nil) + def initialize(asin = nil, comment = nil) @asin = asin @comment = comment end @@ -977,14 +963,12 @@ end # http://soap.amazon.com class ListArray < Array - # Contents type should be dumped here... @@schema_type = "ListArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class VariationArray < Array - # Contents type should be dumped here... @@schema_type = "VariationArray" @@schema_ns = "http://soap.amazon.com" end @@ -997,7 +981,7 @@ class Variation def Asin @asin end - + def Asin=(value) @asin = value end @@ -1005,7 +989,7 @@ class Variation def ClothingSize @clothingSize end - + def ClothingSize=(value) @clothingSize = value end @@ -1013,7 +997,7 @@ class Variation def ClothingColor @clothingColor end - + def ClothingColor=(value) @clothingColor = value end @@ -1021,7 +1005,7 @@ class Variation def Price @price end - + def Price=(value) @price = value end @@ -1029,7 +1013,7 @@ class Variation def SalePrice @salePrice end - + def SalePrice=(value) @salePrice = value end @@ -1037,7 +1021,7 @@ class Variation def Availability @availability end - + def Availability=(value) @availability = value end @@ -1045,7 +1029,7 @@ class Variation def MultiMerchant @multiMerchant end - + def MultiMerchant=(value) @multiMerchant = value end @@ -1053,19 +1037,12 @@ class Variation def MerchantSku @merchantSku end - + def MerchantSku=(value) @merchantSku = value end - def initialize(asin = nil, - clothingSize = nil, - clothingColor = nil, - price = nil, - salePrice = nil, - availability = nil, - multiMerchant = nil, - merchantSku = nil) + def initialize(asin = nil, clothingSize = nil, clothingColor = nil, price = nil, salePrice = nil, availability = nil, multiMerchant = nil, merchantSku = nil) @asin = asin @clothingSize = clothingSize @clothingColor = clothingColor @@ -1085,7 +1062,7 @@ class MarketplaceSearch def MarketplaceSearchDetails @marketplaceSearchDetails end - + def MarketplaceSearchDetails=(value) @marketplaceSearchDetails = value end @@ -1103,7 +1080,7 @@ class SellerProfile def SellerProfileDetails @sellerProfileDetails end - + def SellerProfileDetails=(value) @sellerProfileDetails = value end @@ -1121,7 +1098,7 @@ class SellerSearch def SellerSearchDetails @sellerSearchDetails end - + def SellerSearchDetails=(value) @sellerSearchDetails = value end @@ -1139,7 +1116,7 @@ class MarketplaceSearchDetails def NumberOfOpenListings @numberOfOpenListings end - + def NumberOfOpenListings=(value) @numberOfOpenListings = value end @@ -1147,13 +1124,12 @@ class MarketplaceSearchDetails def ListingProductInfo @listingProductInfo end - + def ListingProductInfo=(value) @listingProductInfo = value end - def initialize(numberOfOpenListings = nil, - listingProductInfo = nil) + def initialize(numberOfOpenListings = nil, listingProductInfo = nil) @numberOfOpenListings = numberOfOpenListings @listingProductInfo = listingProductInfo end @@ -1161,7 +1137,6 @@ end # http://soap.amazon.com class MarketplaceSearchDetailsArray < Array - # Contents type should be dumped here... @@schema_type = "MarketplaceSearchDetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -1174,7 +1149,7 @@ class SellerProfileDetails def SellerNickname @sellerNickname end - + def SellerNickname=(value) @sellerNickname = value end @@ -1182,7 +1157,7 @@ class SellerProfileDetails def OverallFeedbackRating @overallFeedbackRating end - + def OverallFeedbackRating=(value) @overallFeedbackRating = value end @@ -1190,7 +1165,7 @@ class SellerProfileDetails def NumberOfFeedback @numberOfFeedback end - + def NumberOfFeedback=(value) @numberOfFeedback = value end @@ -1198,7 +1173,7 @@ class SellerProfileDetails def NumberOfCanceledBids @numberOfCanceledBids end - + def NumberOfCanceledBids=(value) @numberOfCanceledBids = value end @@ -1206,7 +1181,7 @@ class SellerProfileDetails def NumberOfCanceledAuctions @numberOfCanceledAuctions end - + def NumberOfCanceledAuctions=(value) @numberOfCanceledAuctions = value end @@ -1214,7 +1189,7 @@ class SellerProfileDetails def StoreId @storeId end - + def StoreId=(value) @storeId = value end @@ -1222,7 +1197,7 @@ class SellerProfileDetails def StoreName @storeName end - + def StoreName=(value) @storeName = value end @@ -1230,19 +1205,12 @@ class SellerProfileDetails def SellerFeedback @sellerFeedback end - + def SellerFeedback=(value) @sellerFeedback = value end - def initialize(sellerNickname = nil, - overallFeedbackRating = nil, - numberOfFeedback = nil, - numberOfCanceledBids = nil, - numberOfCanceledAuctions = nil, - storeId = nil, - storeName = nil, - sellerFeedback = nil) + def initialize(sellerNickname = nil, overallFeedbackRating = nil, numberOfFeedback = nil, numberOfCanceledBids = nil, numberOfCanceledAuctions = nil, storeId = nil, storeName = nil, sellerFeedback = nil) @sellerNickname = sellerNickname @overallFeedbackRating = overallFeedbackRating @numberOfFeedback = numberOfFeedback @@ -1256,7 +1224,6 @@ end # http://soap.amazon.com class SellerProfileDetailsArray < Array - # Contents type should be dumped here... @@schema_type = "SellerProfileDetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -1269,7 +1236,7 @@ class SellerSearchDetails def SellerNickname @sellerNickname end - + def SellerNickname=(value) @sellerNickname = value end @@ -1277,7 +1244,7 @@ class SellerSearchDetails def StoreId @storeId end - + def StoreId=(value) @storeId = value end @@ -1285,7 +1252,7 @@ class SellerSearchDetails def StoreName @storeName end - + def StoreName=(value) @storeName = value end @@ -1293,7 +1260,7 @@ class SellerSearchDetails def NumberOfOpenListings @numberOfOpenListings end - + def NumberOfOpenListings=(value) @numberOfOpenListings = value end @@ -1301,16 +1268,12 @@ class SellerSearchDetails def ListingProductInfo @listingProductInfo end - + def ListingProductInfo=(value) @listingProductInfo = value end - def initialize(sellerNickname = nil, - storeId = nil, - storeName = nil, - numberOfOpenListings = nil, - listingProductInfo = nil) + def initialize(sellerNickname = nil, storeId = nil, storeName = nil, numberOfOpenListings = nil, listingProductInfo = nil) @sellerNickname = sellerNickname @storeId = storeId @storeName = storeName @@ -1321,7 +1284,6 @@ end # http://soap.amazon.com class SellerSearchDetailsArray < Array - # Contents type should be dumped here... @@schema_type = "SellerSearchDetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -1334,7 +1296,7 @@ class ListingProductInfo def ListingProductDetails @listingProductDetails end - + def ListingProductDetails=(value) @listingProductDetails = value end @@ -1346,7 +1308,6 @@ end # http://soap.amazon.com class ListingProductDetailsArray < Array - # Contents type should be dumped here... @@schema_type = "ListingProductDetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -1359,7 +1320,7 @@ class ListingProductDetails def ExchangeId @exchangeId end - + def ExchangeId=(value) @exchangeId = value end @@ -1367,7 +1328,7 @@ class ListingProductDetails def ListingId @listingId end - + def ListingId=(value) @listingId = value end @@ -1375,7 +1336,7 @@ class ListingProductDetails def ExchangeTitle @exchangeTitle end - + def ExchangeTitle=(value) @exchangeTitle = value end @@ -1383,7 +1344,7 @@ class ListingProductDetails def ExchangeDescription @exchangeDescription end - + def ExchangeDescription=(value) @exchangeDescription = value end @@ -1391,7 +1352,7 @@ class ListingProductDetails def ExchangePrice @exchangePrice end - + def ExchangePrice=(value) @exchangePrice = value end @@ -1399,7 +1360,7 @@ class ListingProductDetails def ExchangeAsin @exchangeAsin end - + def ExchangeAsin=(value) @exchangeAsin = value end @@ -1407,7 +1368,7 @@ class ListingProductDetails def ExchangeEndDate @exchangeEndDate end - + def ExchangeEndDate=(value) @exchangeEndDate = value end @@ -1415,7 +1376,7 @@ class ListingProductDetails def ExchangeTinyImage @exchangeTinyImage end - + def ExchangeTinyImage=(value) @exchangeTinyImage = value end @@ -1423,7 +1384,7 @@ class ListingProductDetails def ExchangeSellerId @exchangeSellerId end - + def ExchangeSellerId=(value) @exchangeSellerId = value end @@ -1431,7 +1392,7 @@ class ListingProductDetails def ExchangeSellerNickname @exchangeSellerNickname end - + def ExchangeSellerNickname=(value) @exchangeSellerNickname = value end @@ -1439,7 +1400,7 @@ class ListingProductDetails def ExchangeStartDate @exchangeStartDate end - + def ExchangeStartDate=(value) @exchangeStartDate = value end @@ -1447,7 +1408,7 @@ class ListingProductDetails def ExchangeStatus @exchangeStatus end - + def ExchangeStatus=(value) @exchangeStatus = value end @@ -1455,7 +1416,7 @@ class ListingProductDetails def ExchangeQuantity @exchangeQuantity end - + def ExchangeQuantity=(value) @exchangeQuantity = value end @@ -1463,7 +1424,7 @@ class ListingProductDetails def ExchangeQuantityAllocated @exchangeQuantityAllocated end - + def ExchangeQuantityAllocated=(value) @exchangeQuantityAllocated = value end @@ -1471,7 +1432,7 @@ class ListingProductDetails def ExchangeFeaturedCategory @exchangeFeaturedCategory end - + def ExchangeFeaturedCategory=(value) @exchangeFeaturedCategory = value end @@ -1479,7 +1440,7 @@ class ListingProductDetails def ExchangeCondition @exchangeCondition end - + def ExchangeCondition=(value) @exchangeCondition = value end @@ -1487,7 +1448,7 @@ class ListingProductDetails def ExchangeConditionType @exchangeConditionType end - + def ExchangeConditionType=(value) @exchangeConditionType = value end @@ -1495,7 +1456,7 @@ class ListingProductDetails def ExchangeAvailability @exchangeAvailability end - + def ExchangeAvailability=(value) @exchangeAvailability = value end @@ -1503,7 +1464,7 @@ class ListingProductDetails def ExchangeOfferingType @exchangeOfferingType end - + def ExchangeOfferingType=(value) @exchangeOfferingType = value end @@ -1511,7 +1472,7 @@ class ListingProductDetails def ExchangeSellerState @exchangeSellerState end - + def ExchangeSellerState=(value) @exchangeSellerState = value end @@ -1519,7 +1480,7 @@ class ListingProductDetails def ExchangeSellerCountry @exchangeSellerCountry end - + def ExchangeSellerCountry=(value) @exchangeSellerCountry = value end @@ -1527,33 +1488,12 @@ class ListingProductDetails def ExchangeSellerRating @exchangeSellerRating end - + def ExchangeSellerRating=(value) @exchangeSellerRating = value end - def initialize(exchangeId = nil, - listingId = nil, - exchangeTitle = nil, - exchangeDescription = nil, - exchangePrice = nil, - exchangeAsin = nil, - exchangeEndDate = nil, - exchangeTinyImage = nil, - exchangeSellerId = nil, - exchangeSellerNickname = nil, - exchangeStartDate = nil, - exchangeStatus = nil, - exchangeQuantity = nil, - exchangeQuantityAllocated = nil, - exchangeFeaturedCategory = nil, - exchangeCondition = nil, - exchangeConditionType = nil, - exchangeAvailability = nil, - exchangeOfferingType = nil, - exchangeSellerState = nil, - exchangeSellerCountry = nil, - exchangeSellerRating = nil) + def initialize(exchangeId = nil, listingId = nil, exchangeTitle = nil, exchangeDescription = nil, exchangePrice = nil, exchangeAsin = nil, exchangeEndDate = nil, exchangeTinyImage = nil, exchangeSellerId = nil, exchangeSellerNickname = nil, exchangeStartDate = nil, exchangeStatus = nil, exchangeQuantity = nil, exchangeQuantityAllocated = nil, exchangeFeaturedCategory = nil, exchangeCondition = nil, exchangeConditionType = nil, exchangeAvailability = nil, exchangeOfferingType = nil, exchangeSellerState = nil, exchangeSellerCountry = nil, exchangeSellerRating = nil) @exchangeId = exchangeId @listingId = listingId @exchangeTitle = exchangeTitle @@ -1587,7 +1527,7 @@ class SellerFeedback def Feedback @feedback end - + def Feedback=(value) @feedback = value end @@ -1599,7 +1539,6 @@ end # http://soap.amazon.com class FeedbackArray < Array - # Contents type should be dumped here... @@schema_type = "FeedbackArray" @@schema_ns = "http://soap.amazon.com" end @@ -1612,7 +1551,7 @@ class Feedback def FeedbackRating @feedbackRating end - + def FeedbackRating=(value) @feedbackRating = value end @@ -1620,7 +1559,7 @@ class Feedback def FeedbackComments @feedbackComments end - + def FeedbackComments=(value) @feedbackComments = value end @@ -1628,7 +1567,7 @@ class Feedback def FeedbackDate @feedbackDate end - + def FeedbackDate=(value) @feedbackDate = value end @@ -1636,15 +1575,12 @@ class Feedback def FeedbackRater @feedbackRater end - + def FeedbackRater=(value) @feedbackRater = value end - def initialize(feedbackRating = nil, - feedbackComments = nil, - feedbackDate = nil, - feedbackRater = nil) + def initialize(feedbackRating = nil, feedbackComments = nil, feedbackDate = nil, feedbackRater = nil) @feedbackRating = feedbackRating @feedbackComments = feedbackComments @feedbackDate = feedbackDate @@ -1660,7 +1596,7 @@ class ThirdPartyProductInfo def ThirdPartyProductDetails @thirdPartyProductDetails end - + def ThirdPartyProductDetails=(value) @thirdPartyProductDetails = value end @@ -1672,7 +1608,6 @@ end # http://soap.amazon.com class ThirdPartyProductDetailsArray < Array - # Contents type should be dumped here... @@schema_type = "ThirdPartyProductDetailsArray" @@schema_ns = "http://soap.amazon.com" end @@ -1685,7 +1620,7 @@ class ThirdPartyProductDetails def OfferingType @offeringType end - + def OfferingType=(value) @offeringType = value end @@ -1693,7 +1628,7 @@ class ThirdPartyProductDetails def SellerId @sellerId end - + def SellerId=(value) @sellerId = value end @@ -1701,7 +1636,7 @@ class ThirdPartyProductDetails def SellerNickname @sellerNickname end - + def SellerNickname=(value) @sellerNickname = value end @@ -1709,7 +1644,7 @@ class ThirdPartyProductDetails def ExchangeId @exchangeId end - + def ExchangeId=(value) @exchangeId = value end @@ -1717,7 +1652,7 @@ class ThirdPartyProductDetails def OfferingPrice @offeringPrice end - + def OfferingPrice=(value) @offeringPrice = value end @@ -1725,7 +1660,7 @@ class ThirdPartyProductDetails def Condition @condition end - + def Condition=(value) @condition = value end @@ -1733,7 +1668,7 @@ class ThirdPartyProductDetails def ConditionType @conditionType end - + def ConditionType=(value) @conditionType = value end @@ -1741,7 +1676,7 @@ class ThirdPartyProductDetails def ExchangeAvailability @exchangeAvailability end - + def ExchangeAvailability=(value) @exchangeAvailability = value end @@ -1749,7 +1684,7 @@ class ThirdPartyProductDetails def SellerCountry @sellerCountry end - + def SellerCountry=(value) @sellerCountry = value end @@ -1757,7 +1692,7 @@ class ThirdPartyProductDetails def SellerState @sellerState end - + def SellerState=(value) @sellerState = value end @@ -1765,7 +1700,7 @@ class ThirdPartyProductDetails def ShipComments @shipComments end - + def ShipComments=(value) @shipComments = value end @@ -1773,23 +1708,12 @@ class ThirdPartyProductDetails def SellerRating @sellerRating end - + def SellerRating=(value) @sellerRating = value end - def initialize(offeringType = nil, - sellerId = nil, - sellerNickname = nil, - exchangeId = nil, - offeringPrice = nil, - condition = nil, - conditionType = nil, - exchangeAvailability = nil, - sellerCountry = nil, - sellerState = nil, - shipComments = nil, - sellerRating = nil) + def initialize(offeringType = nil, sellerId = nil, sellerNickname = nil, exchangeId = nil, offeringPrice = nil, condition = nil, conditionType = nil, exchangeAvailability = nil, sellerCountry = nil, sellerState = nil, shipComments = nil, sellerRating = nil) @offeringType = offeringType @sellerId = sellerId @sellerNickname = sellerNickname @@ -1810,87 +1734,17 @@ class KeywordRequest @@schema_type = "KeywordRequest" @@schema_ns = "http://soap.amazon.com" - def keyword - @keyword - end - - def keyword=(value) - @keyword = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end + attr_accessor :keyword + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :price - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(keyword = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - price = nil) + def initialize(keyword = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, price = nil) @keyword = keyword @page = page @mode = mode @@ -1908,87 +1762,17 @@ class TextStreamRequest @@schema_type = "TextStreamRequest" @@schema_ns = "http://soap.amazon.com" - def textStream - @textStream - end - - def textStream=(value) - @textStream = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end + attr_accessor :textStream + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :price - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(textStream = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - price = nil) + def initialize(textStream = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, price = nil) @textStream = textStream @page = page @mode = mode @@ -2006,78 +1790,16 @@ class PowerRequest @@schema_type = "PowerRequest" @@schema_ns = "http://soap.amazon.com" - def power - @power - end - - def power=(value) - @power = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end + attr_accessor :power + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale - def initialize(power = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil) + def initialize(power = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil) @power = power @page = page @mode = mode @@ -2094,96 +1816,18 @@ class BrowseNodeRequest @@schema_type = "BrowseNodeRequest" @@schema_ns = "http://soap.amazon.com" - def browse_node - @browse_node - end + attr_accessor :browse_node + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def browse_node=(value) - @browse_node = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(browse_node = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(browse_node = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @browse_node = browse_node @page = page @mode = mode @@ -2202,78 +1846,16 @@ class AsinRequest @@schema_type = "AsinRequest" @@schema_ns = "http://soap.amazon.com" - def asin - @asin - end - - def asin=(value) - @asin = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def offer - @offer - end + attr_accessor :asin + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :offer + attr_accessor :offerpage + attr_accessor :locale + attr_accessor :mode - def offer=(value) - @offer = value - end - - def offerpage - @offerpage - end - - def offerpage=(value) - @offerpage = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def initialize(asin = nil, - tag = nil, - type = nil, - devtag = nil, - offer = nil, - offerpage = nil, - locale = nil, - mode = nil) + def initialize(asin = nil, tag = nil, type = nil, devtag = nil, offer = nil, offerpage = nil, locale = nil, mode = nil) @asin = asin @tag = tag @type = type @@ -2290,51 +1872,13 @@ class BlendedRequest @@schema_type = "BlendedRequest" @@schema_ns = "http://soap.amazon.com" - def blended - @blended - end + attr_accessor :blended + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :locale - def blended=(value) - @blended = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(blended = nil, - tag = nil, - type = nil, - devtag = nil, - locale = nil) + def initialize(blended = nil, tag = nil, type = nil, devtag = nil, locale = nil) @blended = blended @tag = tag @type = type @@ -2348,69 +1892,15 @@ class UpcRequest @@schema_type = "UpcRequest" @@schema_ns = "http://soap.amazon.com" - def upc - @upc - end - - def upc=(value) - @upc = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end + attr_accessor :upc + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale - def initialize(upc = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil) + def initialize(upc = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil) @upc = upc @mode = mode @tag = tag @@ -2426,87 +1916,17 @@ class SkuRequest @@schema_type = "SkuRequest" @@schema_ns = "http://soap.amazon.com" - def sku - @sku - end - - def sku=(value) - @sku = value - end + attr_accessor :sku + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :merchant_id + attr_accessor :keywords + attr_accessor :sort + attr_accessor :locale - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def merchant_id - @merchant_id - end - - def merchant_id=(value) - @merchant_id = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(sku = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - merchant_id = nil, - keywords = nil, - sort = nil, - locale = nil) + def initialize(sku = nil, mode = nil, tag = nil, type = nil, devtag = nil, merchant_id = nil, keywords = nil, sort = nil, locale = nil) @sku = sku @mode = mode @tag = tag @@ -2524,96 +1944,18 @@ class ArtistRequest @@schema_type = "ArtistRequest" @@schema_ns = "http://soap.amazon.com" - def artist - @artist - end - - def artist=(value) - @artist = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end + attr_accessor :artist + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(artist = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(artist = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @artist = artist @page = page @mode = mode @@ -2632,96 +1974,18 @@ class AuthorRequest @@schema_type = "AuthorRequest" @@schema_ns = "http://soap.amazon.com" - def author - @author - end - - def author=(value) - @author = value - end + attr_accessor :author + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(author = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(author = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @author = author @page = page @mode = mode @@ -2740,96 +2004,18 @@ class ActorRequest @@schema_type = "ActorRequest" @@schema_ns = "http://soap.amazon.com" - def actor - @actor - end - - def actor=(value) - @actor = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end + attr_accessor :actor + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(actor = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(actor = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @actor = actor @page = page @mode = mode @@ -2848,96 +2034,18 @@ class DirectorRequest @@schema_type = "DirectorRequest" @@schema_ns = "http://soap.amazon.com" - def director - @director - end - - def director=(value) - @director = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end + attr_accessor :director + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(director = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(director = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @director = director @page = page @mode = mode @@ -2956,51 +2064,13 @@ class ExchangeRequest @@schema_type = "ExchangeRequest" @@schema_ns = "http://soap.amazon.com" - def exchange_id - @exchange_id - end - - def exchange_id=(value) - @exchange_id = value - end + attr_accessor :exchange_id + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :locale - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(exchange_id = nil, - tag = nil, - type = nil, - devtag = nil, - locale = nil) + def initialize(exchange_id = nil, tag = nil, type = nil, devtag = nil, locale = nil) @exchange_id = exchange_id @tag = tag @type = type @@ -3014,96 +2084,18 @@ class ManufacturerRequest @@schema_type = "ManufacturerRequest" @@schema_ns = "http://soap.amazon.com" - def manufacturer - @manufacturer - end - - def manufacturer=(value) - @manufacturer = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def mode - @mode - end - - def mode=(value) - @mode = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end + attr_accessor :manufacturer + attr_accessor :page + attr_accessor :mode + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :sort + attr_accessor :locale + attr_accessor :keywords + attr_accessor :price - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def keywords - @keywords - end - - def keywords=(value) - @keywords = value - end - - def price - @price - end - - def price=(value) - @price = value - end - - def initialize(manufacturer = nil, - page = nil, - mode = nil, - tag = nil, - type = nil, - devtag = nil, - sort = nil, - locale = nil, - keywords = nil, - price = nil) + def initialize(manufacturer = nil, page = nil, mode = nil, tag = nil, type = nil, devtag = nil, sort = nil, locale = nil, keywords = nil, price = nil) @manufacturer = manufacturer @page = page @mode = mode @@ -3122,60 +2114,14 @@ class ListManiaRequest @@schema_type = "ListManiaRequest" @@schema_ns = "http://soap.amazon.com" - def lm_id - @lm_id - end + attr_accessor :lm_id + attr_accessor :page + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :locale - def lm_id=(value) - @lm_id = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(lm_id = nil, - page = nil, - tag = nil, - type = nil, - devtag = nil, - locale = nil) + def initialize(lm_id = nil, page = nil, tag = nil, type = nil, devtag = nil, locale = nil) @lm_id = lm_id @page = page @tag = tag @@ -3190,60 +2136,14 @@ class WishlistRequest @@schema_type = "WishlistRequest" @@schema_ns = "http://soap.amazon.com" - def wishlist_id - @wishlist_id - end - - def wishlist_id=(value) - @wishlist_id = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def locale - @locale - end + attr_accessor :wishlist_id + attr_accessor :page + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :locale - def locale=(value) - @locale = value - end - - def initialize(wishlist_id = nil, - page = nil, - tag = nil, - type = nil, - devtag = nil, - locale = nil) + def initialize(wishlist_id = nil, page = nil, tag = nil, type = nil, devtag = nil, locale = nil) @wishlist_id = wishlist_id @page = page @tag = tag @@ -3258,150 +2158,24 @@ class MarketplaceRequest @@schema_type = "MarketplaceRequest" @@schema_ns = "http://soap.amazon.com" - def marketplace_search - @marketplace_search - end - - def marketplace_search=(value) - @marketplace_search = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def keyword - @keyword - end - - def keyword=(value) - @keyword = value - end - - def keyword_search - @keyword_search - end - - def keyword_search=(value) - @keyword_search = value - end - - def browse_id - @browse_id - end - - def browse_id=(value) - @browse_id = value - end - - def zipcode - @zipcode - end - - def zipcode=(value) - @zipcode = value - end - - def area_id - @area_id - end - - def area_id=(value) - @area_id = value - end - - def geo - @geo - end - - def geo=(value) - @geo = value - end - - def sort - @sort - end - - def sort=(value) - @sort = value - end - - def listing_id - @listing_id - end - - def listing_id=(value) - @listing_id = value - end - - def desc - @desc - end - - def desc=(value) - @desc = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def index - @index - end - - def index=(value) - @index = value - end - - def initialize(marketplace_search = nil, - tag = nil, - type = nil, - devtag = nil, - page = nil, - keyword = nil, - keyword_search = nil, - browse_id = nil, - zipcode = nil, - area_id = nil, - geo = nil, - sort = nil, - listing_id = nil, - desc = nil, - locale = nil, - index = nil) + attr_accessor :marketplace_search + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :page + attr_accessor :keyword + attr_accessor :keyword_search + attr_accessor :browse_id + attr_accessor :zipcode + attr_accessor :area_id + attr_accessor :geo + attr_accessor :sort + attr_accessor :listing_id + attr_accessor :desc + attr_accessor :locale + attr_accessor :index + + def initialize(marketplace_search = nil, tag = nil, type = nil, devtag = nil, page = nil, keyword = nil, keyword_search = nil, browse_id = nil, zipcode = nil, area_id = nil, geo = nil, sort = nil, listing_id = nil, desc = nil, locale = nil, index = nil) @marketplace_search = marketplace_search @tag = tag @type = type @@ -3426,69 +2200,15 @@ class SellerProfileRequest @@schema_type = "SellerProfileRequest" @@schema_ns = "http://soap.amazon.com" - def seller_id - @seller_id - end - - def seller_id=(value) - @seller_id = value - end + attr_accessor :seller_id + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :page + attr_accessor :desc + attr_accessor :locale - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def desc - @desc - end - - def desc=(value) - @desc = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(seller_id = nil, - tag = nil, - type = nil, - devtag = nil, - page = nil, - desc = nil, - locale = nil) + def initialize(seller_id = nil, tag = nil, type = nil, devtag = nil, page = nil, desc = nil, locale = nil) @seller_id = seller_id @tag = tag @type = type @@ -3504,105 +2224,19 @@ class SellerRequest @@schema_type = "SellerRequest" @@schema_ns = "http://soap.amazon.com" - def seller_id - @seller_id - end - - def seller_id=(value) - @seller_id = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def offerstatus - @offerstatus - end - - def offerstatus=(value) - @offerstatus = value - end - - def page - @page - end - - def page=(value) - @page = value - end - - def seller_browse_id - @seller_browse_id - end - - def seller_browse_id=(value) - @seller_browse_id = value - end - - def keyword - @keyword - end - - def keyword=(value) - @keyword = value - end - - def desc - @desc - end - - def desc=(value) - @desc = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end + attr_accessor :seller_id + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :offerstatus + attr_accessor :page + attr_accessor :seller_browse_id + attr_accessor :keyword + attr_accessor :desc + attr_accessor :locale + attr_accessor :index - def index - @index - end - - def index=(value) - @index = value - end - - def initialize(seller_id = nil, - tag = nil, - type = nil, - devtag = nil, - offerstatus = nil, - page = nil, - seller_browse_id = nil, - keyword = nil, - desc = nil, - locale = nil, - index = nil) + def initialize(seller_id = nil, tag = nil, type = nil, devtag = nil, offerstatus = nil, page = nil, seller_browse_id = nil, keyword = nil, desc = nil, locale = nil, index = nil) @seller_id = seller_id @tag = tag @type = type @@ -3622,51 +2256,13 @@ class SimilarityRequest @@schema_type = "SimilarityRequest" @@schema_ns = "http://soap.amazon.com" - def asin - @asin - end + attr_accessor :asin + attr_accessor :tag + attr_accessor :type + attr_accessor :devtag + attr_accessor :locale - def asin=(value) - @asin = value - end - - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def type - @type - end - - def type=(value) - @type = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(asin = nil, - tag = nil, - type = nil, - devtag = nil, - locale = nil) + def initialize(asin = nil, tag = nil, type = nil, devtag = nil, locale = nil) @asin = asin @tag = tag @type = type @@ -3677,14 +2273,12 @@ end # http://soap.amazon.com class ItemIdArray < Array - # Contents type should be dumped here... @@schema_type = "ItemIdArray" @@schema_ns = "http://soap.amazon.com" end # http://soap.amazon.com class ItemArray < Array - # Contents type should be dumped here... @@schema_type = "ItemArray" @@schema_ns = "http://soap.amazon.com" end @@ -3697,7 +2291,7 @@ class Item def ItemId @itemId end - + def ItemId=(value) @itemId = value end @@ -3705,7 +2299,7 @@ class Item def ProductName @productName end - + def ProductName=(value) @productName = value end @@ -3713,7 +2307,7 @@ class Item def Catalog @catalog end - + def Catalog=(value) @catalog = value end @@ -3721,7 +2315,7 @@ class Item def Asin @asin end - + def Asin=(value) @asin = value end @@ -3729,7 +2323,7 @@ class Item def ExchangeId @exchangeId end - + def ExchangeId=(value) @exchangeId = value end @@ -3737,7 +2331,7 @@ class Item def Quantity @quantity end - + def Quantity=(value) @quantity = value end @@ -3745,7 +2339,7 @@ class Item def ListPrice @listPrice end - + def ListPrice=(value) @listPrice = value end @@ -3753,7 +2347,7 @@ class Item def OurPrice @ourPrice end - + def OurPrice=(value) @ourPrice = value end @@ -3761,20 +2355,12 @@ class Item def MerchantSku @merchantSku end - + def MerchantSku=(value) @merchantSku = value end - def initialize(itemId = nil, - productName = nil, - catalog = nil, - asin = nil, - exchangeId = nil, - quantity = nil, - listPrice = nil, - ourPrice = nil, - merchantSku = nil) + def initialize(itemId = nil, productName = nil, catalog = nil, asin = nil, exchangeId = nil, quantity = nil, listPrice = nil, ourPrice = nil, merchantSku = nil) @itemId = itemId @productName = productName @catalog = catalog @@ -3789,7 +2375,6 @@ end # http://soap.amazon.com class ItemQuantityArray < Array - # Contents type should be dumped here... @@schema_type = "ItemQuantityArray" @@schema_ns = "http://soap.amazon.com" end @@ -3802,7 +2387,7 @@ class ItemQuantity def ItemId @itemId end - + def ItemId=(value) @itemId = value end @@ -3810,13 +2395,12 @@ class ItemQuantity def Quantity @quantity end - + def Quantity=(value) @quantity = value end - def initialize(itemId = nil, - quantity = nil) + def initialize(itemId = nil, quantity = nil) @itemId = itemId @quantity = quantity end @@ -3824,7 +2408,6 @@ end # http://soap.amazon.com class AddItemArray < Array - # Contents type should be dumped here... @@schema_type = "AddItemArray" @@schema_ns = "http://soap.amazon.com" end @@ -3837,7 +2420,7 @@ class AddItem def ParentAsin @parentAsin end - + def ParentAsin=(value) @parentAsin = value end @@ -3845,7 +2428,7 @@ class AddItem def Asin @asin end - + def Asin=(value) @asin = value end @@ -3853,7 +2436,7 @@ class AddItem def MerchantId @merchantId end - + def MerchantId=(value) @merchantId = value end @@ -3861,7 +2444,7 @@ class AddItem def ExchangeId @exchangeId end - + def ExchangeId=(value) @exchangeId = value end @@ -3869,16 +2452,12 @@ class AddItem def Quantity @quantity end - + def Quantity=(value) @quantity = value end - def initialize(parentAsin = nil, - asin = nil, - merchantId = nil, - exchangeId = nil, - quantity = nil) + def initialize(parentAsin = nil, asin = nil, merchantId = nil, exchangeId = nil, quantity = nil) @parentAsin = parentAsin @asin = asin @merchantId = merchantId @@ -3895,7 +2474,7 @@ class ShoppingCart def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -3903,7 +2482,7 @@ class ShoppingCart def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end @@ -3911,7 +2490,7 @@ class ShoppingCart def PurchaseUrl @purchaseUrl end - + def PurchaseUrl=(value) @purchaseUrl = value end @@ -3919,7 +2498,7 @@ class ShoppingCart def Items @items end - + def Items=(value) @items = value end @@ -3927,16 +2506,12 @@ class ShoppingCart def SimilarProducts @similarProducts end - + def SimilarProducts=(value) @similarProducts = value end - def initialize(cartId = nil, - hMAC = nil, - purchaseUrl = nil, - items = nil, - similarProducts = nil) + def initialize(cartId = nil, hMAC = nil, purchaseUrl = nil, items = nil, similarProducts = nil) @cartId = cartId @hMAC = hMAC @purchaseUrl = purchaseUrl @@ -3950,26 +2525,15 @@ class GetShoppingCartRequest @@schema_type = "GetShoppingCartRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :locale + attr_accessor :sims def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -3977,33 +2541,12 @@ class GetShoppingCartRequest def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def sims - @sims - end - - def sims=(value) - @sims = value - end - - def initialize(tag = nil, - devtag = nil, - cartId = nil, - hMAC = nil, - locale = nil, - sims = nil) + def initialize(tag = nil, devtag = nil, cartId = nil, hMAC = nil, locale = nil, sims = nil) @tag = tag @devtag = devtag @cartId = cartId @@ -4018,26 +2561,14 @@ class ClearShoppingCartRequest @@schema_type = "ClearShoppingCartRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :locale def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -4045,24 +2576,12 @@ class ClearShoppingCartRequest def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(tag = nil, - devtag = nil, - cartId = nil, - hMAC = nil, - locale = nil) + def initialize(tag = nil, devtag = nil, cartId = nil, hMAC = nil, locale = nil) @tag = tag @devtag = devtag @cartId = cartId @@ -4076,26 +2595,15 @@ class AddShoppingCartItemsRequest @@schema_type = "AddShoppingCartItemsRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :locale + attr_accessor :sims def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -4103,7 +2611,7 @@ class AddShoppingCartItemsRequest def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end @@ -4111,34 +2619,12 @@ class AddShoppingCartItemsRequest def Items @items end - + def Items=(value) @items = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def sims - @sims - end - - def sims=(value) - @sims = value - end - - def initialize(tag = nil, - devtag = nil, - cartId = nil, - hMAC = nil, - items = nil, - locale = nil, - sims = nil) + def initialize(tag = nil, devtag = nil, cartId = nil, hMAC = nil, items = nil, locale = nil, sims = nil) @tag = tag @devtag = devtag @cartId = cartId @@ -4154,26 +2640,15 @@ class RemoveShoppingCartItemsRequest @@schema_type = "RemoveShoppingCartItemsRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :locale + attr_accessor :sims def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -4181,7 +2656,7 @@ class RemoveShoppingCartItemsRequest def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end @@ -4189,34 +2664,12 @@ class RemoveShoppingCartItemsRequest def Items @items end - + def Items=(value) @items = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def sims - @sims - end - - def sims=(value) - @sims = value - end - - def initialize(tag = nil, - devtag = nil, - cartId = nil, - hMAC = nil, - items = nil, - locale = nil, - sims = nil) + def initialize(tag = nil, devtag = nil, cartId = nil, hMAC = nil, items = nil, locale = nil, sims = nil) @tag = tag @devtag = devtag @cartId = cartId @@ -4232,26 +2685,15 @@ class ModifyShoppingCartItemsRequest @@schema_type = "ModifyShoppingCartItemsRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :locale + attr_accessor :sims def CartId @cartId end - + def CartId=(value) @cartId = value end @@ -4259,7 +2701,7 @@ class ModifyShoppingCartItemsRequest def HMAC @hMAC end - + def HMAC=(value) @hMAC = value end @@ -4267,34 +2709,12 @@ class ModifyShoppingCartItemsRequest def Items @items end - + def Items=(value) @items = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def sims - @sims - end - - def sims=(value) - @sims = value - end - - def initialize(tag = nil, - devtag = nil, - cartId = nil, - hMAC = nil, - items = nil, - locale = nil, - sims = nil) + def initialize(tag = nil, devtag = nil, cartId = nil, hMAC = nil, items = nil, locale = nil, sims = nil) @tag = tag @devtag = devtag @cartId = cartId @@ -4307,7 +2727,6 @@ end # http://soap.amazon.com class OrderIdArray < Array - # Contents type should be dumped here... @@schema_type = "OrderIdArray" @@schema_ns = "http://soap.amazon.com" end @@ -4320,7 +2739,7 @@ class Price def Amount @amount end - + def Amount=(value) @amount = value end @@ -4328,13 +2747,12 @@ class Price def CurrencyCode @currencyCode end - + def CurrencyCode=(value) @currencyCode = value end - def initialize(amount = nil, - currencyCode = nil) + def initialize(amount = nil, currencyCode = nil) @amount = amount @currencyCode = currencyCode end @@ -4348,7 +2766,7 @@ class Package def TrackingNumber @trackingNumber end - + def TrackingNumber=(value) @trackingNumber = value end @@ -4356,13 +2774,12 @@ class Package def CarrierName @carrierName end - + def CarrierName=(value) @carrierName = value end - def initialize(trackingNumber = nil, - carrierName = nil) + def initialize(trackingNumber = nil, carrierName = nil) @trackingNumber = trackingNumber @carrierName = carrierName end @@ -4370,7 +2787,6 @@ end # http://soap.amazon.com class PackageArray < Array - # Contents type should be dumped here... @@schema_type = "PackageArray" @@schema_ns = "http://soap.amazon.com" end @@ -4383,7 +2799,7 @@ class OrderItem def ItemNumber @itemNumber end - + def ItemNumber=(value) @itemNumber = value end @@ -4391,7 +2807,7 @@ class OrderItem def ASIN @aSIN end - + def ASIN=(value) @aSIN = value end @@ -4399,7 +2815,7 @@ class OrderItem def ExchangeId @exchangeId end - + def ExchangeId=(value) @exchangeId = value end @@ -4407,7 +2823,7 @@ class OrderItem def Quantity @quantity end - + def Quantity=(value) @quantity = value end @@ -4415,7 +2831,7 @@ class OrderItem def UnitPrice @unitPrice end - + def UnitPrice=(value) @unitPrice = value end @@ -4423,17 +2839,12 @@ class OrderItem def TotalPrice @totalPrice end - + def TotalPrice=(value) @totalPrice = value end - def initialize(itemNumber = nil, - aSIN = nil, - exchangeId = nil, - quantity = nil, - unitPrice = nil, - totalPrice = nil) + def initialize(itemNumber = nil, aSIN = nil, exchangeId = nil, quantity = nil, unitPrice = nil, totalPrice = nil) @itemNumber = itemNumber @aSIN = aSIN @exchangeId = exchangeId @@ -4445,7 +2856,6 @@ end # http://soap.amazon.com class OrderItemArray < Array - # Contents type should be dumped here... @@schema_type = "OrderItemArray" @@schema_ns = "http://soap.amazon.com" end @@ -4458,7 +2868,7 @@ class ShortSummary def OrderId @orderId end - + def OrderId=(value) @orderId = value end @@ -4466,7 +2876,7 @@ class ShortSummary def SellerId @sellerId end - + def SellerId=(value) @sellerId = value end @@ -4474,7 +2884,7 @@ class ShortSummary def Condition @condition end - + def Condition=(value) @condition = value end @@ -4482,7 +2892,7 @@ class ShortSummary def TransactionDate @transactionDate end - + def TransactionDate=(value) @transactionDate = value end @@ -4490,7 +2900,7 @@ class ShortSummary def TransactionDateEpoch @transactionDateEpoch end - + def TransactionDateEpoch=(value) @transactionDateEpoch = value end @@ -4498,7 +2908,7 @@ class ShortSummary def Total @total end - + def Total=(value) @total = value end @@ -4506,7 +2916,7 @@ class ShortSummary def Subtotal @subtotal end - + def Subtotal=(value) @subtotal = value end @@ -4514,7 +2924,7 @@ class ShortSummary def Shipping @shipping end - + def Shipping=(value) @shipping = value end @@ -4522,7 +2932,7 @@ class ShortSummary def Tax @tax end - + def Tax=(value) @tax = value end @@ -4530,7 +2940,7 @@ class ShortSummary def Promotion @promotion end - + def Promotion=(value) @promotion = value end @@ -4538,7 +2948,7 @@ class ShortSummary def StoreName @storeName end - + def StoreName=(value) @storeName = value end @@ -4546,7 +2956,7 @@ class ShortSummary def Packages @packages end - + def Packages=(value) @packages = value end @@ -4554,7 +2964,7 @@ class ShortSummary def OrderItems @orderItems end - + def OrderItems=(value) @orderItems = value end @@ -4562,7 +2972,7 @@ class ShortSummary def ErrorCode @errorCode end - + def ErrorCode=(value) @errorCode = value end @@ -4570,26 +2980,12 @@ class ShortSummary def ErrorString @errorString end - + def ErrorString=(value) @errorString = value end - def initialize(orderId = nil, - sellerId = nil, - condition = nil, - transactionDate = nil, - transactionDateEpoch = nil, - total = nil, - subtotal = nil, - shipping = nil, - tax = nil, - promotion = nil, - storeName = nil, - packages = nil, - orderItems = nil, - errorCode = nil, - errorString = nil) + def initialize(orderId = nil, sellerId = nil, condition = nil, transactionDate = nil, transactionDateEpoch = nil, total = nil, subtotal = nil, shipping = nil, tax = nil, promotion = nil, storeName = nil, packages = nil, orderItems = nil, errorCode = nil, errorString = nil) @orderId = orderId @sellerId = sellerId @condition = condition @@ -4610,7 +3006,6 @@ end # http://soap.amazon.com class ShortSummaryArray < Array - # Contents type should be dumped here... @@schema_type = "ShortSummaryArray" @@schema_ns = "http://soap.amazon.com" end @@ -4620,51 +3015,20 @@ class GetTransactionDetailsRequest @@schema_type = "GetTransactionDetailsRequest" @@schema_ns = "http://soap.amazon.com" - def tag - @tag - end - - def tag=(value) - @tag = value - end - - def devtag - @devtag - end - - def devtag=(value) - @devtag = value - end - - def key - @key - end - - def key=(value) - @key = value - end + attr_accessor :tag + attr_accessor :devtag + attr_accessor :key + attr_accessor :locale def OrderIds @orderIds end - + def OrderIds=(value) @orderIds = value end - def locale - @locale - end - - def locale=(value) - @locale = value - end - - def initialize(tag = nil, - devtag = nil, - key = nil, - orderIds = nil, - locale = nil) + def initialize(tag = nil, devtag = nil, key = nil, orderIds = nil, locale = nil) @tag = tag @devtag = devtag @key = key @@ -4681,7 +3045,7 @@ class GetTransactionDetailsResponse def ShortSummaries @shortSummaries end - + def ShortSummaries=(value) @shortSummaries = value end diff --git a/sample/wsdl/amazon/AmazonSearchDriver.rb b/sample/wsdl/amazon/AmazonSearchDriver.rb index 01915e2735..60af68887c 100644 --- a/sample/wsdl/amazon/AmazonSearchDriver.rb +++ b/sample/wsdl/amazon/AmazonSearchDriver.rb @@ -2,7 +2,8 @@ require 'AmazonSearch.rb' require 'soap/rpc/driver' -class AmazonSearchPort < SOAP::RPC::Driver +class AmazonSearchPort < ::SOAP::RPC::Driver + DefaultEndpointUrl = "http://soap.amazon.com/onca/soap3" MappingRegistry = ::SOAP::Mapping::Registry.new MappingRegistry.set( @@ -331,166 +332,190 @@ class AmazonSearchPort < SOAP::RPC::Driver ) Methods = [ - ["KeywordSearchRequest", "keywordSearchRequest", [ - ["in", "KeywordSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "KeywordRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["TextStreamSearchRequest", "textStreamSearchRequest", [ - ["in", "TextStreamSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "TextStreamRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["PowerSearchRequest", "powerSearchRequest", [ - ["in", "PowerSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "PowerRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["BrowseNodeSearchRequest", "browseNodeSearchRequest", [ - ["in", "BrowseNodeSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "BrowseNodeRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["AsinSearchRequest", "asinSearchRequest", [ - ["in", "AsinSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "AsinRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["BlendedSearchRequest", "blendedSearchRequest", [ - ["in", "BlendedSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "BlendedRequest"]], - ["retval", "return", - [::SOAP::SOAPArray, "http://soap.amazon.com", "ProductLine"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["UpcSearchRequest", "upcSearchRequest", [ - ["in", "UpcSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "UpcRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["SkuSearchRequest", "skuSearchRequest", [ - ["in", "SkuSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SkuRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["AuthorSearchRequest", "authorSearchRequest", [ - ["in", "AuthorSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "AuthorRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ArtistSearchRequest", "artistSearchRequest", [ - ["in", "ArtistSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ArtistRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ActorSearchRequest", "actorSearchRequest", [ - ["in", "ActorSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ActorRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ManufacturerSearchRequest", "manufacturerSearchRequest", [ - ["in", "ManufacturerSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ManufacturerRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["DirectorSearchRequest", "directorSearchRequest", [ - ["in", "DirectorSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "DirectorRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ListManiaSearchRequest", "listManiaSearchRequest", [ - ["in", "ListManiaSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ListManiaRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["WishlistSearchRequest", "wishlistSearchRequest", [ - ["in", "WishlistSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "WishlistRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ExchangeSearchRequest", "exchangeSearchRequest", [ - ["in", "ExchangeSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ExchangeRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ListingProductDetails"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["MarketplaceSearchRequest", "marketplaceSearchRequest", [ - ["in", "MarketplaceSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "MarketplaceRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "MarketplaceSearch"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["SellerProfileSearchRequest", "sellerProfileSearchRequest", [ - ["in", "SellerProfileSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerProfileRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerProfile"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["SellerSearchRequest", "sellerSearchRequest", [ - ["in", "SellerSearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerSearch"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["SimilaritySearchRequest", "similaritySearchRequest", [ - ["in", "SimilaritySearchRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "SimilarityRequest"]], - ["retval", "return", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["GetShoppingCartRequest", "getShoppingCartRequest", [ - ["in", "GetShoppingCartRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetShoppingCartRequest"]], - ["retval", "ShoppingCart", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ClearShoppingCartRequest", "clearShoppingCartRequest", [ - ["in", "ClearShoppingCartRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ClearShoppingCartRequest"]], - ["retval", "ShoppingCart", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["AddShoppingCartItemsRequest", "addShoppingCartItemsRequest", [ - ["in", "AddShoppingCartItemsRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "AddShoppingCartItemsRequest"]], - ["retval", "ShoppingCart", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["RemoveShoppingCartItemsRequest", "removeShoppingCartItemsRequest", [ - ["in", "RemoveShoppingCartItemsRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "RemoveShoppingCartItemsRequest"]], - ["retval", "ShoppingCart", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["ModifyShoppingCartItemsRequest", "modifyShoppingCartItemsRequest", [ - ["in", "ModifyShoppingCartItemsRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ModifyShoppingCartItemsRequest"]], - ["retval", "ShoppingCart", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]]], - "http://soap.amazon.com", "http://soap.amazon.com"], - ["GetTransactionDetailsRequest", "getTransactionDetailsRequest", [ - ["in", "GetTransactionDetailsRequest", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetTransactionDetailsRequest"]], - ["retval", "GetTransactionDetailsResponse", - [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetTransactionDetailsResponse"]]], - "http://soap.amazon.com", "http://soap.amazon.com"] + ["KeywordSearchRequest", "keywordSearchRequest", + [ + ["in", "KeywordSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "KeywordRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["TextStreamSearchRequest", "textStreamSearchRequest", + [ + ["in", "TextStreamSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "TextStreamRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["PowerSearchRequest", "powerSearchRequest", + [ + ["in", "PowerSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "PowerRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["BrowseNodeSearchRequest", "browseNodeSearchRequest", + [ + ["in", "BrowseNodeSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "BrowseNodeRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["AsinSearchRequest", "asinSearchRequest", + [ + ["in", "AsinSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "AsinRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["BlendedSearchRequest", "blendedSearchRequest", + [ + ["in", "BlendedSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "BlendedRequest"]], + ["retval", "return", [::SOAP::SOAPArray, "http://soap.amazon.com", "ProductLine"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["UpcSearchRequest", "upcSearchRequest", + [ + ["in", "UpcSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "UpcRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["SkuSearchRequest", "skuSearchRequest", + [ + ["in", "SkuSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SkuRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["AuthorSearchRequest", "authorSearchRequest", + [ + ["in", "AuthorSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "AuthorRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ArtistSearchRequest", "artistSearchRequest", + [ + ["in", "ArtistSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ArtistRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ActorSearchRequest", "actorSearchRequest", + [ + ["in", "ActorSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ActorRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ManufacturerSearchRequest", "manufacturerSearchRequest", + [ + ["in", "ManufacturerSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ManufacturerRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["DirectorSearchRequest", "directorSearchRequest", + [ + ["in", "DirectorSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "DirectorRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ListManiaSearchRequest", "listManiaSearchRequest", + [ + ["in", "ListManiaSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ListManiaRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["WishlistSearchRequest", "wishlistSearchRequest", + [ + ["in", "WishlistSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "WishlistRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ExchangeSearchRequest", "exchangeSearchRequest", + [ + ["in", "ExchangeSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ExchangeRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ListingProductDetails"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["MarketplaceSearchRequest", "marketplaceSearchRequest", + [ + ["in", "MarketplaceSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "MarketplaceRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "MarketplaceSearch"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["SellerProfileSearchRequest", "sellerProfileSearchRequest", + [ + ["in", "SellerProfileSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerProfileRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerProfile"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["SellerSearchRequest", "sellerSearchRequest", + [ + ["in", "SellerSearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SellerSearch"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["SimilaritySearchRequest", "similaritySearchRequest", + [ + ["in", "SimilaritySearchRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "SimilarityRequest"]], + ["retval", "return", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ProductInfo"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["GetShoppingCartRequest", "getShoppingCartRequest", + [ + ["in", "GetShoppingCartRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetShoppingCartRequest"]], + ["retval", "ShoppingCart", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ClearShoppingCartRequest", "clearShoppingCartRequest", + [ + ["in", "ClearShoppingCartRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ClearShoppingCartRequest"]], + ["retval", "ShoppingCart", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["AddShoppingCartItemsRequest", "addShoppingCartItemsRequest", + [ + ["in", "AddShoppingCartItemsRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "AddShoppingCartItemsRequest"]], + ["retval", "ShoppingCart", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["RemoveShoppingCartItemsRequest", "removeShoppingCartItemsRequest", + [ + ["in", "RemoveShoppingCartItemsRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "RemoveShoppingCartItemsRequest"]], + ["retval", "ShoppingCart", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["ModifyShoppingCartItemsRequest", "modifyShoppingCartItemsRequest", + [ + ["in", "ModifyShoppingCartItemsRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ModifyShoppingCartItemsRequest"]], + ["retval", "ShoppingCart", [::SOAP::SOAPStruct, "http://soap.amazon.com", "ShoppingCart"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ], + ["GetTransactionDetailsRequest", "getTransactionDetailsRequest", + [ + ["in", "GetTransactionDetailsRequest", [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetTransactionDetailsRequest"]], + ["retval", "GetTransactionDetailsResponse", [::SOAP::SOAPStruct, "http://soap.amazon.com", "GetTransactionDetailsResponse"]] + ], + "http://soap.amazon.com", "http://soap.amazon.com" + ] ] - DefaultEndpointUrl = "http://soap.amazon.com/onca/soap3" - def initialize(endpoint_url = nil) endpoint_url ||= DefaultEndpointUrl super(endpoint_url, nil) @@ -498,7 +523,7 @@ class AmazonSearchPort < SOAP::RPC::Driver init_methods end -private +private def init_methods Methods.each do |name_as, name, params, soapaction, namespace| diff --git a/sample/wsdl/raa2.4/raa.rb b/sample/wsdl/raa2.4/raa.rb new file mode 100644 index 0000000000..9b4c4e41aa --- /dev/null +++ b/sample/wsdl/raa2.4/raa.rb @@ -0,0 +1,332 @@ +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Gem + @@schema_type = "Gem" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def id + @id + end + + def id=(value) + @id = value + end + + def category + @category + end + + def category=(value) + @category = value + end + + def owner + @owner + end + + def owner=(value) + @owner = value + end + + def project + @project + end + + def project=(value) + @project = value + end + + def updated + @updated + end + + def updated=(value) + @updated = value + end + + def created + @created + end + + def created=(value) + @created = value + end + + def initialize(id = nil, + category = nil, + owner = nil, + project = nil, + updated = nil, + created = nil) + @id = id + @category = category + @owner = owner + @project = project + @updated = updated + @created = created + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Category + @@schema_type = "Category" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def major + @major + end + + def major=(value) + @major = value + end + + def minor + @minor + end + + def minor=(value) + @minor = value + end + + def initialize(major = nil, + minor = nil) + @major = major + @minor = minor + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Owner + @@schema_type = "Owner" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def id + @id + end + + def id=(value) + @id = value + end + + def email + @email + end + + def email=(value) + @email = value + end + + def name + @name + end + + def name=(value) + @name = value + end + + def initialize(id = nil, + email = nil, + name = nil) + @id = id + @email = email + @name = name + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class Project + @@schema_type = "Project" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def name + @name + end + + def name=(value) + @name = value + end + + def short_description + @short_description + end + + def short_description=(value) + @short_description = value + end + + def version + @version + end + + def version=(value) + @version = value + end + + def status + @status + end + + def status=(value) + @status = value + end + + def url + @url + end + + def url=(value) + @url = value + end + + def download + @download + end + + def download=(value) + @download = value + end + + def license + @license + end + + def license=(value) + @license = value + end + + def description + @description + end + + def description=(value) + @description = value + end + + def updated + @updated + end + + def updated=(value) + @updated = value + end + + def history + @history + end + + def history=(value) + @history = value + end + + def dependency + @dependency + end + + def dependency=(value) + @dependency = value + end + + def initialize(name = nil, + short_description = nil, + version = nil, + status = nil, + url = nil, + download = nil, + license = nil, + description = nil, + updated = nil, + history = nil, + dependency = nil) + @name = name + @short_description = short_description + @version = version + @status = status + @url = url + @download = download + @license = license + @description = description + @updated = updated + @history = history + @dependency = dependency + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectDependency + @@schema_type = "ProjectDependency" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" + + def project + @project + end + + def project=(value) + @project = value + end + + def version + @version + end + + def version=(value) + @version = value + end + + def description + @description + end + + def description=(value) + @description = value + end + + def initialize(project = nil, + version = nil, + description = nil) + @project = project + @version = version + @description = description + end +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class GemArray < Array + # Contents type should be dumped here... + @@schema_type = "GemArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class OwnerArray < Array + # Contents type should be dumped here... + @@schema_type = "OwnerArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectArray < Array + # Contents type should be dumped here... + @@schema_type = "ProjectArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class ProjectDependencyArray < Array + # Contents type should be dumped here... + @@schema_type = "ProjectDependencyArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ +class StringArray < Array + # Contents type should be dumped here... + @@schema_type = "StringArray" + @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" +end + +# http://xml.apache.org/xml-soap +class Map < Array + # Contents type should be dumped here... + @@schema_type = "Map" + @@schema_ns = "http://xml.apache.org/xml-soap" +end + diff --git a/sample/wsdl/raa2.4/wsdlDriver.rb b/sample/wsdl/raa2.4/wsdlDriver.rb new file mode 100644 index 0000000000..bc5fb19982 --- /dev/null +++ b/sample/wsdl/raa2.4/wsdlDriver.rb @@ -0,0 +1,117 @@ +#!/usr/bin/env ruby + +# You can generate raa.rb required here with the command; +# wsdl2ruby.rb --wsdl http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/ --classdef +require 'raa' +require 'soap/wsdlDriver' +require 'pp' + +RAA_WSDL = 'http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/' + +raa = SOAP::WSDLDriverFactory.new(RAA_WSDL).create_driver +raa.generate_explicit_type = true +# raa.wiredump_dev = STDERR + +def sec(msg) + puts + puts "--------" + puts "-- " + msg + puts +end + +def subsec(msg) + puts "-- " + msg +end + +sec("retrieve a gem (RAA Information) which has specified name") +name = 'soap4r' +pp raa.gem(name) + +sec("retrieve dependents of the project") +name = 'http-access2'; version = nil +pp raa.dependents(name, version) + +sec("number of registered gems") +puts raa.size + +sec("retrieve all registered gem names") +p raa.names + +sec("retrieve gems of specified category") +major = 'Library'; minor = 'XML' +p raa.list_by_category(major, minor) + +sec("retrieve category tree") +pp raa.tree_by_category + +sec("retrieve gems which is updated recently") +idx = 0 +p raa.list_recent_updated(idx) +subsec("next 10 gems") +idx += 1 +p raa.list_recent_updated(idx) +subsec("next 10 gems") +idx += 1 +p raa.list_recent_updated(idx) + +sec("retrieve gems which is created recently") +p raa.list_recent_created(idx) + +sec("retrieve gems which is updated in 7 days") +date = Time.now - 7 * 24 * 60 * 60; idx = 0 +p raa.list_updated_since(date, idx) + +sec("retrieve gems which is created in 7 days") +p raa.list_created_since(date, idx) + +sec("retrieve gems of specified owner") +owner_id = 8 # NaHi +p raa.list_by_owner(owner_id) + +sec("search gems with keyword") +substring = 'soap' +pp raa.search(substring) + +# There are several search interface to search a field explicitly. +# puts raa.search_name(substring, idx) +# puts raa.search_short_description(substring, idx) +# puts raa.search_owner(substring, idx) +# puts raa.search_version(substring, idx) +# puts raa.search_status(substring, idx) +# puts raa.search_description(substring, idx) + +sec("retrieve owner info") +owner_id = 8 +pp raa.owner(owner_id) + +sec("retrieve owners") +idx = 0 +p raa.list_owner(idx) + +sec("update 'sampleproject'") +name = 'sampleproject' +pass = 'sampleproject' +gem = raa.gem(name) +p gem.project.version +gem.project.version.succ! +gem.updated = Time.now +raa.update(name, pass, gem) +p raa.gem(name).project.version + +sec("update pass phrase") +raa.update_pass(name, 'sampleproject', 'foo') +subsec("update check") +gem = raa.gem(name) +gem.project.description = 'Current pass phrase is "foo"' +gem.updated = Time.now +raa.update(name, 'foo', gem) +# +subsec("recover pass phrase") +raa.update_pass(name, 'foo', 'sampleproject') +subsec("update check") +gem = raa.gem(name) +gem.project.description = 'Current pass phrase is "sampleproject"' +gem.updated = Time.now +raa.update(name, 'sampleproject', gem) + +sec("done") |