Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #64 (closed: fixed)

Opened 4 years ago

Last modified 2 years ago

operation "KeywordSearchRequest" of AWS does not work

Reported by: nahi <nakahiro@gmail.com> Assigned to: nahi
Priority: normal Milestone: 1.5.4
Component: soap4r Version: 1.5
Keywords: Cc:

Description

http://www.cozmixng.org/~w3ml/index.rb/rwiki-devel/msg/184

importing: http://soap.amazon.co.jp/schemas3/AmazonWebServices.wsdl
Exception `LoadError' at /usr/local/lib/ruby/1.8/wsdl/importer.rb:55 - No such file to load -- http-access2
Loading http-access2 failed.  Net/http is used.
"\n"
/usr/local/lib/ruby/1.8/soap/streamHandler.rb:82: warning: instance variable @nil not initialized
seki
Exception `NoMethodError' at aws0.rb:24 - undefined method `KeywordSearchRequest' for #<SOAP::WSDLDriver:{http://soap.amazon.com}AmazonSearchPort>
#<NoMethodError: undefined method `KeywordSearchRequest' for #<SOAP::WSDLDriver:{http://soap.amazon.com}AmazonSearchPort>>

Change History

01/20/05 22:48:09 changed by nahi <nakahiro@gmail.com>

XML operation name definition -> Ruby's method name scheme was changed in 1.5.3-ruby1.8.2. But I agree that this incompatibility is too much unexpected. The patch following will be incorporated.

Index: lib/soap/wsdlDriver.rb
===================================================================
RCS file: /src/ruby/lib/soap/wsdlDriver.rb,v
retrieving revision 1.5.2.4
diff -U2 -F'^\s*\(class\|module\|def\)\s' -r1.5.2.4 wsdlDriver.rb
--- lib/soap/wsdlDriver.rb      21 Dec 2004 15:08:54 -0000      1.5.2.4
+++ lib/soap/wsdlDriver.rb      20 Jan 2005 12:53:49 -0000
@@ -426,4 +426,8 @@
       when :rpc
        parts_names = op_info.bodyparts.collect { |part| part.name }
+        orgname = op_info.op_name.name
+        if orgname != name and orgname.capitalize == name.capitalize
+          add_rpc_method_interface(orgname, parts_names)
+        end
        add_rpc_method_interface(name, parts_names)
       else

01/23/05 11:59:01 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1397]) from 1.5.3-ruby1.8.2, operation which has capitalized name (such as KeywordSearchRequest? in AWS) is defined as a method having uncapitalized name. (converted with GenSupport?.safemethodname to handle operation name 'foo-bar'). it introduced serious incompatibility; in the past, it was defined as a capitalized. define capitalized method as well under that circumstance. fixes #64.

07/12/06 01:20:02 changed by Home

  • summary changed from operation &#34;KeywordSearchRequest&#34; of AWS does not work to operation &amp;#34;KeywordSearchRequest&amp;#34; of AWS does not work.