summaryrefslogtreecommitdiff
path: root/sample/wsdl/amazon/AmazonSearchDriver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/wsdl/amazon/AmazonSearchDriver.rb')
-rw-r--r--sample/wsdl/amazon/AmazonSearchDriver.rb68
1 files changed, 67 insertions, 1 deletions
diff --git a/sample/wsdl/amazon/AmazonSearchDriver.rb b/sample/wsdl/amazon/AmazonSearchDriver.rb
index bf532b75a5..01915e2735 100644
--- a/sample/wsdl/amazon/AmazonSearchDriver.rb
+++ b/sample/wsdl/amazon/AmazonSearchDriver.rb
@@ -24,6 +24,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
{ :type => XSD::QName.new("http://soap.amazon.com", "Details") }
)
MappingRegistry.set(
+ TextStreamRequest,
+ ::SOAP::SOAPStruct,
+ ::SOAP::Mapping::Registry::TypedStructFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "TextStreamRequest") }
+ )
+ MappingRegistry.set(
PowerRequest,
::SOAP::SOAPStruct,
::SOAP::Mapping::Registry::TypedStructFactory,
@@ -60,6 +66,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
{ :type => XSD::QName.new("http://soap.amazon.com", "UpcRequest") }
)
MappingRegistry.set(
+ SkuRequest,
+ ::SOAP::SOAPStruct,
+ ::SOAP::Mapping::Registry::TypedStructFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "SkuRequest") }
+ )
+ MappingRegistry.set(
AuthorRequest,
::SOAP::SOAPStruct,
::SOAP::Mapping::Registry::TypedStructFactory,
@@ -192,6 +204,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
{ :type => XSD::QName.new("http://soap.amazon.com", "Item") }
)
MappingRegistry.set(
+ SimilarProductsArray,
+ ::SOAP::SOAPArray,
+ ::SOAP::Mapping::Registry::TypedArrayFactory,
+ { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") }
+ )
+ MappingRegistry.set(
ClearShoppingCartRequest,
::SOAP::SOAPStruct,
::SOAP::Mapping::Registry::TypedStructFactory,
@@ -234,6 +252,30 @@ class AmazonSearchPort < SOAP::RPC::Driver
{ :type => XSD::QName.new("http://soap.amazon.com", "ItemQuantity") }
)
MappingRegistry.set(
+ GetTransactionDetailsRequest,
+ ::SOAP::SOAPStruct,
+ ::SOAP::Mapping::Registry::TypedStructFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "GetTransactionDetailsRequest") }
+ )
+ MappingRegistry.set(
+ OrderIdArray,
+ ::SOAP::SOAPArray,
+ ::SOAP::Mapping::Registry::TypedArrayFactory,
+ { :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") }
+ )
+ MappingRegistry.set(
+ GetTransactionDetailsResponse,
+ ::SOAP::SOAPStruct,
+ ::SOAP::Mapping::Registry::TypedStructFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "GetTransactionDetailsResponse") }
+ )
+ MappingRegistry.set(
+ ShortSummaryArray,
+ ::SOAP::SOAPArray,
+ ::SOAP::Mapping::Registry::TypedArrayFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "ShortSummary") }
+ )
+ MappingRegistry.set(
Details,
::SOAP::SOAPStruct,
::SOAP::Mapping::Registry::TypedStructFactory,
@@ -281,6 +323,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
::SOAP::Mapping::Registry::TypedStructFactory,
{ :type => XSD::QName.new("http://soap.amazon.com", "ItemQuantity") }
)
+ MappingRegistry.set(
+ ShortSummary,
+ ::SOAP::SOAPStruct,
+ ::SOAP::Mapping::Registry::TypedStructFactory,
+ { :type => XSD::QName.new("http://soap.amazon.com", "ShortSummary") }
+ )
Methods = [
["KeywordSearchRequest", "keywordSearchRequest", [
@@ -289,6 +337,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
["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"]],
@@ -319,6 +373,12 @@ class AmazonSearchPort < SOAP::RPC::Driver
["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"]],
@@ -420,10 +480,16 @@ class AmazonSearchPort < SOAP::RPC::Driver
[::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/soap2"
+ DefaultEndpointUrl = "http://soap.amazon.com/onca/soap3"
def initialize(endpoint_url = nil)
endpoint_url ||= DefaultEndpointUrl