Class: Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation::SetupTarget

Inherits:
Transformation::Step
  • Object
show all
Defined in:
lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/setup_target.rb

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/setup_target.rb', line 5

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(
    "<env:Envelope\nxmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\nxmlns:impl=\"http://primo.kobv.de/PrimoWebServices/services/searcher\"\nxmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"\nxmlns:ins0=\"http://xml.apache.org/xml-soap\">\n<env:Body>\n<impl:searchBrief><searchRequestStr></searchRequestStr></impl:searchBrief>\n</env:Body>\n</env:Envelope>\n"
  )
end