Module: SOAP::Processor

Defined in:
lib/soap/processor.rb

Constant Summary

@@default_parser_option =
{}

Class Method Summary (collapse)

Class Method Details

+ (Object) default_parser_option



46
47
48
# File 'lib/soap/processor.rb', line 46

def default_parser_option
  @@default_parser_option
end

+ (Object) default_parser_option=(rhs)



42
43
44
# File 'lib/soap/processor.rb', line 42

def default_parser_option=(rhs)
  @@default_parser_option = rhs
end

+ (Object) marshal(env, opt = {}, io = nil)



28
29
30
31
32
33
34
35
# File 'lib/soap/processor.rb', line 28

def marshal(env, opt = {}, io = nil)
  generator = create_generator(opt)
  marshalled_str = generator.generate(env, io)
  unless env.external_content.empty?
	opt[:external_content] = env.external_content
  end
  marshalled_str
end

+ (Object) unmarshal(stream, opt = {})



37
38
39
40
# File 'lib/soap/processor.rb', line 37

def unmarshal(stream, opt = {})
  parser = create_parser(opt)
  parser.parse(stream)
end