Sha256: fc8068afbaaefcff471adf8590bfcf98ee0247ee1faded52269681b075bb8837

Contents?: true

Size: 1.75 KB

Versions: 15

Compression:

Stored size: 1.75 KB

Contents

# encoding: ASCII-8BIT
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

15 entries across 15 versions & 9 rubygems

Version Path
malagant-soap4r-1.5.8.20141127181857 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
rtiss_soap4r-1.6.1 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
rtiss_soap4r-1.6.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
eSpace_soap4r-1.5.8 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-ruby19-1.5.9 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
tomdz-soap4r-1.5.8.20120202093209 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap5r-2.0.3 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap5r-2.0.2 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap5r-2.0.1 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap5r-2.0.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap5r-2.0.0.20120130130121 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
soap4r-sgonyea-1.5.9 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
sunteya-soap4r-1.5.8.0 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
tomdz-soap4r-1.5.8.20111103171510 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb
rubyjedi-soap4r-1.5.8.20100619003610 test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb