def create(nsc)
      xml = nsc.make_xml('DiscoveryConnectionCreateRequest')
      xml.add_element(as_xml)

      response = nsc.execute(xml, '1.2')
      if response.success
        ret = REXML::XPath.first(response.res, 'DiscoveryConnectionCreateResponse')
        @id = ret.attributes['id'].to_i unless ret.nil?
      end
    end
def create(nsc)
      xml = nsc.make_xml('DiscoveryConnectionCreateRequest')
      xml.add_element(as_xml)

      response = nsc.execute(xml, '1.2')
      if response.success
        ret = REXML::XPath.first(response.res, 'DiscoveryConnectionCreateResponse')
        @id = ret.attributes['id'].to_i unless ret.nil?
      end
    end
Create a new discovery connection.

 @param [String] name Name to assign to this connection.
 @param [String] address IP or fully qualified domain name of the
    connection server.
 @param [String] user User name for credentials on this connection.
 @param [String] password Password for credentials on this connection.

 Save this discovery connection on a given Nexpose console.

 @param [Connection] nsc Connection to a console.