Sha256: 44338a67886f4d11b4fd9db56fc28ec227520d8d7a439c65d9638b4e95f090ce

Contents?: true

Size: 1.72 KB

Versions: 31

Compression:

Stored size: 1.72 KB

Contents

require 'xsd/mapping'
require 'mysample.rb'

module XSD; module XSD2Ruby

module MysampleMappingRegistry
  NsMysample = "urn:mysample"
  Registry = ::SOAP::Mapping::LiteralRegistry.new

  Registry.register(
    :class => XSD::XSD2Ruby::Question,
    :schema_type => XSD::QName.new(NsMysample, "question"),
    :schema_element => [
      ["something", ["SOAP::SOAPString", XSD::QName.new(nil, "something")]]
    ]
  )

  Registry.register(
    :class => XSD::XSD2Ruby::Section,
    :schema_type => XSD::QName.new(NsMysample, "section"),
    :schema_element => [
      ["sectionID", ["SOAP::SOAPInt", XSD::QName.new(nil, "sectionID")]],
      ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]],
      ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
      ["index", ["SOAP::SOAPInt", XSD::QName.new(nil, "index")]],
      ["firstQuestion", ["XSD::XSD2Ruby::Question", XSD::QName.new(nil, "firstQuestion")]]
    ]
  )

  Registry.register(
    :class => XSD::XSD2Ruby::SectionArray,
    :schema_type => XSD::QName.new(NsMysample, "sectionArray"),
    :schema_element => [
      ["element", ["XSD::XSD2Ruby::Section[]", XSD::QName.new(nil, "element")], [1, nil]]
    ]
  )

  Registry.register(
    :class => XSD::XSD2Ruby::SectionElement,
    :schema_name => XSD::QName.new(NsMysample, "sectionElement"),
    :schema_element => [
      ["sectionID", ["SOAP::SOAPInt", XSD::QName.new(nil, "sectionID")]],
      ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]],
      ["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
      ["index", ["SOAP::SOAPInt", XSD::QName.new(nil, "index")]],
      ["firstQuestion", ["XSD::XSD2Ruby::Question", XSD::QName.new(nil, "firstQuestion")]]
    ]
  )
end

end; end

Version data entries

31 entries across 31 versions & 13 rubygems

Version Path
mumboe-soap4r-1.6.0.pre.beta test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
DefV-soap4r-1.5.8.2 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
mumboe-soap4r-1.5.8.7 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
teo-soap4r-1.5.9b test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
mumboe-soap4r-1.5.8.6 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-spox-1.6.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-r19-1.5.9 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
mumboe-soap4r-1.5.8.5 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-2.0.5 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-sgonyea-1.6.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-straightjacket-1.5.9 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-straightjacket-1.5.8 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-2.0.3 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-2.0.2 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-2.0.1 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
mumboe-soap4r-1.5.8.4 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-2.0.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
hands-soap4r-1.5.8.4 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby1.9-1.0.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
snaury-soap4r-1.5.8.1 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb