Sha256: 88b5b8795eda90432efde798df03d62a3226328740a5d5672863508849234ef0

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

require 'echo_version.rb'
require 'soap/mapping'

module Echo_versionMappingRegistry
  EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
  LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new

  EncodedRegistry.register(
    :class => Version_struct,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "version_struct",
    :schema_element => [
      ["version", ["Version", XSD::QName.new(nil, "version")]],
      ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]]
    ]
  )

  EncodedRegistry.register(
    :class => Version,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "version"
  )

  EncodedRegistry.register(
    :class => StateType,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "stateType"
  )

  EncodedRegistry.register(
    :class => ZipIntType,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "zipIntType"
  )

  LiteralRegistry.register(
    :class => Version_struct,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "version_struct",
    :schema_qualified => false,
    :schema_element => [
      ["version", ["Version", XSD::QName.new(nil, "version")]],
      ["msg", ["SOAP::SOAPString", XSD::QName.new(nil, "msg")]]
    ]
  )

  LiteralRegistry.register(
    :class => Version,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "version"
  )

  LiteralRegistry.register(
    :class => StateType,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "stateType"
  )

  LiteralRegistry.register(
    :class => ZipIntType,
    :schema_ns => "urn:example.com:simpletype-rpc-type",
    :schema_type => "zipIntType"
  )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soap4r-1.5.7 test/wsdl/simpletype/rpc/expectedMappingRegistry.rb