Changeset 1959
- Timestamp:
- 09/14/07 19:56:50 (8 months ago)
- Files:
-
- trunk/lib/wsdl/soap/classDefCreator.rb (modified) (2 diffs)
- trunk/lib/wsdl/xmlSchema/complexExtension.rb (modified) (1 diff)
- trunk/sample/soapheader/authheader/client.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/wsdl/soap/classDefCreator.rb
r1954 r1959 239 239 case type.compoundtype 240 240 when :TYPE_STRUCT, :TYPE_EMPTY 241 create_ classdef(mpath, qname, type, qualified)241 create_structdef(mpath, qname, type, qualified) 242 242 when :TYPE_ARRAY 243 243 create_arraydef(mpath, qname, type) … … 253 253 end 254 254 255 def create_ classdef(mpath, qname, typedef, qualified = false)255 def create_structdef(mpath, qname, typedef, qualified = false) 256 256 classname = mapped_class_basename(qname, mpath) 257 257 baseclassname = nil 258 258 if typedef.complexcontent 259 259 if base = typedef.complexcontent.base 260 baseclassname = mapped_class_basename(base, mpath) 260 # :TYPE_ARRAY must not be derived (#424) 261 basedef = @complextypes[base] 262 if basedef and basedef.compoundtype != :TYPE_ARRAY 263 # baseclass should be a toplevel complexType 264 baseclassname = mapped_class_basename(base, @modulepath) 265 end 261 266 end 262 267 end trunk/lib/wsdl/xmlSchema/complexExtension.rb
r1917 r1959 64 64 if @base == ::SOAP::ValueArrayName 65 65 :TYPE_ARRAY 66 elsif content 66 elsif content or !@attributes.empty? 67 67 :TYPE_STRUCT 68 68 else trunk/sample/soapheader/authheader/client.rb
r1843 r1959 19 19 { "sessionid" => @sessionid } 20 20 else 21 { "userid" => @userid, "passwd" => @passwd } 21 #{ "userid" => @userid, "passwd" => @passwd } 22 passwd = SOAP::SOAPElement.new("Password", @passwd) 23 passwd.extraattr["Type"] = "type" 24 { "userid" => @userid, "Passwd" => passwd } 22 25 end 23 26 end