Class: UPnP::Service::Filter

Inherits:
SOAP::Filter::Handler
  • Object
show all
Defined in:
lib/UPnP/service.rb

Overview

Adds the s:encodingStyle to the SOAP envelope rs equired by UPnP

Instance Method Summary collapse

Instance Method Details

#on_outbound(envelope, opt) ⇒ Object



77
78
79
80
81
# File 'lib/UPnP/service.rb', line 77

def on_outbound(envelope, opt)
  opt[:generate_explicit_type] = false
  envelope.extraattr['s:encodingStyle'] = SOAP::EncodingNamespace
  envelope
end