From ca3d832033a64e346ebddb3bf48103c8b6fc25e0 Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 3 Oct 2003 17:15:23 +0000 Subject: * lib/xsd/datatypes.rb: dump sign by itself. under the problematic platform, sprintf("%+.10g", -0.0) => +0. Sigh. * sample/wsdl/amazon/*: update schema ver2 to ver3. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/wsdl/amazon/AmazonSearchDriver.rb | 68 +++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) (limited to 'sample/wsdl/amazon/AmazonSearchDriver.rb') diff --git a/sample/wsdl/amazon/AmazonSearchDriver.rb b/sample/wsdl/amazon/AmazonSearchDriver.rb index bf532b75a..01915e273 100644 --- a/sample/wsdl/amazon/AmazonSearchDriver.rb +++ b/sample/wsdl/amazon/AmazonSearchDriver.rb @@ -23,6 +23,12 @@ class AmazonSearchPort < SOAP::RPC::Driver ::SOAP::Mapping::Registry::TypedArrayFactory, { :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, @@ -59,6 +65,12 @@ class AmazonSearchPort < SOAP::RPC::Driver ::SOAP::Mapping::Registry::TypedStructFactory, { :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, @@ -191,6 +203,12 @@ class AmazonSearchPort < SOAP::RPC::Driver ::SOAP::Mapping::Registry::TypedArrayFactory, { :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, @@ -233,6 +251,30 @@ class AmazonSearchPort < SOAP::RPC::Driver ::SOAP::Mapping::Registry::TypedArrayFactory, { :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, @@ -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 -- cgit