Sha256: 2e037e952388ad1fe4544df9f7ee4f5ed4aaee7d08ee085bee537d2fd9a300dd
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
require 'xsd/mapping' require 'mysample.rb' module XSD; module XSD2Ruby module MysampleMappingRegistry Registry = ::SOAP::Mapping::LiteralRegistry.new Registry.register( :class => XSD::XSD2Ruby::Question, :schema_ns => "urn:mysample", :schema_type => "question", :schema_qualified => false, :schema_element => [ ["something", ["SOAP::SOAPString", XSD::QName.new(nil, "something")]] ] ) Registry.register( :class => XSD::XSD2Ruby::Section, :schema_ns => "urn:mysample", :schema_type => "section", :schema_qualified => false, :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_ns => "urn:mysample", :schema_type => "sectionArray", :schema_element => [ ["element", ["XSD::XSD2Ruby::Section[]", XSD::QName.new(nil, "element")], [1, nil]] ] ) Registry.register( :class => XSD::XSD2Ruby::SectionElement, :schema_ns => "urn:mysample", :schema_name => "sectionElement", :schema_qualified => true, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soap4r-1.5.7 | test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb |