Sha256: c8fb6d87f5989f34c258b7bcabd163d86647f18a7ab8461cd9cbf424f728fec1
Contents?: true
Size: 912 Bytes
Versions: 5
Compression:
Stored size: 912 Bytes
Contents
require "celsius/transformation/step" require "ox" class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation::SetupTarget < Celsius::Transformation::Step def call # create empty ox document self.target = Ox::Document.new(version: "1.0", encoding: "UTF-8") # populate target with soap request skeleton self.target << Ox.parse( <<-xml <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:impl="http://primo.kobv.de/PrimoWebServices/services/searcher" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://xml.apache.org/xml-soap"> <env:Body> <impl:searchBrief><searchRequestStr></searchRequestStr></impl:searchBrief> </env:Body> </env:Envelope> xml ) end end
Version data entries
5 entries across 5 versions & 1 rubygems