Sha256: 204f9b8323db45ef3b83266d6ab9775bf5b2622f42663960a02481021cfad897
Contents?: true
Size: 502 Bytes
Versions: 6
Compression:
Stored size: 502 Bytes
Contents
# The broken SOAP server that eTapestry uses (probably SAAJ from what I can tell) chokes if the XML # request contains any spaces or linebreaks between elements. So we'll strip them all out the # most direct way we can, straight from the method that produces the XML text. module SOAP class Generator alias_method :orig_generate, :generate def generate(obj, io = nil) orig_generate(obj, io) # Sets the @buf instance variable @buf.gsub!(/>\s*</m, '><') end end end
Version data entries
6 entries across 6 versions & 1 rubygems