Method: Eet::Message#envelope
- Defined in:
- lib/eet/message.rb
#envelope ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/eet/message.rb', line 47 def envelope Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml| xml['soap'].Envelope('xmlns:soap' => "http://schemas.xmlsoap.org/soap/envelope/") do xml['SOAP-ENV'].Header('xmlns:SOAP-ENV' => SOAP_ENV_SCHEMA) do xml['wsse'].Security('xmlns:wsse' => WSSE_SCHEMA, 'xmlns:wsu' => WSU_SCHEMA, 'soap:mustUnderstand' => '1') end xml['soap'].Body('xmlns:wsu' => WSU_SCHEMA, 'wsu:Id' => WSU_ID) do end end end.doc end |