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

Changeset 1692

Show
Ignore:
Timestamp:
07/23/06 17:18:54 (2 years ago)
Author:
nahi
Message:

removed check_element. XML processor will check it.

Files:

Legend:

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

    r1660 r1692  
    241241 
    242242  def initialize(qname, param_def = nil, soapaction = nil) 
    243     check_elename(qname) 
    244243    super(qname, param_def) 
    245244    @soapaction = soapaction 
     
    265264      XSD::QName.new(@elename.namespace, @elename.name + 'Response') 
    266265    SOAPMethodResponse.new(response_name, @param_def) 
    267   end 
    268  
    269 private 
    270  
    271   def check_elename(qname) 
    272     # NCName & ruby's method name 
    273     unless /\A[\w_][\w\d_\-]*\z/ =~ qname.name 
    274       raise MethodDefinitionError.new("element name '#{qname.name}' not allowed") 
    275     end 
    276266  end 
    277267end