$16 GRAYBYTE WORDPRESS FILE MANAGER $44

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/lib64/ruby/1.8/soap/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/1.8/soap//marshal.rb
# SOAP4R - Marshalling/Unmarshalling Ruby's object using SOAP Encoding.
# Copyright (C) 2001, 2003  NAKAMURA, Hiroshi <[email protected]>.

# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
# redistribute it and/or modify it under the same terms of Ruby's license;
# either the dual license version in 2003, or any later version.


require "soap/mapping"
require "soap/processor"


module SOAP


module Marshal
  # Trying xsd:dateTime data to be recovered as aTime.
  MarshalMappingRegistry = Mapping::Registry.new(
    :allow_original_mapping => true)
  MarshalMappingRegistry.add(
    Time,
    ::SOAP::SOAPDateTime,
    ::SOAP::Mapping::Registry::DateTimeFactory
  )

  class << self
  public
    def dump(obj, io = nil)
      marshal(obj, MarshalMappingRegistry, io)
    end

    def load(stream)
      unmarshal(stream, MarshalMappingRegistry)
    end

    def marshal(obj, mapping_registry = MarshalMappingRegistry, io = nil)
      elename = Mapping.name2elename(obj.class.to_s)
      soap_obj = Mapping.obj2soap(obj, mapping_registry)
      body = SOAPBody.new
      body.add(elename, soap_obj)
      env = SOAPEnvelope.new(nil, body)
      SOAP::Processor.marshal(env, {}, io)
    end

    def unmarshal(stream, mapping_registry = MarshalMappingRegistry)
      env = SOAP::Processor.unmarshal(stream)
      if env.nil?
	raise ArgumentError.new("Illegal SOAP marshal format.")
      end
      Mapping.soap2obj(env.body.root_node, mapping_registry)
    end
  end
end


end


SOAPMarshal = SOAP::Marshal


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / root
0755
encodingstyle
--
3 Mar 2024 10.48 PM
root / linksafe
0755
header
--
3 Mar 2024 10.48 PM
root / linksafe
0755
mapping
--
3 Mar 2024 10.48 PM
root / linksafe
0755
rpc
--
3 Mar 2024 10.48 PM
root / linksafe
0755
attachment.rb
1.991 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
baseData.rb
16.73 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
element.rb
5.396 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
generator.rb
6.659 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
httpconfigloader.rb
3.148 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
mapping.rb
0.372 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
marshal.rb
1.499 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
mimemessage.rb
4.937 KB
26 May 2009 12.22 PM
root / linksafe
0644
netHttpClient.rb
4.247 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
parser.rb
6.032 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
processor.rb
1.372 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
property.rb
6.923 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
soap.rb
3.753 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
streamHandler.rb
5.859 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
wsdlDriver.rb
15.755 KB
12 Feb 2007 11.01 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF