Module: VA1010Forms::Utils

Included in:
Form1010Ezr::Service, HCA::Service, HealthCareApplication
Defined in:
lib/va1010_forms/utils.rb

Instance Method Summary collapse

Instance Method Details

#override_parsed_form(parsed_form) ⇒ Object



22
23
24
# File 'lib/va1010_forms/utils.rb', line 22

def override_parsed_form(parsed_form)
  HCA::OverridesParser.new(parsed_form).override
end

#soapObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/va1010_forms/utils.rb', line 8

def soap
  # Savon *seems* like it should be setting these things correctly
  # from what the docs say. Our WSDL file is weird, maybe?
  Savon.client(
    wsdl: HCA::Configuration::WSDL,
    env_namespace: :soap,
    element_form_default: :qualified,
    namespaces: {
      'xmlns:tns': 'http://va.gov/service/esr/voa/v1'
    },
    namespace: 'http://va.gov/schema/esr/voa/v1'
  )
end