1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
require 'default.rb'
require 'soap/mapping'
module DefaultMappingRegistry
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
EncodedRegistry.register(
:class => WeatherParametersType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "weatherParametersType",
:schema_element => [
["maxt", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "maxt")]],
["mint", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "mint")]],
["temp", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "temp")]],
["dew", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "dew")]],
["pop12", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "pop12")]],
["qpf", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "qpf")]],
["sky", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "sky")]],
["snow", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "snow")]],
["wspd", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wspd")]],
["wdir", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wdir")]],
["wx", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wx")]],
["waveh", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "waveh")]],
["icons", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "icons")]]
]
)
EncodedRegistry.register(
:class => FormatType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "formatType"
)
EncodedRegistry.register(
:class => ProductType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "productType"
)
LiteralRegistry.register(
:class => WeatherParametersType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "weatherParametersType",
:schema_qualified => false,
:schema_element => [
["maxt", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "maxt")]],
["mint", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "mint")]],
["temp", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "temp")]],
["dew", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "dew")]],
["pop12", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "pop12")]],
["qpf", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "qpf")]],
["sky", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "sky")]],
["snow", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "snow")]],
["wspd", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wspd")]],
["wdir", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wdir")]],
["wx", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "wx")]],
["waveh", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "waveh")]],
["icons", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "icons")]]
]
)
LiteralRegistry.register(
:class => FormatType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "formatType"
)
LiteralRegistry.register(
:class => ProductType,
:schema_ns => "http://weather.gov/forecasts/xml/DWMLgen/schema/ndfdXML.xsd",
:schema_type => "productType"
)
end
|