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

Changeset 1964

Show
Ignore:
Timestamp:
09/15/07 22:56:40 (1 year ago)
Author:
nahi
Message:
  • need to generate mappingregistry of the element even if the same name complexType definition exists when the element only refers the complexType.
Files:

Legend:

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

    r1958 r1964  
    6464  def dump_element 
    6565    @elements.collect { |ele| 
    66       next if @complextypes[ele.name] 
     66      # has the definition different from the complexType of the same name 
     67      next if ele.type.nil? and @complextypes[ele.name] 
    6768      qualified = (ele.elementform == 'qualified') 
    6869      if ele.local_complextype 
  • trunk/test/wsdl/anonymous/expectedMappingRegistry.rb

    r1958 r1964  
    149149    ] 
    150150  ) 
     151 
     152  LiteralRegistry.register( 
     153    :class => WSDL::Anonymous::LoginResponse, 
     154    :schema_name => XSD::QName.new(NsLp, "loginResponse"), 
     155    :schema_qualified => true, 
     156    :schema_element => [ 
     157      ["loginResult", ["WSDL::Anonymous::LoginResponse::LoginResult", XSD::QName.new(nil, "loginResult")]] 
     158    ] 
     159  ) 
     160 
     161  LiteralRegistry.register( 
     162    :class => WSDL::Anonymous::LoginResponse::LoginResult, 
     163    :schema_name => XSD::QName.new(nil, "loginResult"), 
     164    :schema_qualified => true, 
     165    :schema_element => [ 
     166      ["sessionID", "SOAP::SOAPString"] 
     167    ] 
     168  ) 
    151169end 
    152170 
  • trunk/test/wsdl/any/expectedMappingRegistry.rb

    r1938 r1964  
    3232 
    3333  LiteralRegistry.register( 
     34    :class => WSDL::Any::FooBar, 
     35    :schema_name => XSD::QName.new(NsEchoType, "foo.bar"), 
     36    :schema_qualified => true, 
     37    :schema_element => [ 
     38      ["before", ["SOAP::SOAPString", XSD::QName.new(nil, "before")]], 
     39      ["any", [nil, XSD::QName.new(NsXMLSchema, "anyType")]], 
     40      ["after", ["SOAP::SOAPString", XSD::QName.new(nil, "after")]] 
     41    ] 
     42  ) 
     43 
     44  LiteralRegistry.register( 
    3445    :class => WSDL::Any::SetOutputAndCompleteRequest, 
    3546    :schema_name => XSD::QName.new(NsEchoType, "setOutputAndCompleteRequest"),