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

Changeset 100

Show
Ignore:
Timestamp:
05/24/01 22:34:23 (8 years ago)
Author:
nakahiro
Message:

Extracted literal from code.
Illegal typeNamespace of SOAP's base64 type. Fixed.

Files:

Legend:

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

    r85 r100  
    109109  attr_accessor :id 
    110110  attr_accessor :parent 
     111 
    111112  attr_reader :extraAttributes 
    112113 
     
    266267  def initialize( *vars ) 
    267268    super( *vars ) 
    268     @typeNamespace = EnvelopeNamespace 
    269     @typeName = 'base64' 
     269    @typeNamespace = EncodingNamespace 
     270    @typeName = Base64Literal 
     271  end 
     272 
     273  def createNS( attrs, ns ) 
     274    unless ns.assigned?( XSD::Namespace ) 
     275      tag = ns.assign( XSD::Namespace ) 
     276      attrs.push( Attr.new( 'xmlns:' << tag, XSD::Namespace )) 
     277    end 
     278    if @typeNamespace and !ns.assigned?( @typeNamespace ) 
     279      tag = ns.assign( @typeNamespace ) 
     280      attrs.push( Attr.new( 'xmlns:' << tag, @typeNamespace )) 
     281    end 
    270282  end 
    271283end