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

Changeset 1700

Show
Ignore:
Timestamp:
08/09/06 21:40:51 (2 years ago)
Author:
nahi
Message:

change namespace handling of a value of arrayType attribute same as a value of type attribute. fixed #230.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/wsdl/parser.rb

    r1643 r1700  
    11# WSDL4R - WSDL XML Instance parser library. 
    2 # Copyright (C) 2002, 2003, 2005  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
     2# Copyright (C) 2002, 2003, 2005, 2006  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
    33 
    44# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can 
     
    139139    attrs.each do |key, value| 
    140140      attr_ele = ns.parse(key, true) 
    141       value_ele = ns.parse(value, true) 
     141      value_ele = ns.parse(value, false) 
    142142      value_ele.source = value  # for recovery; value may not be a QName 
    143143      if o.parse_attr(attr_ele, value_ele).nil? 
  • trunk/lib/wsdl/xmlSchema/attribute.rb

    r1618 r1700  
    106106      @fixed = value.source 
    107107    when ArrayTypeAttrName 
    108       @arytype = if value.namespace.nil? 
    109           XSD::QName.new(XSD::Namespace, value.source) 
    110         else 
    111           value 
    112         end 
     108      @arytype = value 
    113109    else 
    114110      nil 
  • trunk/lib/wsdl/xmlSchema/parser.rb

    r1643 r1700  
    11# WSDL4R - WSDL XML Instance parser library. 
    2 # Copyright (C) 2002, 2003, 2005  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
     2# Copyright (C) 2002, 2003, 2005, 2006  NAKAMURA, Hiroshi <nahi@ruby-lang.org>. 
    33 
    44# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can 
     
    137137    attrs.each do |key, value| 
    138138      attr_ele = ns.parse(key, true) 
    139       value_ele = ns.parse(value, true) 
     139      value_ele = ns.parse(value, false) 
    140140      value_ele.source = value  # for recovery; value may not be a QName 
    141141      if attr_ele == IdAttrName