class VatInfo::Request
Constants
- SOAP_ENV_SCHEMA
Public Instance Methods
envelope()
click to toggle source
# File lib/vat_info/request.rb, line 10 def envelope Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml| xml['soapenv'].Envelope('xmlns:soapenv' => 'http://schemas.xmlsoap.org/soap/envelope/') do xml['soapenv'].Body do end end end.doc end
to_xml()
click to toggle source
# File lib/vat_info/request.rb, line 19 def to_xml msg = envelope.dup body = msg.at_xpath('//soapenv:Body') body.add_child(self.body.root) msg.to_xml end