Sha256: 445a175b6f945fc2ccfe040cea1a4fb085c852d06c37ade6cd56e1fb1cb8e367
Contents?: true
Size: 892 Bytes
Versions: 4
Compression:
Stored size: 892 Bytes
Contents
# http://dev.ctor.org/soap4r/ticket/449 require 'soap/rpc/driver' require 'soap/header/handler' # ignore the warning. #::SOAP::EnvelopeNamespace = 'http://www.w3.org/2003/05/soap-envelope' # replaces 'env:' with 'soap12:' class G4sNamespaceFilter < SOAP::Filter::Handler def on_outbound(envelope, opt) opt[:default_ns] = @default_ns envelope end def initialize @default_ns = SOAP::NS.new @default_ns.assign(SOAP::EnvelopeNamespace,"soap12") #@default_ns.assign('http://www.w3.org/2003/05/soap-envelope',"soap12") # adding this in breaks soap12, makes it become env again. #@default_ns.assign('http://wstest._2organize.nl','tms') #@default_ns.assign('http://schemas.xmlsoap.org/soap/encoding/','soapenc') @default_ns.assign('http://www.w3.org/2001/XMLSchema','xsd') @default_ns.assign('http://www.w3.org/2001/XMLSchema-instance','xsi') end end
Version data entries
4 entries across 4 versions & 1 rubygems