Service discovery method