Method: Wmls#get_cap

Defined in:
lib/wmls.rb

#get_cap(optionsIn = nil, headers = {}) ⇒ Object

call WMLS_GetCap with the specified optionsIn.



141
142
143
144
145
146
147
148
149
150
# File 'lib/wmls.rb', line 141

def get_cap(optionsIn=nil, headers={})
  soap_action = 'http://www.witsml.org/action/120/Store.WMLS_GetCap'
  headers['SOAPAction'] = soap_action
  envelope_middle = <<END
      <ns0:WMLS_GetCap SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <OptionsIn>#{optionsIn || @optionsIn}</OptionsIn>
      </ns0:WMLS_GetCap>
END
  return send envelope_middle, headers 
end