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

Changeset 1397

Show
Ignore:
Timestamp:
01/23/05 11:58:59 (4 years ago)
Author:
nahi
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/wsdlDriver.rb

    r1373 r1397  
    11# SOAP4R - SOAP WSDL driver 
    2 # Copyright (C) 2002, 2003  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
     2# Copyright (C) 2002, 2003, 2005  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
    33 
    44# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can 
     
    4949      end 
    5050    if service.nil? 
    51       raise FactoryError.new("Service #{ servicename } not found in WSDL.") 
     51      raise FactoryError.new("service #{ servicename } not found in WSDL") 
    5252    end 
    5353    port = if portname 
     
    5757      end 
    5858    if port.nil? 
    59       raise FactoryError.new("Port #{ portname } not found in WSDL.") 
     59      raise FactoryError.new("port #{ portname } not found in WSDL") 
    6060    end 
    6161    if port.soap_address.nil? 
    62       raise FactoryError.new("soap:address element not found in WSDL.") 
     62      raise FactoryError.new("soap:address element not found in WSDL") 
    6363    end 
    6464    WSDLDriver.new(@wsdl, port, @logdev) 
     
    223223      set_wiredump_file_base(name) 
    224224      unless op_info = @operation[name] 
    225         raise MethodDefinitionError, "Method: #{name} not defined.
     225        raise RuntimeError, "method: #{name} not defined
    226226      end 
    227227      req_header = create_request_header 
     
    231231        :decode_typemap => @rpc_decode_typemap}) 
    232232      env = @proxy.invoke(req_header, req_body, opt) 
    233       raise EmptyResponseError.new("Empty response.") unless env 
     233      raise EmptyResponseError.new("empty response") unless env 
    234234      receive_headers(env.header) 
    235235      begin 
     
    256256      req_body = body_from_obj(body_obj, op_info) 
    257257      env = @proxy.invoke(req_header, req_body, op_info.soapaction || @soapaction, @wsdl_types) 
    258       raise EmptyResponseError.new("Empty response.") unless env 
     258      raise EmptyResponseError.new("empty response") unless env 
    259259      if env.body.fault 
    260260        raise ::SOAP::FaultError.new(env.body.fault) 
     
    276276        :decode_typemap => @wsdl_types}) 
    277277      env = @proxy.invoke(req_header, req_body, opt) 
    278       raise EmptyResponseError.new("Empty response.") unless env 
     278      raise EmptyResponseError.new("empty response") unless env 
    279279      if env.body.fault 
    280280        raise ::SOAP::FaultError.new(env.body.fault) 
     
    357357          nil 
    358358        else 
    359           raise RuntimeError.new("No header definition in schema.") 
     359          raise RuntimeError.new("no header definition in schema") 
    360360        end 
    361361      elsif op_info.headerparts.size == 1 
     
    392392          nil 
    393393        else 
    394           raise RuntimeError.new("No body found in schema.") 
     394          raise RuntimeError.new("no body found in schema") 
    395395        end 
    396396      elsif op_info.bodyparts.size == 1 
     
    426426      when :rpc 
    427427        parts_names = op_info.bodyparts.collect { |part| part.name } 
     428        orgname = op_info.op_name.name 
     429        if orgname != name and orgname.capitalize == name.capitalize 
     430          add_rpc_method_interface(orgname, parts_names) 
     431        end 
    428432        add_rpc_method_interface(name, parts_names) 
    429433      else