Class: SOAP::RPC::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/wss4r/rpc/proxy.rb

Instance Method Summary collapse

Instance Method Details

#create_encoding_opt(hash = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/wss4r/rpc/proxy.rb', line 10

def create_encoding_opt(hash = nil)
  opt = {}
  opt[:security] = @security
  opt[:default_encodingstyle] = @default_encodingstyle
  opt[:allow_unqualified_element] = @allow_unqualified_element
  opt[:generate_explicit_type] = @generate_explicit_type
  opt[:no_indent] = @options["soap.envelope.no_indent"]
  opt.update(hash) if hash
  opt
end

#invoke(req_header, req_body, opt = nil) ⇒ Object



21
22
23
24
25
# File 'lib/wss4r/rpc/proxy.rb', line 21

def invoke(req_header, req_body, opt = nil)
  opt ||= create_options
  opt[:security] = @security
  route(req_header, req_body, opt, opt)
end

#securityObject



2
3
4
5
6
7
8
# File 'lib/wss4r/rpc/proxy.rb', line 2

def security()
  if (@security == nil)
    @security = WSS4R::Security::Security.new()
    return @security
  end
  @security
end